Evolving authentication on React components

In my last post I talked about how you can do Authentication on React components using mixins.
Using a mixin to add role-based security to any component we create is really handy but it does have one real problem, you have to inherit that mixin on ever…


This content originally appeared on Posts on LINQ to Fail and was authored by Posts on LINQ to Fail

In my last post I talked about how you can do Authentication on React components using mixins. Using a mixin to add role-based security to any component we create is really handy but it does have one real problem, you have to inherit that mixin on every component you want to have it on. It works well when you want to do something like hide links or buttons, but it starts to fall down when you want to hide sections of components, maybe a row in a table is only there for certain roles, or a section of a menu isn’t visible for everyone.


This content originally appeared on Posts on LINQ to Fail and was authored by Posts on LINQ to Fail


Print Share Comment Cite Upload Translate
APA
Posts on LINQ to Fail | Sciencx (2022-10-06T19:24:55+00:00) » Evolving authentication on React components. Retrieved from https://www.scien.cx/2015/01/17/evolving-authentication-on-react-components/.
MLA
" » Evolving authentication on React components." Posts on LINQ to Fail | Sciencx - Saturday January 17, 2015, https://www.scien.cx/2015/01/17/evolving-authentication-on-react-components/
HARVARD
Posts on LINQ to Fail | Sciencx Saturday January 17, 2015 » Evolving authentication on React components., viewed 2022-10-06T19:24:55+00:00,<https://www.scien.cx/2015/01/17/evolving-authentication-on-react-components/>
VANCOUVER
Posts on LINQ to Fail | Sciencx - » Evolving authentication on React components. [Internet]. [Accessed 2022-10-06T19:24:55+00:00]. Available from: https://www.scien.cx/2015/01/17/evolving-authentication-on-react-components/
CHICAGO
" » Evolving authentication on React components." Posts on LINQ to Fail | Sciencx - Accessed 2022-10-06T19:24:55+00:00. https://www.scien.cx/2015/01/17/evolving-authentication-on-react-components/
IEEE
" » Evolving authentication on React components." Posts on LINQ to Fail | Sciencx [Online]. Available: https://www.scien.cx/2015/01/17/evolving-authentication-on-react-components/. [Accessed: 2022-10-06T19:24:55+00:00]
rf:citation
» Evolving authentication on React components | Posts on LINQ to Fail | Sciencx | https://www.scien.cx/2015/01/17/evolving-authentication-on-react-components/ | 2022-10-06T19:24:55+00:00
https://github.com/addpipe/simple-recorderjs-demo