Ueberauth Auth0 v0.1.0 Ueberauth.Strategy.Auth0

Provides an Ueberauth strategy for authenticating with Auth0.

You can edit the behaviour of the Strategy by including some options when you register your provider.

To set the uid_field

config :ueberauth, Ueberauth,
  providers: [
    auth0: { Ueberauth.Strategy.Auth0, [uid_field: :email] }
  ]

Default is :user_id

To set the default ’scopes’ (permissions):

config :ueberauth, Ueberauth,
  providers: [
    auth0: { Ueberauth.Strategy.Auth0, [default_scope: "openid email"] }
  ]

Deafult is “openid email”

Summary

Functions

Includes the credentials from the Auth0 response

Callback implementation for c:Ueberauth.Strategy.extra/1

Cleans up the private area of the connection used for passing the raw Auth0 response around during the callback

Callback implementation for c:Ueberauth.Strategy.handle_request!/1

Fetches the fields to populate the info section of the Ueberauth.Auth struct

Fetches the uid field from the Auth0 response

Functions

auth(conn)
credentials(conn)

Includes the credentials from the Auth0 response.

default_options()
extra(conn)

Callback implementation for c:Ueberauth.Strategy.extra/1.

handle_cleanup!(conn)

Cleans up the private area of the connection used for passing the raw Auth0 response around during the callback.

handle_request!(conn)

Callback implementation for c:Ueberauth.Strategy.handle_request!/1.

info(conn)

Fetches the fields to populate the info section of the Ueberauth.Auth struct.

uid(conn)

Fetches the uid field from the Auth0 response.