If you want to add Authentication to a Play! Framework 2 project, Secure Social is the way to go. I had some problems installing it despite the documentation and examples. Here are my tips based on what I learned:
SecureSocial allows you to add an authentication UI to your app that works with services based on OAuth1, OAuth2 and OpenID protocols. SecureSocial provides Scala and Java APIs so you can integrate it using your preferred language.
1. You also need to add the dependency for:
“com.typesafe” %% “play-plugins-mailer” % “2.0.4”
2. The Provider Section is part of the Secure Social – make sure it is a “sub-section” of the “securesocial” section
The configuration for each provider goes within the securesocial section as well.