com.mohiva.play.silhouette.api
Authenticates an identity based on credentials sent in a request.
Authenticates an identity based on credentials sent in a request.
Silhouette supports chaining of request providers. So if more as one request provider is defined it tries to authenticate until one provider returns an identity. To control the behaviour of the chaining you can use the return type by this method.
None - If returning None, then the next provider in the chain will be executed. Some(identity) - If returning some identity, then this provider will be used for authentication. Exception - Throwing an exception breaks the chain. The error handler will also handle this exception.
The type of the body.
The request.
Some login info on successful authentication or None if the authentication was unsuccessful.
Gets the provider ID.
A provider which can be hooked into a request.
It scans the request for credentials and returns the login info for it.