FakeEnvironment

play.silhouette.test.FakeEnvironment
final case class FakeEnvironment[E <: Env](identities: Seq[(LoginInfo, I[E])], requestProviders: Seq[RequestProvider], eventBus: EventBus)(implicit executionContext: ExecutionContext, tt: Tag[A[E]]) extends Environment[E]

A fake environment implementation.

Type parameters

E

The type of the environment.

Value parameters

eventBus

The event bus implementation.

executionContext

The execution context to handle the asynchronous operations.

identities

A list of (login info -> identity) pairs to return inside a Silhouette action.

requestProviders

The list of request providers.

tt

The type tag of the authenticator type.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Environment[E]
trait ExecutionContextProvider
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

val authenticatorService: AuthenticatorService[A[E]]

The authenticator service implementation.

The authenticator service implementation.

Attributes

val identityService: IdentityService[I[E]]

The identity service implementation.

The identity service implementation.

Attributes

Implicits

Implicits

implicit val executionContext: ExecutionContext

The execution context to handle the asynchronous operations.

The execution context to handle the asynchronous operations.

Attributes