Petteri H
Petteri H

Reputation: 12192

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.

Upvotes: 4

Views: 2276

Answers (2)

Jorge
Jorge

Reputation: 1403

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.

Upvotes: 4

biesior
biesior

Reputation: 55798

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

Upvotes: 2

Related Questions