Class: OmniAuth::Strategies::Gab

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

Instance Method Summary collapse

Instance Method Details

#authorize_params(params = {}) ⇒ Object



36
37
38
39
40
41
42
43
# File 'lib/omniauth/strategies/gab.rb', line 36

def authorize_params(params = {})
  params.merge(
    'response_type' => 'code',
    'client_id' => options.client_id,
    'redirect_uri' => options.redirect_uri,
    'scope' => options.scope
  )
end

#raw_infoObject



31
32
33
34
# File 'lib/omniauth/strategies/gab.rb', line 31

def raw_info
  access_token.options[:parse] = :json
  @raw_info ||= access_token.get('/v1.0/me/').parsed
end