View Source AshAuthentication.Checks.AshAuthenticationInteraction (ash_authentication v4.3.6)

This check is true if the context private.ash_authentication? is set to true.

This context will only ever be set in code that is called internally by ash_authentication, allowing you to create a bypass in your policies on your user/user_token resources.

policies do
  bypass AshAuthenticationInteraction do
    authorize_if always()
  end
end

Summary

Functions

eager_evaluate?()

Callback implementation for Ash.Policy.Check.eager_evaluate?/0.

prefer_expanded_description?()

Callback implementation for Ash.Policy.Check.prefer_expanded_description?/0.

requires_original_data?(_, _)

Callback implementation for Ash.Policy.Check.requires_original_data?/2.

strict_check(actor, context, opts)

Callback implementation for Ash.Policy.Check.strict_check/3.

type()

Callback implementation for Ash.Policy.Check.type/0.