ueberauth_procore v0.1.0 Ueberauth.Strategy.Procore
Provides an Ueberauth strategy for authenticating with Procore.
Setup
Create an application in Procore for you to use.
Include the provider in your configuration for Ueberauth
config :ueberauth, Ueberauth,
providers: [
procore: { Ueberauth.Strategy.Procore, [] }
]
Then include the configuration for Procore.
config :ueberauth, Ueberauth.Strategy.Procore.OAuth,
client_id: System.get_env("PROCORE_CLIENT_ID"),
client_secret: System.get_env("PROCORE_CLIENT_SECRET"),
redirect_uri: "https://someproxy.com" #optional
The redirect_uri
configuration option is intended for proxies due to
Procore requiring an HTTPS callback URL.
Summary
Functions
Includes the credentials from the Procore response
Stores the raw information (including the token) obtained from the Procore callback
Cleans up the private area of the connection used for passing the raw Procore response around during the callback
Handles the initial redirect to the Procore authentication page
Fetches the fields to populate the info section of the Ueberauth.Auth
struct
Fetches the uid field from the Procore response. This is the id field for the user
Functions
Cleans up the private area of the connection used for passing the raw Procore response around during the callback.
Fetches the fields to populate the info section of the Ueberauth.Auth
struct.