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 toYourApp.Accounts.User--mode,-m- Eitherprimaryor2fa. Defaults to2fa.--name,-n- The name of the TOTP strategy. Defaults tototp.
Summary
Functions
Callback implementation for Igniter.Mix.Task.igniter/1.
Functions
Callback implementation for Igniter.Mix.Task.igniter/1.