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

Copy Markdown View Source

Adds a generic OpenID Connect authentication strategy to your user resource

OIDC auto-discovers provider endpoints from the .well-known/openid-configuration URL, so you only need to provide the base URL of your OIDC provider.

Example

mix ash_authentication.add_strategy oidc my_provider

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
  • --base-url - If provided, set as a literal in the strategy DSL instead of via env var

Summary

Functions

igniter(igniter)

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