Merge pull request #1364 from BelieveC/MockAuthConfigForGithub
Add mock_auth config for Github
This commit is contained in:
commit
893ad60995
1 changed files with 14 additions and 0 deletions
|
|
@ -94,6 +94,20 @@ Osem::Application.configure do
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
OmniAuth.config.mock_auth[:github] =
|
||||||
|
OmniAuth::AuthHash.new(
|
||||||
|
provider: 'github',
|
||||||
|
uid: 'github-test-uid-1',
|
||||||
|
info: {
|
||||||
|
name: 'someother user',
|
||||||
|
email: 'user2@email.com',
|
||||||
|
username: 'someother_user'
|
||||||
|
},
|
||||||
|
credentials: {
|
||||||
|
token: 'github_mock_token',
|
||||||
|
secret: 'github_mock_secret'
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
config.after_initialize do
|
config.after_initialize do
|
||||||
Devise.setup do |devise_config|
|
Devise.setup do |devise_config|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue