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

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

Link to this macro

define_load_from_bearer(otp_app)

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

Generates the load_from_bearer/2 plug with the otp_app prefilled.

Link to this macro

define_load_from_session(otp_app)

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

Generates the load_from_session/2 plug with the otp_app prefilled.

Link to this macro

define_revoke_bearer_tokens(otp_app)

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

Generates the revoke_bearer_tokens/2 plug with the otp_app prefilled.

Link to this macro

validate_subject_name_uniqueness(otp_app)

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

Generates the subject name validation code for the auth plug.