lib/omniauth/strategies/gitlab.rb in omniauth-gitlab-1.0.4 vs lib/omniauth/strategies/gitlab.rb in omniauth-gitlab-2.0.0

- old
+ new

@@ -22,17 +22,13 @@ extra do { raw_info: raw_info } end def raw_info - @raw_info ||= access_token.get(user_endpoint_url).parsed + @raw_info ||= access_token.get('user').parsed end private - - def user_endpoint_url - options.client_options.site.match(%r{v(\d+)/?$}) ? 'user' : '/api/v3/user' - end def callback_url options.redirect_url || (full_host + script_name + callback_path) end end