Class: OmniAuth::Strategies::Misfit

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

Constant Summary collapse

DEFAULT_SCOPE =
'public,birthday,email'

Instance Method Summary collapse

Instance Method Details

#auth_hashObject



43
44
45
# File 'lib/omniauth/strategies/misfit.rb', line 43

def auth_hash
  OmniAuth::Utils.deep_merge(super, client_params.merge({:grant_type => 'authorization_code'}))
end

#raw_infoObject



47
48
49
# File 'lib/omniauth/strategies/misfit.rb', line 47

def raw_info
  @raw_info ||= MultiJson.load(access_token.get('/move/resource/v1/user/me/profile').body)
end

#request_phaseObject



38
39
40
41
# File 'lib/omniauth/strategies/misfit.rb', line 38

def request_phase
  options[:authorize_params] = client_params.merge(options[:authorize_params])
  super
end