15 lines
392 B
Ruby
15 lines
392 B
Ruby
# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
|
|
|
|
class GoogleOauth2Database < OmniAuth::Strategies::GoogleOauth2
|
|
option :name, 'google_oauth2'
|
|
|
|
def initialize(app, *args, &block)
|
|
|
|
# database lookup
|
|
config = Setting.get('auth_google_oauth2_credentials') || {}
|
|
args[0] = config['client_id']
|
|
args[1] = config['client_secret']
|
|
super
|
|
end
|
|
|
|
end
|