mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Add mock_auth config for Github
This commit is contained in:
parent
56c7906d52
commit
123c9f6a6f
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
|
||||
Devise.setup do |devise_config|
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue