Everyone I was wondering if anyone knows of any Java libraries that are similar to or offer the same functionality as CanCan (Ruby on Rails). Would love to know your experiences with them if any.
CanCan is an authorization library for Ruby on Rails which restricts what resources a given user is allowed to access. All permissions are defined in a single location (the Ability class) and not duplicated across controllers, views, and database queries.
Bonus points if it works on the play framework (http://playframework.org)
Here is one Example https://github.com/eltados/canny of something very similar? Has anyone got any experience using this?
Checkout this lib:
https://casbin.org/
https://github.com/casbin/jcasbin
You can use a library in your application. Also, you can deploy it as a service and integrate your application to it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With