summaryrefslogtreecommitdiff
path: root/lib/google_api
diff options
context:
space:
mode:
authorRubén Dávila <ruben@gitlab.com>2018-03-12 16:01:43 -0500
committerRubén Dávila <ruben@gitlab.com>2018-03-12 16:01:43 -0500
commitafe2c15e6bf1005e5bd1d213d3548a1a17a11137 (patch)
treea31f89b2ab3dbec92ef11fb2cf106d190ba68668 /lib/google_api
parentafd2d381119c3778140c3dd63c7ef24ecdb4c62e (diff)
downloadgitlab-ce-afe2c15e6bf1005e5bd1d213d3548a1a17a11137.tar.gz
Fix provider server URL used when listing repos to importrd-fix-github-url-when-listing-repositories-at-importing
Also use Gitlab::Auth::OAuth::Provider.config_for to access OmniAuth config
Diffstat (limited to 'lib/google_api')
-rw-r--r--lib/google_api/auth.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/google_api/auth.rb b/lib/google_api/auth.rb
index 99a82c849e0..1aeaa387a49 100644
--- a/lib/google_api/auth.rb
+++ b/lib/google_api/auth.rb
@@ -32,7 +32,7 @@ module GoogleApi
private
def config
- Gitlab.config.omniauth.providers.find { |provider| provider.name == "google_oauth2" }
+ Gitlab::Auth::OAuth::Provider.config_for('google_oauth2')
end
def client