mix ash_authentication_phoenix.add_strategy.totp (ash_authentication_phoenix v3.0.0-rc.6)

View Source

Adds Phoenix integration for the TOTP authentication strategy

Modifies the AuthController to handle TOTP 2FA redirects and emits route setup instructions.

This task is typically composed by ash_authentication_phoenix.add_strategy or the ash_authentication_phoenix.install task. It can also be run directly to add TOTP Phoenix integration to an existing project.

Example

mix ash_authentication_phoenix.add_strategy totp

Options

  • --user, -u - The user resource. Defaults to YourApp.Accounts.User
  • --mode, -m - Either primary or 2fa. Defaults to 2fa.
  • --name, -n - The name of the TOTP strategy. Defaults to totp.

Summary

Functions

igniter(igniter)

Callback implementation for Igniter.Mix.Task.igniter/1.