diff options
author | Rubén Dávila <ruben@gitlab.com> | 2018-03-13 00:01:43 +0300 |
---|---|---|
committer | Rubén Dávila <ruben@gitlab.com> | 2018-03-13 00:01:43 +0300 |
commit | afe2c15e6bf1005e5bd1d213d3548a1a17a11137 (patch) | |
tree | a31f89b2ab3dbec92ef11fb2cf106d190ba68668 /lib/gitlab/auth/saml/config.rb | |
parent | afd2d381119c3778140c3dd63c7ef24ecdb4c62e (diff) |
Fix provider server URL used when listing repos to import
Also use Gitlab::Auth::OAuth::Provider.config_for to access OmniAuth config
Diffstat (limited to 'lib/gitlab/auth/saml/config.rb')
-rw-r--r-- | lib/gitlab/auth/saml/config.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/auth/saml/config.rb b/lib/gitlab/auth/saml/config.rb index e654e7fe438..2760b1a3247 100644 --- a/lib/gitlab/auth/saml/config.rb +++ b/lib/gitlab/auth/saml/config.rb @@ -4,7 +4,7 @@ module Gitlab class Config class << self def options - Gitlab.config.omniauth.providers.find { |provider| provider.name == 'saml' } + Gitlab::Auth::OAuth::Provider.config_for('saml') end def groups |