Package

com.mohiva.play.silhouette

test

Permalink

package test

Test helpers to test a Silhouette application.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. test
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class FakeAuthenticator(loginInfo: LoginInfo, id: String = UUID.randomUUID().toString, isValid: Boolean = true) extends StorableAuthenticator with Product with Serializable

    Permalink

    A fake authenticator.

    A fake authenticator.

    loginInfo

    The linked login info for an identity.

    id

    The ID of the authenticator.

    isValid

    True if the authenticator is valid, false otherwise.

  2. class FakeAuthenticatorRepository[T <: StorableAuthenticator] extends AuthenticatorRepository[T]

    Permalink

    A fake authenticator repository which persists authenticators in memory.

    A fake authenticator repository which persists authenticators in memory.

    T

    The type of the authenticator to handle.

  3. case class FakeBearerTokenAuthenticatorService() extends BearerTokenAuthenticatorService with Product with Serializable

    Permalink

    A fake bearer token authenticator service.

  4. case class FakeCookieAuthenticatorService() extends CookieAuthenticatorService with Product with Serializable

    Permalink

    A fake cookie authenticator service.

  5. case class FakeDummyAuthenticatorService() extends DummyAuthenticatorService with Product with Serializable

    Permalink

    A fake Dummy authenticator service.

  6. case class FakeEnvironment[E <: Env](identities: Seq[(LoginInfo, E.I)], requestProviders: Seq[RequestProvider] = Seq(), eventBus: EventBus = EventBus())(implicit executionContext: ExecutionContext, tt: scala.reflect.api.JavaUniverse.TypeTag[E.A]) extends Environment[E] with Product with Serializable

    Permalink

    A fake environment implementation.

    A fake environment implementation.

    E

    The type of the environment.

    identities

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

    requestProviders

    The list of request providers.

    eventBus

    The event bus implementation.

    executionContext

    The execution context to handle the asynchronous operations.

    tt

    The type tag of the authenticator type.

  7. case class FakeIdentity(loginInfo: LoginInfo) extends Identity with Product with Serializable

    Permalink

    A fake identity.

    A fake identity.

    loginInfo

    The linked login info for an identity.

  8. class FakeIdentityService[I <: Identity] extends IdentityService[I]

    Permalink

    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.

    I

    The type of the identity to handle.

  9. case class FakeJWTAuthenticatorService() extends JWTAuthenticatorService with Product with Serializable

    Permalink

    A fake JWT authenticator service.

  10. implicit class FakeRequestWithAuthenticator[A] extends AnyRef

    Permalink

    Provides a method which add an authenticator to a fake request.

    Provides a method which add an authenticator to a fake request.

    A

    The type of the body.

  11. case class FakeSessionAuthenticatorService() extends SessionAuthenticatorService with Product with Serializable

    Permalink

    A fake session authenticator service.

Value Members

  1. object FakeAuthenticator extends Serializable

    Permalink

    A fake authenticator factory.

  2. object FakeAuthenticatorService

    Permalink

    A fake authenticator service factory.

  3. implicit def await[T](f: Future[T]): T

    Permalink

    Resolves a future by waiting of the result.

    Resolves a future by waiting of the result.

    T

    The type contained in the future.

    f

    The future to block.

    returns

    The value contained in the future.

    Attributes
    protected

Inherited from AnyRef

Inherited from Any

Ungrouped