Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java authorization library like "CanCan" for Ruby on Rails

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)

like image 373
Mark Ellul Avatar asked Jun 13 '11 08:06

Mark Ellul


2 Answers

Here is one Example https://github.com/eltados/canny of something very similar? Has anyone got any experience using this?

like image 53
Mark Ellul Avatar answered Sep 25 '22 21:09

Mark Ellul


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.

like image 22
Abdulrazak Alkl Avatar answered Sep 26 '22 21:09

Abdulrazak Alkl