mix ash_authentication.add_strategy.okta (ash_authentication v5.0.0-rc.7)

Copy Markdown View Source

Adds Okta OIDC authentication to your user resource

Okta requires you to point at a specific authorization server. The recommended setting is https://YOUR_OKTA_DOMAIN/oauth2/default (the built-in default Custom Authorization Server). Configure it via the OKTA_BASE_URL environment variable, or pass --base-url to bake it directly into the DSL.

Example

mix ash_authentication.add_strategy.okta

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.