mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
parent
b1df686a2e
commit
59966e817c
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue