update README

closes #2128
This commit is contained in:
Vasiliy Ermolovich 2012-11-10 20:35:32 +03:00
parent b1df686a2e
commit 59966e817c
1 changed files with 7 additions and 1 deletions

View File

@ -339,7 +339,13 @@ There are two things that is important to keep in mind:
### Omniauth
Devise comes with Omniauth support out of the box to authenticate from other providers. You can read more about Omniauth support in the wiki:
Devise comes with Omniauth support out of the box to authenticate from other providers. Note that you should specify all your omniauth configs in i`nitializers/devise.rb` **not** in a separate `omniauth.rb` initializer:
```ruby
config.omniauth :github, 'APP_ID', 'APP_SECRET', :scope => 'user,public_repo'
```
You can read more about Omniauth support in the wiki:
* https://github.com/plataformatec/devise/wiki/OmniAuth:-Overview