mix ash_authentication.add_strategy.microsoft (ash_authentication v5.0.0-rc.5)

Copy Markdown View Source

Adds Microsoft OAuth authentication to your user resource

By default, the Microsoft strategy uses the "common" tenant endpoint which allows sign-in from any Azure AD tenant. To restrict to a specific tenant, set the MICROSOFT_BASE_URL environment variable to https://login.microsoftonline.com/YOUR_TENANT_ID/v2.0.

Example

mix ash_authentication.add_strategy.microsoft

Options

  • --user, -u - The user resource. Defaults to YourApp.Accounts.User
  • --accounts, -a - The accounts domain. Defaults to YourApp.Accounts
  • --identity-field, -i - The field used to identify the user. Defaults to email

Summary

Functions

igniter(igniter)

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