View Source AshAuthentication.Igniter (ash_authentication v4.2.0)
Codemods for working with AshAuthentication
Summary
Functions
Adds a new strategy to the authentication.strategies section of a resource
Adds a secret to a secret module that reads from application env
Adds a strategy to the authentication.strategies section of a resource
Returns true if the given resource defines an attribute with the provided name
Functions
@spec add_new_strategy( Igniter.t(), Ash.Resource.t(), type :: atom(), name :: atom(), contents :: String.t() ) :: Igniter.t()
Adds a new strategy to the authentication.strategies section of a resource
Adds a secret to a secret module that reads from application env
@spec add_strategy( Igniter.t(), Ash.Resource.t(), contents :: String.t() ) :: Igniter.t()
Adds a strategy to the authentication.strategies section of a resource
@spec defines_strategy( Igniter.t(), Ash.Resource.t(), constructor :: atom(), name :: atom() ) :: {Igniter.t(), true | false}
Returns true if the given resource defines an attribute with the provided name