Adds TOTP authentication to your user resource
TOTP can be used in two modes:
2fa- As a second factor after password authentication (default)primary- As the primary authentication method (passwordless)
Both modes use an audit log add-on for brute force protection, which will be created automatically if one doesn't already exist.
Example
mix ash_authentication.add_strategy.totp --mode 2fa
Options
--user,-u- The user resource. Defaults toYourApp.Accounts.User--identity-field,-i- The field on the user resource that will be used to identify the user. Defaults toemail--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.