com.mle.play
OpenID authentication.
OpenID authentication. Only Google is supported for now. Usage:
Set a route in your routes file that leads to the handleOpenId method. For example:
handleOpenId
GET /oid controllers.App.handleOpenId
Set another route that leads to the openIdCallback method, for example:
openIdCallback
GET /openidcb controllers.App.openIdCallback
Define the openIdCallbackRoute of this trait to the route you specified:
protected def openIdCallbackRoute = routes.App.openIdCallback()
To start authentication, send the user to the OpenID route you first defined:
Redirect(routes.App.handleOpenId())
The authenticated email address is stored in the username session variable.
OpenID authentication. Only Google is supported for now. Usage:
Set a route in your routes file that leads to the
handleOpenId
method. For example:GET /oid controllers.App.handleOpenId
Set another route that leads to the
openIdCallback
method, for example:GET /openidcb controllers.App.openIdCallback
Define the openIdCallbackRoute of this trait to the route you specified:
To start authentication, send the user to the OpenID route you first defined:
Redirect(routes.App.handleOpenId())
The authenticated email address is stored in the username session variable.