mix ash_authentication.install (ash_authentication v4.13.3)

View Source

Installs AshAuthentication. Invoke with mix igniter.install ash_authentication

Example

To install with default settings:

mix igniter.install ash_authentication

To install with a custom domain and resources:

mix igniter.install ash_authentication --auth-strategy magic_link,password --accounts MyApp.AshAccounts --user MyApp.AshAccounts.User --token MyApp.AshAccounts.Token

Options

  • --accounts or -a - The domain that contains your resources. Defaults to YourApp.Accounts.
  • --user or -u - The resource that represents a user. Defaults to <accounts>.User.
  • --token or -t - The resource that represents a token. Defaults to <accounts>.Token.
  • --auth-strategy - The strategy or strategies to use for authentication. None by default, can be specified multiple times for more than one strategy. To add after installation, use mix ash_authentication.add_strategy password

Summary

Functions

data_layer_args(igniter, opts)

setup_data_layer(igniter, repo)