mix ash_authentication.add_add_on (ash_authentication v5.0.0-rc.4)

Copy Markdown View Source

Adds the provided add-on to your user resource

This task will add the provided add-on to your user resource and set up any required supporting resources.

The following add-ons are available:

  • audit_log - Track authentication events for security and compliance.
  • confirmation - Confirm new users via email.

Each add-on can also be added directly with its own task:

Example

mix ash_authentication.add_add_on audit_log

Options

  • --user, -u - The user resource. Defaults to YourApp.Accounts.User

Audit Log options

  • --audit-log - The audit log resource name. Defaults to <domain>.AuditLog.
  • --include-fields - Comma-separated list of sensitive fields to include in audit logs.
  • --exclude-strategies - Comma-separated list of authentication strategies to exclude from logging.
  • --exclude-actions - Comma-separated list of actions to exclude from logging.

Summary

Functions

igniter(igniter)

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