CredentialStore

tsec.authentication.credentials.CredentialStore
trait CredentialStore[F[_], C, P]

An trait representing the common operations you would do to/with credentials, such as logging in with a password, or validating an oauth token to log in

Attributes

Source
CredentialStore.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class PasswordStore[F, Id, P]
trait BCryptPasswordStore[F, Id]
trait SCryptPasswordStore[F, Id]

Members list

Value members

Abstract methods

def isAuthenticated(credentials: C): F[Boolean]

Attributes

Source
CredentialStore.scala
def putCredentials(credentials: C, put: P => F[Unit]): F[Unit]

Add credentials to some backing store.

Add credentials to some backing store. putCredentials takes a function, most likely partially applied on some userId, that takes a P and adds some user record onto a credentials store.

Attributes

Returns
Source
CredentialStore.scala

Concrete methods

def updateCredentials(credentials: C, update: P => F[Unit]): F[Unit]

Alias for putCredentials for when anyone may want to be verbose about put vs update

Alias for putCredentials for when anyone may want to be verbose about put vs update

Attributes

Source
CredentialStore.scala