Class: OmniAuth::Strategies::Geni
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::Geni
- Defined in:
- lib/omniauth/strategies/geni.rb
Instance Method Summary collapse
Instance Method Details
#authorize_params ⇒ Object
64 65 66 67 68 69 70 |
# File 'lib/omniauth/strategies/geni.rb', line 64 def super.tap do |params| params.merge!(:display => request.params['display']) if request.params['display'] params.merge!(:state => request.params['state']) if request.params['state'] params[:scope] ||= 'email' end end |
#build_access_token ⇒ Object
30 31 32 33 34 35 36 37 38 |
# File 'lib/omniauth/strategies/geni.rb', line 30 def build_access_token token_params = { :code => request.params['code'], :redirect_uri => callback_url, :client_id => client.id, :client_secret => client.secret } client.get_token(token_params) end |
#raw_info ⇒ Object
60 61 62 |
# File 'lib/omniauth/strategies/geni.rb', line 60 def raw_info @raw_info ||= access_token.get('/api/profile').parsed end |
#request_phase ⇒ Object
26 27 28 |
# File 'lib/omniauth/strategies/geni.rb', line 26 def request_phase super end |