Skip to content

Instantly share code, notes, and snippets.

@thebrianemory
Last active January 20, 2019 01:08
Show Gist options
  • Save thebrianemory/67ec31d8949fa07fcb087c42ae43bbae to your computer and use it in GitHub Desktop.
Save thebrianemory/67ec31d8949fa07fcb087c42ae43bbae to your computer and use it in GitHub Desktop.
use Mix.Config
... # Code removed for readability
### Add that code below this line ###
# Configure Google OAuth
config :ueberauth, Ueberauth,
providers: [
google: {Ueberauth.Strategy.Google, [default_scope: "email profile plus.me"]}
]
config :ueberauth, Ueberauth.Strategy.Google.OAuth,
client_id: System.get_env("GOOGLE_CLIENT_ID"),
client_secret: System.get_env("GOOGLE_CLIENT_SECRET")
### Add the code above this line ###
# Import environment specific config. This must remain at the bottom
# of this file so it overrides the configuration defined above.
import_config "#{Mix.env}.exs"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment