Skip to content

Enhanced Angular Role Based Access Control tutorial from Permit.io

Notifications You must be signed in to change notification settings

jdegand/permit-rbac

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Permit RBAC

This application expands upon the concepts introduced in this article, offering a more complete and up-to-date implementation. While the original tutorial provides a helpful foundation, it’s somewhat unclear in places and relies on a deprecated CASL setup. This repository aims to clarify those gaps and provide a more reliable reference.

Thoughts

  • Article is missing Task and TaskService implementation code. I created my own Task interface and used completed instead of finished so the template code needs to updated accordingly. Use find and replace.
  • Although the article isn't that old, the CASL implementation is problematic as much of it is deprecated (Ability, AblePipe, etc).
  • Added a few error checks / early termination in server.js.
  • Styling isn't quite the same. I didn't use the correct Angular Material theme to match the article's screenshots.

How to Use

  • Need to create a Permit.io account. Create a workspace and set the API key Permit generates for the workspace to PERMIT_API_KEY in an .env file inside the server folder.
  • Need to run server first -> cd server / npm start before starting the client and visiting localhost:4200.
  • The deprecated CASL implementation code is available in the client README file.

Acknowledgments

About

Enhanced Angular Role Based Access Control tutorial from Permit.io

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published