FakeRequestWithAuthenticator

play.silhouette.test.`package`.FakeRequestWithAuthenticator
implicit class FakeRequestWithAuthenticator[F](f: FakeRequest[F])

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

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def withAuthenticator[E <: Env](authenticator: A[E])(implicit env: Environment[E]): FakeRequest[F]

Creates a fake request with an embedded authenticator.

Creates a fake request with an embedded authenticator.

Type parameters

E

The type of the environment.

Value parameters

authenticator

The authenticator to embed into the request.

env

The Silhouette environment.

Attributes

Returns

A fake request.

def withAuthenticator[E <: Env](loginInfo: LoginInfo)(implicit env: Environment[E]): FakeRequest[F]

Creates a fake request with an embedded authenticator.

Creates a fake request with an embedded authenticator.

Type parameters

E

The type of the environment.

Value parameters

env

The Silhouette environment.

loginInfo

The login info for which the new authenticator should be created.

Attributes

Returns

A fake request.

Implicits

Implicits

implicit val request: FakeRequest[F]