Class: OmniAuth::Strategies::Icis

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

Instance Method Summary collapse

Instance Method Details

#authorize_paramsObject



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

def authorize_params
  super.tap do |params|
    if request.params['state']
      params[:state] = request.params['state']

      session['omniauth.state'] = params[:state]
    end
  end
end

#raw_infoObject



28
29
30
# File 'lib/omniauth/strategies/icis.rb', line 28

def raw_info
  @raw_info ||= access_token.get('/api/v1/me.json').parsed
end