Skip to content

Instantly share code, notes, and snippets.

@rwehresmann
Last active August 22, 2019 03:11
Show Gist options
  • Select an option

  • Save rwehresmann/14404cf8fbb730c5d57fbd3af4e63bb8 to your computer and use it in GitHub Desktop.

Select an option

Save rwehresmann/14404cf8fbb730c5d57fbd3af4e63bb8 to your computer and use it in GitHub Desktop.
Rails.application.config.middleware.use OmniAuth::Builder do
provider(
:auth0,
ENV['AUTH0_CLIENT_ID'],
ENV['AUTH0_CLIENT_SECRET'],
ENV['AUTH0_DOMAIN'],
callback_path: '/auth/auth0/callback',
authorize_params: {
scope: 'openid email'
}
)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment