lib/omniauth/strategies/gitlab.rb in omniauth-gitlab-3.0.0 vs lib/omniauth/strategies/gitlab.rb in omniauth-gitlab-4.0.0

- old
+ new

@@ -2,11 +2,11 @@ require 'omniauth-oauth2' module OmniAuth module Strategies class GitLab < OmniAuth::Strategies::OAuth2 - option :client_options, site: 'https://gitlab.com/api/v4' + option :client_options, site: 'https://gitlab.com' option :redirect_url uid { raw_info['id'].to_s } @@ -22,10 +22,10 @@ extra do { raw_info: raw_info } end def raw_info - @raw_info ||= access_token.get('user').parsed + @raw_info ||= access_token.get('api/v4/user').parsed end private def callback_url