diff options
Diffstat (limited to 'vendor/gems/omniauth-gitlab/lib/omniauth/strategies/gitlab.rb')
-rw-r--r-- | vendor/gems/omniauth-gitlab/lib/omniauth/strategies/gitlab.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vendor/gems/omniauth-gitlab/lib/omniauth/strategies/gitlab.rb b/vendor/gems/omniauth-gitlab/lib/omniauth/strategies/gitlab.rb index 19ee02e78c4..3c23d8e2b19 100644 --- a/vendor/gems/omniauth-gitlab/lib/omniauth/strategies/gitlab.rb +++ b/vendor/gems/omniauth-gitlab/lib/omniauth/strategies/gitlab.rb @@ -30,15 +30,15 @@ module OmniAuth @raw_info ||= access_token.get(user_endpoint_url).parsed end + def callback_url + options.redirect_url || (full_host + callback_path) + end + private def user_endpoint_url options.client_options.site.match(API_SUFFIX_REGEX) ? 'user' : 'api/v4/user' end - - def callback_url - options.redirect_url || (full_host + script_name + callback_path) - end end end end |