-
Notifications
You must be signed in to change notification settings - Fork 301
How to configure oauth providers
Register your node in the provider:
for FACEBOOK visit: http://developers.facebook.com/setup/
for TWITTER visit: http://dev.twitter.com/
for LINKED IN visit: http://developer.linkedin.com/index.jspa
After the registration you should have an OAUTH ID/SECRET.
Once you have them, look for the Omniauth block in config/initializers/devise.rb
. Once there, substitute the example APP_ID
and APP_SECRET
with the ones you've got from the providers in the corresponding lines. If you are not interesting in using any of those providers, just comment out the corresponding line.
Remember to restart your app to apply the changes.
Note: If you intend to use a provider that is not among the default ones, duplicate the line for other provider and change the provider name. For example, change config.omniauth :linkedin
to config.omniauth :myNewProvider
and add the corresponding APP_SECRET
and APP_ID
.