AshAuthentication.TokenResource.Info (ash_authentication v5.0.0-rc.5)

Copy Markdown View Source

Introspection functions for the AshAuthentication.TokenResource Ash extension.

Summary

Functions

The name of the action used to get confirmation changes.

The name of the action used to get confirmation changes.

token.confirmation DSL options

The name of the action used to store confirmation changes.

The name of the action used to store confirmation changes.

The name of the created_at attribute on this resource.

The name of the created_at attribute on this resource.

The Ash domain to use to access this resource.

The Ash domain to use to access this resource.

The list of the endpoints where we will propagate the disconnect notification, when the user logs out or triggers log out from all devices.

The list of the endpoints where we will propagate the disconnect notification, when the user logs out or triggers log out from all devices.

The name of the action used to remove expired tokens.

The name of the action used to remove expired tokens.

How often (in hours) to scan this resource for records which have expired and thus can be removed.

How often (in hours) to scan this resource for records which have expired and thus can be removed.

The name of the action used to retrieve tokens from the store, if require_tokens_for_authentication? is enabled in your authentication resource.

The name of the action used to retrieve tokens from the store, if require_tokens_for_authentication? is enabled in your authentication resource.

A function that receives a map containing %{jti: jti} and returns the live socket ID string. Additional keys may be added in future versions.

A function that receives a map containing %{jti: jti} and returns the live socket ID string. Additional keys may be added in future versions.

token DSL options

The name of the action use to find all expired tokens.

The name of the action use to find all expired tokens.

The name of the action used to check if a token is revoked.

The name of the action used to check if a token is revoked.

token.revocation DSL options

The name of the action used to revoke all stored tokens for a given subject.

The name of the action used to revoke all stored tokens for a given subject.

The name of the action used to revoke jtis.

The name of the action used to revoke jtis.

The name of the action used to insert a revocation record by JTI when the token was not previously stored. Non-upsert variant of revoke_jti.

The name of the action used to insert a revocation record by JTI when the token was not previously stored. Non-upsert variant of revoke_jti.

The name of the action used to revoke tokens.

The name of the action used to revoke tokens.

The name of the action used to insert a revocation record when the token was not previously stored. Unlike revoke_token, this action does not use upsert semantics, so concurrent duplicate revocations fail with a primary key conflict.

The name of the action used to insert a revocation record when the token was not previously stored. Unlike revoke_token, this action does not use upsert semantics, so concurrent duplicate revocations fail with a primary key conflict.

The name of the action to use to store a token, if require_tokens_for_authentication? is enabled in your authentication resource.

The name of the action to use to store a token, if require_tokens_for_authentication? is enabled in your authentication resource.

Functions

token_confirmation_get_changes_action_name(dsl_or_extended)

@spec token_confirmation_get_changes_action_name(dsl_or_extended :: module() | map()) ::
  {:ok, atom()} | :error

The name of the action used to get confirmation changes.

token_confirmation_get_changes_action_name!(dsl_or_extended)

@spec token_confirmation_get_changes_action_name!(dsl_or_extended :: module() | map()) ::
  atom() | no_return()

The name of the action used to get confirmation changes.

token_confirmation_options(dsl_or_extended)

@spec token_confirmation_options(dsl_or_extended :: module() | map()) :: %{
  required(atom()) => any()
}

token.confirmation DSL options

Returns a map containing the and any configured or default values.

token_confirmation_store_changes_action_name(dsl_or_extended)

@spec token_confirmation_store_changes_action_name(
  dsl_or_extended :: module() | map()
) ::
  {:ok, atom()} | :error

The name of the action used to store confirmation changes.

token_confirmation_store_changes_action_name!(dsl_or_extended)

@spec token_confirmation_store_changes_action_name!(
  dsl_or_extended :: module() | map()
) ::
  atom() | no_return()

The name of the action used to store confirmation changes.

token_created_at_attribute_name(dsl_or_extended)

@spec token_created_at_attribute_name(dsl_or_extended :: module() | map()) ::
  {:ok, atom()} | :error

