Auctoritas v0.2.3 Auctoritas.AuthenticationManager.DefaultTokenManager View Source

Link to this section Summary

Functions

Invoked when authenticating; checks supplied authentication_data

Invoked when authenticating; checks supplied data

Invoked when generating token from inserted authentication_data

Link to this section Types

Link to this section Functions

Link to this function

authentication_data_check(name, data) View Source
authentication_data_check(name(), authentication_data :: map()) ::
  {:ok, authentication_data :: map()} | {:error, error :: any()}

Invoked when authenticating; checks supplied authentication_data

Callback implementation for Auctoritas.TokenManager.authentication_data_check/2.

Link to this function

data_check(name, data) View Source
data_check(name(), data :: map()) ::
  {atom(), any()} :: {:ok, data :: map()} | {:error, error :: any()}

Invoked when authenticating; checks supplied data

Callback implementation for Auctoritas.TokenManager.data_check/2.

Link to this function

generate_token(name, authentication_data) View Source
generate_token(name(), authentication_data :: map()) ::
  {:ok, token()} | {:error, error :: any()}

Invoked when generating token from inserted authentication_data

Callback implementation for Auctoritas.TokenManager.generate_token/2.