ngx-permissions
angular2-jwt
ngx-permissions | angular2-jwt | |
---|---|---|
4 | 1 | |
922 | 2,629 | |
- | 0.2% | |
4.9 | 5.5 | |
about 2 months ago | about 1 month ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
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.
ngx-permissions
- 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
angular2-jwt
-
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.
What are some alternatives?
accesscontrol - Role and Attribute based Access Control for Node.js
next-auth - Authentication for the Web.
react-role - Lightweight role based access management solution for React applications
google-auth-library-nodejs - 🔑 Google Auth Library for Node.js
laratrust - Handle roles and permissions in your Laravel application
Angular-Full-Stack - Angular Full Stack project built using Angular, Express, Mongoose and Node. Whole stack in TypeScript.
ngx-monaco-editor - Monaco Editor component for Angular 2 and Above
auth0-angular - Auth0 SDK for Angular Single Page Applications
ngx-datatable - ✨ A feature-rich yet lightweight data-table crafted for Angular
jwt-decode - Decode JWT tokens; useful for browser applications.
ng2-pdfjs-viewer - An angular component for PDFJS and ViewerJS (Supports all versions of angular)
cat-toolkit-angular-starter - This repository is for Medium story Angular Starter Kit for Fast Prototype