The name of the created_at attribute on this resource.

token_created_at_attribute_name!(dsl_or_extended)

@spec token_created_at_attribute_name!(dsl_or_extended :: module() | map()) ::
  atom() | no_return()

The name of the created_at attribute on this resource.

token_domain(dsl_or_extended)

@spec token_domain(dsl_or_extended :: module() | map()) :: {:ok, module()} | :error

The Ash domain to use to access this resource.

token_domain!(dsl_or_extended)

@spec token_domain!(dsl_or_extended :: module() | map()) :: module() | no_return()

The Ash domain to use to access this resource.

token_endpoints(dsl_or_extended)

@spec token_endpoints(dsl_or_extended :: module() | map()) ::
  {:ok, [module()]} | :error

The list of the endpoints where we will propagate the disconnect notification, when the user logs out or triggers log out from all devices.

token_endpoints!(dsl_or_extended)

@spec token_endpoints!(dsl_or_extended :: module() | map()) ::
  [module()] | no_return()

The list of the endpoints where we will propagate the disconnect notification, when the user logs out or triggers log out from all devices.

token_expunge_expired_action_name(dsl_or_extended)

@spec token_expunge_expired_action_name(dsl_or_extended :: module() | map()) ::
  {:ok, atom()} | :error

The name of the action used to remove expired tokens.

token_expunge_expired_action_name!(dsl_or_extended)

@spec token_expunge_expired_action_name!(dsl_or_extended :: module() | map()) ::
  atom() | no_return()

The name of the action used to remove expired tokens.

token_expunge_interval(dsl_or_extended)

@spec token_expunge_interval(dsl_or_extended :: module() | map()) ::
  {:ok, pos_integer()} | :error

How often (in hours) to scan this resource for records which have expired and thus can be removed.

token_expunge_interval!(dsl_or_extended)

@spec token_expunge_interval!(dsl_or_extended :: module() | map()) ::
  pos_integer() | no_return()

How often (in hours) to scan this resource for records which have expired and thus can be removed.

token_get_token_action_name(dsl_or_extended)

@spec token_get_token_action_name(dsl_or_extended :: module() | map()) ::
  {:ok, atom()} | :error

The name of the action used to retrieve tokens from the store, if require_tokens_for_authentication? is enabled in your authentication resource.

token_get_token_action_name!(dsl_or_extended)

@spec token_get_token_action_name!(dsl_or_extended :: module() | map()) ::
  atom() | no_return()

The name of the action used to retrieve tokens from the store, if require_tokens_for_authentication? is enabled in your authentication resource.

token_live_socket_id_template(dsl_or_extended)

@spec token_live_socket_id_template(dsl_or_extended :: module() | map()) ::
  {:ok, (any() -> any())} | :error

A function that receives a map containing %{jti: jti} and returns the live socket ID string. Additional keys may be added in future versions.

token_live_socket_id_template!(dsl_or_extended)

@spec token_live_socket_id_template!(dsl_or_extended :: module() | map()) ::
  (any() -> any()) | no_return()

A function that receives a map containing %{jti: jti} and returns the live socket ID string. Additional keys may be added in future versions.

token_options(dsl_or_extended)

@spec token_options(dsl_or_extended :: module() | map()) :: %{
  required(atom()) => any()
}

token DSL options

Returns a map containing the and any configured or default values.

token_read_expired_action_name(dsl_or_extended)

@spec token_read_expired_action_name(dsl_or_extended :: module() | map()) ::
  {:ok, atom()} | :error

The name of the action use to find all expired tokens.

token_read_expired_action_name!(dsl_or_extended)

@spec token_read_expired_action_name!(dsl_or_extended :: module() | map()) ::
  atom() | no_return()

The name of the action use to find all expired tokens.

token_revocation_is_revoked_action_name(dsl_or_extended)

@spec token_revocation_is_revoked_action_name(dsl_or_extended :: module() | map()) ::
  {:ok, atom()} | :error

