An exception thrown when the user denies access to the application in the login page of the 3rd party service
An exception thrown when there is an error in the authentication flow
A class representing an authentication method
An authenticator tracks an authenticated user.
The authenticator store is in charge of persisting authenticators
A trait to define Authorization objects that let you hook an authorization implementation in SecuredActions
A default implementation of the AuthenticationStore that uses the Play cache.
A default implementation of the AuthenticationStore that uses the Play cache. Note: if deploying to multiple nodes the caches will need to synchronize.
The default id generator
A trait to model SecureSocial events
The event listener interface
A plugin that generates an authenticator id
This trait represents a user.
This trait represents a user. Using this trait you can return your own object from the UserService. Find methods if you need to instead of returning a SocialUser.
In your controller actions you can then convert this Identity to your own class using pattern matching in Scala or a cast in Java.
Important: your controllers will receive the instance you created, but this won't work the same for the UserService.save method. In that case, SecureSocial will pass an instance created by itself (a SocialUser) so do not try to cast the Identity to your own model within your method implementation.
The ID of an Identity
The ID of an Identity
the user id on the provider the user came from (eg: twitter, facebook)
the provider used to sign in
Base class for all Identity Providers.
Base class for all Identity Providers. All providers are plugins and are loaded automatically at application start time.
The event fired when a users logs in
The event fired when a user logs out
The OAuth 1 details
The OAuth 1 details
the token
the secret
Base class for all OAuth1 providers
The Oauth2 details
The Oauth2 details
the access token
the token type
the number of seconds before the token expires
the refresh token
Base class for all OAuth2 providers
The event fired when a user changes his password
The password details
The password details
the id of the hasher used to hash this password
the hashed password
the optional salt used when hashing
The event fired when a user completes a password reset
A request that adds the User for the current call
Provides the actions that can be used to protect controllers and retrieve the current user if available.
Provides the actions that can be used to protect controllers and retrieve the current user if available.
object MyController extends SecureSocial { def protectedAction = SecuredAction { implicit request => Ok("Hello %s".format(request.user.displayName)) }
A request that adds the User for the current call
The event fired when a user sings up with the Username and Password Provider
An implementation of Identity.
An implementation of Identity. Used by SecureSocial to gather user information when users sign up and/or sign in.
A trait that provides the means to find and save users for the SecureSocial module.
A trait that provides the means to find and save users for the SecureSocial module.
DefaultUserService
Base class for the classes that implement UserService.
Base class for the classes that implement UserService. Since this is a plugin it gets loaded at application start time. Only one plugin of this type must be specified in the play.plugins file.
Authentication methods used by the identity providers
Helper object to fire events
A registry for providers and password hashers.
A registry for providers and password hashers. Providers and password hashers register themselves here when they are loaded by Play
The UserService singleton
An authenticator tracks an authenticated user.
The authenticator id
The user id
The creation timestamp
The last used timestamp
The expiration time