SignedCookieAuthenticator

tsec.authentication.SignedCookieAuthenticator
See theSignedCookieAuthenticator companion object
abstract class SignedCookieAuthenticator[F[_], I, V, A] extends Authenticator[F, I, V, AuthenticatedCookie[A, I]]

Attributes

Companion
object
Source
SignedCookieAuthenticator.scala
Graph
Supertypes
class Authenticator[F, I, V, AuthenticatedCookie[A, I]]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def afterBlock(response: Response[F], authenticator: AuthenticatedCookie[A, I]): OptionT[F, Response[F]]

Handles the embedding of the authenticator (if necessary) in the response, and any other actions that should happen after a request related to authenticators

Handles the embedding of the authenticator (if necessary) in the response, and any other actions that should happen after a request related to authenticators

Attributes

Returns
Source
SignedCookieAuthenticator.scala
def create(body: I): F[AuthenticatedCookie[A, I]]

Create an authenticator from an identifier.

Create an authenticator from an identifier.

Attributes

Returns
Source
SignedCookieAuthenticator.scala
def discard(authenticator: AuthenticatedCookie[A, I]): F[AuthenticatedCookie[A, I]]

Delete an authenticator from a backing store, or invalidate it.

Delete an authenticator from a backing store, or invalidate it.

Attributes

Returns
Source
SignedCookieAuthenticator.scala
def embed(response: Response[F], authenticator: AuthenticatedCookie[A, I]): Response[F]

Embed an authenticator directly into a response.

Embed an authenticator directly into a response. Particularly useful for adding an authenticator into unauthenticated actions

Attributes

Returns
Source
SignedCookieAuthenticator.scala
def extractRawOption(request: Request[F]): Option[String]

Attempt to retrieve the raw representation of an A This is primarily useful when attempting to combine AuthenticatorService, to be able to evaluate an endpoint with more than one token type.

Attempt to retrieve the raw representation of an A This is primarily useful when attempting to combine AuthenticatorService, to be able to evaluate an endpoint with more than one token type. or simply just to prod whether the request is malformed.

Attributes

Returns
Source
SignedCookieAuthenticator.scala
def parseRaw(raw: String, request: Request[F]): OptionT[F, SecuredRequest[F, V, AuthenticatedCookie[A, I]]]

Parse the raw representation from extractRawOption

Parse the raw representation from extractRawOption

Attributes

Source
SignedCookieAuthenticator.scala
def renew(authenticator: AuthenticatedCookie[A, I]): F[AuthenticatedCookie[A, I]]

Renew an authenticator: Reset it's expiry and whatnot.

Renew an authenticator: Reset it's expiry and whatnot.

Attributes

Returns
Source
SignedCookieAuthenticator.scala
def update(authenticator: AuthenticatedCookie[A, I]): F[AuthenticatedCookie[A, I]]

Update the altered authenticator

Update the altered authenticator

Attributes

Returns
Source
SignedCookieAuthenticator.scala

Inherited methods

def extractAndValidate(request: Request[F]): OptionT[F, SecuredRequest[F, V, A]]

Return a secured request from a request, that carries our authenticator

Return a secured request from a request, that carries our authenticator

Attributes

Returns
Inherited from:
Authenticator
Source
Authenticator.scala
def refresh(authenticator: AuthenticatedCookie[A, I]): F[A]

Refresh an authenticator: Primarily used for sliding window expiration

Refresh an authenticator: Primarily used for sliding window expiration

Attributes

Returns
Inherited from:
Authenticator
Source
Authenticator.scala