react-router-role-authorization icon indicating copy to clipboard operation
react-router-role-authorization copied to clipboard

Role-based authorization components for React and React-Router

Results 10 react-router-role-authorization issues
Sort by recently updated
recently updated
newest added

does this manages impersonation? That is mangling with the rle field on the browser so that a user can take another role?

As the new version of react-router is completely rewriten, it would be nice to add support for this version of react-router. Or maybe it is completely unnecesary now?

enhancement

TypeScript grows very fast, and very interest is there plans to make types definition to work with TypeScript, it will be very helpfull?

Current version of 1.1.3 doesn't support React greater than 15.5 that don't ship with proptypes. ``` index.js?36bf:206 Uncaught TypeError: Cannot read property 'array' of undefined ``` from dist.js line 216...

`notAuthorizedPath` isn't used, if user has been overridden `handleUnauthorizedRole` and custom handler doesn't call `super#handleUnauthorizedRole`.

IMHO, #2 will be caused when link to other route which has same component. `componentWillMount` is NOT triggered when transition between same components. This PR check permission when when link...

Consider implementing approach given by `andrewingram` on [reddit](https://www.reddit.com/r/reactjs/comments/4qwv4d/rolebased_authorization_for_reactrouter_npm/) his comment below: _A few notes: I tend to avoid role-based permissions, because it creates a high maintenance burden. By this I...

enhancement

I am facing a problem with the Link component of React router. If I try to visit a restricted route through Link like as: Profile the AuthorizedComponent fails to check...

bug

I was trying to figure out a way but it doesn't seem to work for me if I try to put this on server side. I am using this boilerplate....

question

Hello @burczu , I find your library really useful. The only thing I was missing to have a complete framework were authorization decorators (not sure if it's the best name...