FakeDummyAuthenticatorService

play.silhouette.test.FakeDummyAuthenticatorService
case object FakeDummyAuthenticatorService extends DummyAuthenticatorService

A fake Dummy authenticator service.

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class DummyAuthenticatorService
trait AuthenticatorService[DummyAuthenticator]
trait ExecutionContextProvider
class Object
trait Matchable
class Any
Show all
Self type

Members list

Type members

Inherited types

type MirroredElemLabels = EmptyTuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Singleton
type MirroredElemTypes = EmptyTuple

Attributes

Inherited from:
Singleton
type MirroredMonoType = Singleton.this.type

The mirrored *-type

The mirrored *-type

Attributes

Inherited from:
Singleton
type MirroredType = Singleton.this.type

Attributes

Inherited from:
Singleton

Inherited and Abstract types

type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Inherited methods

override def create(loginInfo: LoginInfo)(implicit request: RequestHeader): Future[DummyAuthenticator]

Creates a new authenticator for the specified login info.

Creates a new authenticator for the specified login info.

Value parameters

loginInfo

The login info for which the authenticator should be created.

request

The request header.

Attributes

Returns

An authenticator.

Definition Classes
DummyAuthenticatorService -> AuthenticatorService
Inherited from:
DummyAuthenticatorService
override def discard(authenticator: DummyAuthenticator, result: Result)(implicit request: RequestHeader): Future[AuthenticatorResult]

Returns the original request, because we needn't discard the authenticator in the result.

Returns the original request, because we needn't discard the authenticator in the result.

Value parameters

request

The request header.

result

The result to manipulate.

Attributes

Returns

The manipulated result.

Definition Classes
DummyAuthenticatorService -> AuthenticatorService
Inherited from:
DummyAuthenticatorService
override def embed(value: Unit, request: RequestHeader): RequestHeader

Returns the original request, because we needn't add the authenticator to the request.

Returns the original request, because we needn't add the authenticator to the request.

Value parameters

request

The request header.

value

The authenticator value to embed.

Attributes

Returns

The manipulated request header.

Definition Classes
DummyAuthenticatorService -> AuthenticatorService
Inherited from:
DummyAuthenticatorService
override def embed(value: Unit, result: Result)(implicit request: RequestHeader): Future[AuthenticatorResult]

Returns the original result, because we needn't add the authenticator to the result.

Returns the original result, because we needn't add the authenticator to the result.

Value parameters

request

The request header.

result

The result to manipulate.

value

The authenticator value to embed.

Attributes

Returns

The manipulated result.

Definition Classes
DummyAuthenticatorService -> AuthenticatorService
Inherited from:
DummyAuthenticatorService
def fromProduct(p: Product): MirroredMonoType

Create a new instance of type T with elements taken from product p.

Create a new instance of type T with elements taken from product p.

Attributes

Inherited from:
Singleton
override def init(authenticator: DummyAuthenticator)(implicit request: RequestHeader): Future[Unit]

Returns noting because this authenticator doesn't have a serialized representation.

Returns noting because this authenticator doesn't have a serialized representation.

Value parameters

authenticator

The authenticator instance.

request

The request header.

Attributes

Returns

The serialized authenticator value.

Definition Classes
DummyAuthenticatorService -> AuthenticatorService
Inherited from:
DummyAuthenticatorService
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
override def renew(authenticator: DummyAuthenticator, result: Result)(implicit request: RequestHeader): Future[AuthenticatorResult]

Returns the original request, because we needn't renew the authenticator in the result.

Returns the original request, because we needn't renew the authenticator in the result.

Value parameters

authenticator

The authenticator to update.

request

The request header.

result

The result to manipulate.

Attributes

Returns

The original or a manipulated result.

Definition Classes
DummyAuthenticatorService -> AuthenticatorService
Inherited from:
DummyAuthenticatorService
override def renew(authenticator: DummyAuthenticator)(implicit request: RequestHeader): Future[Unit]

Returns noting because this authenticator doesn't have a serialized representation.

Returns noting because this authenticator doesn't have a serialized representation.

Value parameters

authenticator

The authenticator to renew.

request

The request header.

Attributes

Returns

The serialized expression of the authenticator.

Definition Classes
DummyAuthenticatorService -> AuthenticatorService
Inherited from:
DummyAuthenticatorService
override def retrieve[B](implicit request: ExtractableRequest[B]): Future[Option[DummyAuthenticator]]

Retrieves the authenticator from request.

Retrieves the authenticator from request.

Doesn't need to return an authenticator here, because this method will not be called if a request provider grants access. If the authentication with a request provider has failed, then this method must return None to not grant access to the resource.

Type parameters

B

The type of the request body.

Value parameters

request

The request to retrieve the authenticator from.

Attributes

Returns

Always None because .

Definition Classes
DummyAuthenticatorService -> AuthenticatorService
Inherited from:
DummyAuthenticatorService
override def touch(authenticator: DummyAuthenticator): Either[DummyAuthenticator, DummyAuthenticator]

Touches an authenticator.

Touches an authenticator.

An authenticator can use sliding window expiration. This means that the authenticator times out after a certain time if it wasn't used. So to mark an authenticator as used it will be touched on every request to a Silhouette action. If an authenticator should not be touched because of the fact that sliding window expiration is disabled, then it should be returned on the right, otherwise it should be returned on the left. An untouched authenticator needn't be updated later by the update method.

Value parameters

authenticator

The authenticator to touch.

Attributes

Returns

The touched authenticator on the left or the untouched authenticator on the right.

Definition Classes
DummyAuthenticatorService -> AuthenticatorService
Inherited from:
DummyAuthenticatorService
override def update(authenticator: DummyAuthenticator, result: Result)(implicit request: RequestHeader): Future[AuthenticatorResult]

Returns the original request, because we needn't update the authenticator in the result.

Returns the original request, because we needn't update the authenticator in the result.

Value parameters

authenticator

The authenticator to update.

request

The request header.

result

The result to manipulate.

Attributes

Returns

The original or a manipulated result.

Definition Classes
DummyAuthenticatorService -> AuthenticatorService
Inherited from:
DummyAuthenticatorService

Implicits

Inherited implicits

implicit val executionContext: ExecutionContext

The execution context to handle the asynchronous operations.

The execution context to handle the asynchronous operations.

Attributes

Inherited from:
DummyAuthenticatorService