View Source Ueberauth.Strategy.Zapier (ueberauth_zapier v0.1.0)

Implements an Überauth strategy for authentication with Zapier.

When configuring the strategy in the Überauth provides, you can specify some defaults.

  • default_scope - The default scopes to request from Zapier when authenticating. Default profile.
  • oauth2_module - The OAuth2 module to use for authentication. Default Ueberauth.Strategy.Zapier.OAuth.

config :ueberauth, Ueberauth,
  providers: [
    zapier: {Ueberauth.Strategy.Zapier, [default_scope: "profile"]}
  ]

Summary

Functions

Includes the credentials from the Zapier response.

Stores the raw information (including the token and user) in the Ueberauth.Auth.Extra struct.

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

Handles initial redirect to the Zapier OAuth authorization page.

Fetches the user information from the Zapier response to populate the Ueberauth.Auth.Info struct.

Fetches the uid field from the Zapier response.

Functions

credentials(conn)

Includes the credentials from the Zapier response.

default_options()

Callback implementation for Ueberauth.Strategy.default_options/0.

extra(conn)

Stores the raw information (including the token and user) in the Ueberauth.Auth.Extra struct.

handle_cleanup!(conn)

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

handle_request!(conn)

Handles initial redirect to the Zapier OAuth authorization page.

To customize the scopes, set the :default_scope option in your configuration.

info(conn)

Fetches the user information from the Zapier response to populate the Ueberauth.Auth.Info struct.

uid(conn)

Fetches the uid field from the Zapier response.