EncryptedCookieAuthenticator

tsec.authentication.EncryptedCookieAuthenticator$
See theEncryptedCookieAuthenticator companion class

Attributes

Companion
class
Source
EncryptedCookieAuthenticator.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def stateless[F[_], I : Decoder, V, A : AES](settings: TSecCookieSettings, identityStore: IdentityStore[F, I, V], key: Type[A])(implicit evidence$7: Decoder[I], evidence$8: Encoder[I], evidence$9: AES[A], F: Sync[F], instance: JAuthEncryptor[F, A], ivStrat: IvGen[F, A]): StatelessECAuthenticator[F, I, V, A]

Generate a stateless cookie authenticator that stores the authentication data, but not a token, in a backing store.

Generate a stateless cookie authenticator that stores the authentication data, but not a token, in a backing store. Since we have no way to verify that the cookie's expiration and sliding window haven't been modified, we encrypt it as part of the contents

Attributes

Source
EncryptedCookieAuthenticator.scala
def withBackingStore[F[_], I, V, A : AES](settings: TSecCookieSettings, tokenStore: BackingStore[F, UUID, AuthEncryptedCookie[A, I]], identityStore: IdentityStore[F, I, V], key: Type[A])(implicit evidence$6: AES[A], F: Sync[F], instance: JAuthEncryptor[F, A], ivStrat: IvGen[F, A]): StatefulECAuthenticator[F, I, V, A]

The default Encrypted cookie Authenticator, with a backing store.

The default Encrypted cookie Authenticator, with a backing store.

Type parameters

A

the symmetric key algorithm to use authenticated encryption

F

the effect type

I

the id type for a user

V

the expected user type, V aka value

Value parameters

identityStore

the backing store of the identity

key

the symmetric signing key

settings

the cookie settings

tokenStore

the token backing store

Attributes

Returns

An encrypted cookie authenticator

Source
EncryptedCookieAuthenticator.scala