com.mle.play

openid

package openid

Visibility
  1. Public
  2. All

Type Members

  1. trait OpenIdAuth extends Log

    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:

    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:

    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.

Ungrouped