Class: OmniAuth::Strategies::Crest

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

Instance Method Summary collapse

Instance Method Details

#authorize_paramsObject



33
34
35
36
37
38
39
40
41
42
43
# File 'lib/omniauth/strategies/crest.rb', line 33

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



29
30
31
# File 'lib/omniauth/strategies/crest.rb', line 29

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