Class: OmniAuth::Strategies::EauthOauth2

Inherits:
OAuth2
  • Object
show all
Defined in:
lib/omniauth/strategies/eauth_oauth2.rb

Instance Method Summary collapse

Instance Method Details

#authorize_paramsObject



18
19
20
21
22
23
24
25
26
# File 'lib/omniauth/strategies/eauth_oauth2.rb', line 18

def authorize_params
  super.tap do |params|
    %w[scope client_options].each do |v|
      if request.params[v]
        params[v.to_sym] = request.params[v]
      end
    end
  end
end

#raw_infoObject



41
42
43
# File 'lib/omniauth/strategies/eauth_oauth2.rb', line 41

def raw_info
  @raw_info ||= access_token.get('/oauth/user').parsed
end

#request_phaseObject



14
15
16
# File 'lib/omniauth/strategies/eauth_oauth2.rb', line 14

def request_phase
  super
end