UeberauthProcore
This is a Procore adapter for Überauth. The implementation is largely taken from https://github.com/ueberauth/ueberauth_github
Installation
If available in Hex, the package can be installed as:
-
Add
ueberauth_procoreto your list of dependencies inmix.exs:
```elixir
def deps do
[{:ueberauth_procore, "~> 0.1.0"}]
end
```-
Ensure
ueberauth_procoreis started before your application:
```elixir
def application do
[applications: [:ueberauth_procore]]
end
```- Add Procore to your Überauth configuration:
```elixir
config :ueberauth, Ueberauth,
providers: [
procore: {Ueberauth.Strategy.Procore, []}
]
```- Update your provider configuration:
```elixir
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
```