The name of the action used to check if a token is revoked.

token_revocation_is_revoked_action_name!(dsl_or_extended)

@spec token_revocation_is_revoked_action_name!(dsl_or_extended :: module() | map()) ::
  atom() | no_return()

The name of the action used to check if a token is revoked.

token_revocation_options(dsl_or_extended)

@spec token_revocation_options(dsl_or_extended :: module() | map()) :: %{
  required(atom()) => any()
}

token.revocation DSL options

Returns a map containing the and any configured or default values.

token_revocation_revoke_all_stored_for_subject_action_name(dsl_or_extended)

@spec token_revocation_revoke_all_stored_for_subject_action_name(
  dsl_or_extended :: module() | map()
) ::
  {:ok, atom()} | :error

The name of the action used to revoke all stored tokens for a given subject.

token_revocation_revoke_all_stored_for_subject_action_name!(dsl_or_extended)

@spec token_revocation_revoke_all_stored_for_subject_action_name!(
  dsl_or_extended :: module() | map()
) ::
  atom() | no_return()

The name of the action used to revoke all stored tokens for a given subject.

token_revocation_revoke_jti_action_name(dsl_or_extended)

@spec token_revocation_revoke_jti_action_name(dsl_or_extended :: module() | map()) ::
  {:ok, atom()} | :error

The name of the action used to revoke jtis.

token_revocation_revoke_jti_action_name!(dsl_or_extended)

@spec token_revocation_revoke_jti_action_name!(dsl_or_extended :: module() | map()) ::
  atom() | no_return()

The name of the action used to revoke jtis.

token_revocation_revoke_jti_insert_action_name(dsl_or_extended)

@spec token_revocation_revoke_jti_insert_action_name(
  dsl_or_extended :: module() | map()
) ::
  {:ok, atom()} | :error

The name of the action used to insert a revocation record by JTI when the token was not previously stored. Non-upsert variant of revoke_jti.

token_revocation_revoke_jti_insert_action_name!(dsl_or_extended)

@spec token_revocation_revoke_jti_insert_action_name!(
  dsl_or_extended :: module() | map()
) ::
  atom() | no_return()

The name of the action used to insert a revocation record by JTI when the token was not previously stored. Non-upsert variant of revoke_jti.

token_revocation_revoke_token_action_name(dsl_or_extended)

@spec token_revocation_revoke_token_action_name(dsl_or_extended :: module() | map()) ::
  {:ok, atom()} | :error

The name of the action used to revoke tokens.

token_revocation_revoke_token_action_name!(dsl_or_extended)

@spec token_revocation_revoke_token_action_name!(dsl_or_extended :: module() | map()) ::
  atom() | no_return()

The name of the action used to revoke tokens.

token_revocation_revoke_token_insert_action_name(dsl_or_extended)

@spec token_revocation_revoke_token_insert_action_name(
  dsl_or_extended :: module() | map()
) ::
  {:ok, atom()} | :error

The name of the action used to insert a revocation record when the token was not previously stored. Unlike revoke_token, this action does not use upsert semantics, so concurrent duplicate revocations fail with a primary key conflict.

token_revocation_revoke_token_insert_action_name!(dsl_or_extended)

@spec token_revocation_revoke_token_insert_action_name!(
  dsl_or_extended :: module() | map()
) ::
  atom() | no_return()

The name of the action used to insert a revocation record when the token was not previously stored. Unlike revoke_token, this action does not use upsert semantics, so concurrent duplicate revocations fail with a primary key conflict.

token_store_token_action_name(dsl_or_extended)

@spec token_store_token_action_name(dsl_or_extended :: module() | map()) ::
  {:ok, atom()} | :error

The name of the action to use to store a token, if require_tokens_for_authentication? is enabled in your authentication resource.

token_store_token_action_name!(dsl_or_extended)

@spec token_store_token_action_name!(dsl_or_extended :: module() | map()) ::
  atom() | no_return()

The name of the action to use to store a token, if require_tokens_for_authentication? is enabled in your authentication resource.