play.silhouette.test
Test helpers to test a Silhouette application.
Attributes
Members list
Type members
Classlikes
A fake authenticator.
A fake authenticator.
Value parameters
- id
-
The ID of the authenticator.
- isValid
-
True if the authenticator is valid, false otherwise.
- loginInfo
-
The linked login info for an identity.
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait StorableAuthenticatortrait Authenticatorclass Objecttrait Matchableclass AnyShow all
A fake authenticator factory.
A fake authenticator factory.
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
FakeAuthenticator.type
A fake authenticator repository which persists authenticators in memory.
A fake authenticator repository which persists authenticators in memory.
Type parameters
- T
-
The type of the authenticator to handle.
Attributes
- Supertypes
-
trait AuthenticatorRepository[T]class Objecttrait Matchableclass Any
A fake authenticator service factory.
A fake authenticator service factory.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
A fake bearer token authenticator service.
A fake bearer token authenticator service.
Attributes
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass BearerTokenAuthenticatorServicetrait Loggertrait AuthenticatorService[BearerTokenAuthenticator]trait ExecutionContextProviderclass Objecttrait Matchableclass AnyShow all
- Self type
A fake cookie authenticator service.
A fake cookie authenticator service.
Attributes
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass CookieAuthenticatorServicetrait Loggertrait AuthenticatorService[CookieAuthenticator]trait ExecutionContextProviderclass Objecttrait Matchableclass AnyShow all
- Self type
A fake Dummy authenticator service.
A fake Dummy authenticator service.
Attributes
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass DummyAuthenticatorServicetrait AuthenticatorService[DummyAuthenticator]trait ExecutionContextProviderclass Objecttrait Matchableclass AnyShow all
- Self type
A fake environment implementation.
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
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Environment[E]trait ExecutionContextProviderclass Objecttrait Matchableclass AnyShow all
A fake identity.
A fake identity.
Value parameters
- loginInfo
-
The linked login info for an identity.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Identityclass Objecttrait Matchableclass AnyShow all
A fake identity service implementation which can handle a predefined list of identities.
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
- Supertypes
-
trait IdentityService[I]class Objecttrait Matchableclass Any
A fake JWT authenticator service.
A fake JWT authenticator service.
Attributes
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass JWTAuthenticatorServicetrait Loggertrait AuthenticatorService[JWTAuthenticator]trait ExecutionContextProviderclass Objecttrait Matchableclass AnyShow all
- Self type
Provides a method which add an authenticator to a fake request.
Provides a method which add an authenticator to a fake request.
Type parameters
- A
-
The type of the body.
Value parameters
- f
-
A fake request instance.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
A fake session authenticator service.
A fake session authenticator service.
Attributes
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass SessionAuthenticatorServicetrait Loggertrait AuthenticatorService[SessionAuthenticator]trait ExecutionContextProviderclass Objecttrait Matchableclass AnyShow all
- Self type
Implicits
Implicits
Provides a method which add an authenticator to a fake request.
Provides a method which add an authenticator to a fake request.
Type parameters
- A
-
The type of the body.
Value parameters
- f
-
A fake request instance.