devise-auth0
devise-auth0 copied to clipboard
Documentation instructions are not working as expected
config.client_id or config.secret is not available to set.
This looks right, but I don't know if this gem works anymore.
manager.strategies.add(:auth0_authenticatable, Devise::Strategies::Auth0Authenticatable) do |auth0|
auth0.config.client_id = 'client_id'
auth0.config.secret = 'secret'
end
For anyone coming across this in the future: You'll want to be using Omniauth for this instead. Omniauth is the standard for any kind of "Login with..." type functionality you need for Devise (though it can be used without Devise).
https://github.com/auth0/omniauth-auth0 https://github.com/omniauth/omniauth