FakeIdentityService

play.silhouette.test.FakeIdentityService
class FakeIdentityService[I <: Identity](identities: (LoginInfo, I)*) extends IdentityService[I]

A fake identity service implementation which can handle a predefined list of identities.

Type parameters

I

The type of the identity to handle.

Value parameters

identities

A list of (login info -> identity) pairs this service is responsible for.

Attributes

Graph
Supertypes
trait IdentityService[I]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def retrieve(loginInfo: LoginInfo): Future[Option[I]]

Retrieves an identity that matches the specified login info.

Retrieves an identity that matches the specified login info.

Value parameters

loginInfo

The login info to retrieve an identity.

Attributes

Returns

The retrieved identity or None if no identity could be retrieved for the given login info.