abstract class Authenticator[F[_], I, V, A] extends AnyRef
A base typeclass for generating authenticators, i.e cookies, tokens, JWTs etc.
- I
The Identifier type
- V
The value type, i.e user, or possibly only partial information
- A
the type of authenticator
- Source
- Authenticator.scala
- Alphabetic
- By Inheritance
- Authenticator
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Authenticator()(implicit arg0: Sync[F])
Abstract Value Members
-
abstract
def
afterBlock(response: Response[F], authenticator: A): 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
-
abstract
def
create(body: I): F[A]
Create an authenticator from an identifier.
-
abstract
def
discard(authenticator: A): F[A]
Delete an authenticator from a backing store, or invalidate it.
-
abstract
def
embed(response: Response[F], authenticator: A): 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
- abstract def expiry: FiniteDuration
-
abstract
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.
- abstract def maxIdle: Option[FiniteDuration]
-
abstract
def
parseRaw(raw: String, request: Request[F]): OptionT[F, SecuredRequest[F, V, A]]
Parse the raw representation from
extractRawOption
-
abstract
def
refresh(authenticator: A): F[A]
Refresh an authenticator: Primarily used for sliding window expiration
-
abstract
def
renew(authenticator: A): F[A]
Renew an authenticator: Reset it's expiry and whatnot.
-
abstract
def
update(authenticator: A): F[A]
Update the altered authenticator
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
extractAndValidate(request: Request[F]): OptionT[F, SecuredRequest[F, V, A]]
Return a secured request from a request, that carries our authenticator
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )