angular2-jwt
Helper library for handling JWTs in Angular apps (by auth0)
ngx-permissions
Permission and roles based access control for your angular(angular 2,4,5,6,7,9+) applications(AOT, lazy modules compatible (by AlexKhymenko)
Our great sponsors
angular2-jwt | ngx-permissions | |
---|---|---|
1 | 4 | |
2,627 | 920 | |
0.1% | - | |
5.9 | 4.9 | |
21 days ago | about 1 month ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
angular2-jwt
Posts with mentions or reviews of angular2-jwt.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-08-03.
-
Guard for Role-based access control
The way I did it was I wrote a core services library that all of our angular applications will use so they can all easily get any updates. When the service gets loaded, it checks for the presence of the jwt (whether in a cookie or local storage), and validates it. If it's valid, I use the @auth0/angular-jwt package to do this, and also decode it, it grabs the list of roles from the token and updates the ngx-permissions service. This service is an entry point so the application doesn't load until this check happens.
ngx-permissions
Posts with mentions or reviews of ngx-permissions.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-08-03.
- New to angular here, making a small project to test it out (angular13, Laravel backend), liking it so far! One thing I have been is proving difficult, is some kind of ACL, roles and permissions etc. Some good articles or examples out there that you guys recommend? Thank you!
- Strategies for implementing a Role based UI?
-
Roles hierarchy
To add to /u/vicmarcal 's answer, ngx-permissions gives you fine-grained control in angular based on roles/permissions.
- Guard for Role-based access control
What are some alternatives?
When comparing angular2-jwt and ngx-permissions you can also consider the following projects:
next-auth - Authentication for the Web.
accesscontrol - Role and Attribute based Access Control for Node.js
google-auth-library-nodejs - 🔑 Google Auth Library for Node.js
react-role - Lightweight role based access management solution for React applications