Devise equivalent in Play Framework?
I need a authentication solution like Devise for an app that I am writing using Play Framework. I'd appreciate any pointer开发者_运维问答s towards a full fledged solution or work in progress that I can build upon.
Silhouette or Play-Authenticate, as of Play 2.4
I am not aware of an complete out of box existing solution but Play includes standard mecanisms of Authentication and Authorization. Based upon roles and checks. Here is the YABE example.
There are also some modules available from the community, if you really want to build your own stuff, you can use those as a start : http://www.playframework.org/modules. Check out for "auth", there are some results.
But still, I think that perhaps you are looking at the problem from the wrong way. By switching technology, you have to accept to do things differently and not always seek to do as you would do in another language. Play! has it way of thinking, it's own conception mode and trying to adapt existing patterns from other technologies might not be as glorious as expected.
精彩评论