开发者

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)


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.


Does Spring Security not provide similar functionality? See http://static.springsource.org/spring-security/site/docs/3.0.x/reference/el-access.html#el-pre-post-annotations for examples of annotation-based authorization specifications...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