简体   繁体   中英

Play framework 2 authentication options

I am about to pick an authentication for Play 2 Java application. At the moment it would be simple username/pw and Facebook, backed with MongoDB.

It looks like there are two options: securesocial and play-authenticate

How do these compare? I can see both have support for common providers and based on a quick look play-authenticate seems to be more complicated.

Play-authenticate was based on the design of SecureSocial. Both modules provide authentication for Play apps so I guess it's just a matter of trying both and see what works best for you.
SecureSocial is written in Scala and provides APIs in Java and Scala so you can use your preferred language with it. Check the latest user guide at http://www.securesocial.ws .

play-authenticate is 'more advanced' it uses securesocial's base idea + additionally incorporates also deadbolt-2 inside to give you full authenticate-authorization stack at once.

You wrote ' at the moment it would be simple... ' however you should think about this topic rather like ' finally it will be simple/advanced, so I need to choose correct solution at the beginning '. And I'd suggest the PA.

See also other answer

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM