View Source AshAuthentication.Plug.Macros (ash_authentication v4.3.7)

Generators used within use AshAuthentication.Plug.

Summary

Functions

Generates the load_from_bearer/2 plug with the otp_app prefilled.

Generates the load_from_session/2 plug with the otp_app prefilled.

Generates the revoke_bearer_tokens/2 plug with the otp_app prefilled.

Generates the subject name validation code for the auth plug.

Functions

define_load_from_bearer(otp_app)

(macro)
@spec define_load_from_bearer(atom()) :: Macro.t()

Generates the load_from_bearer/2 plug with the otp_app prefilled.

define_load_from_session(otp_app)

(macro)
@spec define_load_from_session(atom()) :: Macro.t()

Generates the load_from_session/2 plug with the otp_app prefilled.

define_revoke_bearer_tokens(otp_app)

(macro)
@spec define_revoke_bearer_tokens(atom()) :: Macro.t()

Generates the revoke_bearer_tokens/2 plug with the otp_app prefilled.

validate_subject_name_uniqueness(otp_app)

(macro)
@spec validate_subject_name_uniqueness(atom()) :: Macro.t()

Generates the subject name validation code for the auth plug.