Class: OmniAuth::Strategies::EveO

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

Instance Method Summary collapse

Instance Method Details

#authorize_paramsObject



37
38
39
40
41
42
43
44
45
46
47
# File 'lib/omniauth/strategies/eve_o.rb', line 37

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

    params[:scope] ||= ''
  end
end

#raw_infoObject



33
34
35
# File 'lib/omniauth/strategies/eve_o.rb', line 33

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