-
Notifications
You must be signed in to change notification settings - Fork 0
Auth0 Figaro
JenWestfallen edited this page Sep 2, 2016
·
2 revisions
- Add figaro gem
- Run "bundle"
- Run $ bundle exec figaro install
- This creates a commented config/application.yml file and adds it to your .gitignore. Add your own configuration to this file and you're done!__
config/application.yml
clientid: 'sparkstartsparkstartsparkstart'
clientsecret: 'justinjustinjustin'
domain: 'auth0.domain.here'
initializers/auth0.rb
Rails.application.config.middleware.use OmniAuth::Builder do
provider(
:auth0,
ENV["clientid"],
ENV["clientsecret"],
ENV["domain"],
callback_path: "/auth/auth0/callback"
)
end
For more documentation on figaro click here