Class: OmniAuth::Strategies::Bootic

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

Constant Summary collapse

BOOTIC_AUTH_URL =
(ENV['BOOTIC_AUTH_URL'] || "https://auth.bootic.net")
BOOTIC_API_URL =
(ENV['BOOTIC_API_URL'] || "https://api.bootic.net/v1")

Instance Method Summary collapse

Instance Method Details

#authorize_paramsObject



22
23
24
25
26
27
28
# File 'lib/omniauth/strategies/bootic.rb', line 22

def authorize_params
  if request.params['scope']
    super.merge({scope: request.params['scope']})
  else
    super
  end
end

#raw_infoObject



51
52
53
# File 'lib/omniauth/strategies/bootic.rb', line 51

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