/securesocial

A module that provides OAuth, OAuth2 and OpenID authentication for Play Framework applications

Primary LanguageJavaApache License 2.0Apache-2.0

Fork features
=========
We can add additional scopes into application.conf
i.e the sample deadbolt integration contains
securesocial.facebook.scope=email,user_birthday,user_location

And in the SocialUser class an additional HashMap property added named scopeValues
We can now use user.scopeValues(“birthday”) to access the value requested by the scope user_birthday
See [facebook documentation](https://developers.facebook.com/docs/authentication/permissions/) for other scopes


SecureSocial Module for Play! Framework Applications

SecureSocial allows you to add an authentication UI to your app that works with services based on OAuth1, OAuth2, OpenID and OpenID+OAuth hybrid protocols.

It also provides a Username and Password mechanism for users that do not wish to use existing accounts in other networks.

The following services are supported in this release:

  • Twitter (OAuth1)
  • Facebook (OAuth2)
  • Google (OpenID + OAuth Hybrid)
  • Yahoo (OpenID + OAuth Hybrid)
  • LinkedIn (OAuth1)
  • Foursquare (OAuth2)
  • MyOpenID (OpenID)
  • Wordpress (OpenID)
  • Username and Password

The module does not depend on any external Java libray. It relies only on what the Play! Framework provides and uses the awesome Bootstrap toolkit from Twitter to style the UI.

There is a live demo at http://securesocial-jaliss.rhcloud.com. You can try all the providers there except the Username and Password one because the app cannot send emails on that server.

Source code is available at https://github.com/jaliss/securesocial
Written by Jorge Aliss (@jaliss)

Licence

SecureSocial is distributed under the Apache 2 licence.