Überauth Google
Google OAuth2 strategy for Überauth.
Setup
Include the provider in your configuration for Überauth:
config :ueberauth, Ueberauth,
providers: [
google: [ { Ueberauth.Strategy.Google, [] } ]
]Then configure your provider:
config :ueberauth, Ueberauth.Strategy.Google.OAuth,
client_id: System.get_env("GOOGLE_CLIENT_ID"),
client_secret: System.get_env("GOOGLE_CLIENT_SECRET")For an example implementation see the Überauth Example application.
Installation
If available in Hex, the package can be installed as:
Add
:ueberauth_googleto your list of dependencies inmix.exs:def deps do [{:ueberauth_google, "~> 0.1.0"}] end