AshAuthentication.Strategy.Auth0 (ash_authentication v5.0.0-rc.15)

Copy Markdown View Source

Strategy for authenticating using Auth0.

This strategy builds on-top of AshAuthentication.Strategy.Oidc and assent.

In order to use Auth0 you need to provide the following minimum configuration:

  • client_id
  • redirect_uri
  • client_secret
  • base_url

As of Assent v0.3.0, the Auth0 strategy uses OpenID Connect (OIDC) and automatically retrieves configuration (token URL, user info URL, etc.) from Auth0's discovery endpoint.

More documentation:

Summary

Functions

transform(entity, dsl_state)

Callback implementation for AshAuthentication.Strategy.Custom.transform/2.

verify(strategy, dsl_state)

Callback implementation for AshAuthentication.Strategy.Custom.verify/2.