ueberauth_plangrid v0.1.0 Ueberauth.Strategy.PlanGrid

Provides an Ueberauth strategy for authenticating with PlanGrid.

Setup

Create an application in PlanGrid for you to use. Include the provider in your configuration for Ueberauth

config :ueberauth, Ueberauth,
  providers: [
    plangrid: { Ueberauth.Strategy.PlanGrid, [] }
  ]

Then include the configuration for PlanGrid.

config :ueberauth, Ueberauth.Strategy.PlanGrid.OAuth,
  client_id: System.get_env("PLANGRID_CLIENT_ID"),
  client_secret: System.get_env("PLANGRID_CLIENT_SECRET")

Link to this section Summary

Functions

Includes the credentials from the PlanGrid response.

Stores the raw information (including the token) obtained from the PlanGrid callback.

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

Handles the initial redirect to the PlanGrid authentication page.

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

Fetches the uid field from the PlanGrid response. This is the id field for the user.

Link to this section Functions

Link to this function

credentials(conn)

Includes the credentials from the PlanGrid response.

Link to this function

default_options()

Stores the raw information (including the token) obtained from the PlanGrid callback.

Link to this function

handle_cleanup!(conn)

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

Link to this function

handle_request!(conn)

Handles the initial redirect to the PlanGrid authentication page.

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

Fetches the uid field from the PlanGrid response. This is the id field for the user.