FakeAuthenticatorRepository

play.silhouette.test.FakeAuthenticatorRepository
class FakeAuthenticatorRepository[T <: StorableAuthenticator] extends AuthenticatorRepository[T]

A fake authenticator repository which persists authenticators in memory.

Type parameters

T

The type of the authenticator to handle.

Attributes

Graph
Supertypes
trait AuthenticatorRepository[T]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def add(authenticator: T): Future[T]

Adds a new authenticator.

Adds a new authenticator.

Value parameters

authenticator

The authenticator to add.

Attributes

Returns

The added authenticator.

def find(id: String): Future[Option[T]]

Finds the authenticator for the given ID.

Finds the authenticator for the given ID.

Value parameters

id

The authenticator ID.

Attributes

Returns

The found authenticator or None if no authenticator could be found for the given ID.

def remove(id: String): Future[Unit]

Removes the authenticator for the given ID.

Removes the authenticator for the given ID.

Value parameters

id

The authenticator ID.

Attributes

Returns

An empty future.

def update(authenticator: T): Future[T]

Updates an already existing authenticator.

Updates an already existing authenticator.

Value parameters

authenticator

The authenticator to update.

Attributes

Returns

The updated authenticator.

Concrete fields

var data: HashMap[String, T]

The data store for the OAuth1 info.

The data store for the OAuth1 info.

Attributes