Class: OmniAuth::Strategies::AccountKit

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

Instance Method Summary collapse

Instance Method Details

#authorize_paramsObject



19
20
21
22
23
# File 'lib/omniauth/strategies/accountkit.rb', line 19

def authorize_params
  super.tap do |params|
    params["fbAppEventsEnabled"] = true
  end
end

#raw_infoObject



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

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

#request_phaseObject



15
16
17
# File 'lib/omniauth/strategies/accountkit.rb', line 15

def request_phase
  redirect client.auth_code.authorize_url({app_id: options.client_id, redirect: callback_url}.merge(authorize_params))
end

#token_paramsObject



25
26
27
28
29
# File 'lib/omniauth/strategies/accountkit.rb', line 25

def token_params
  super.tap do |params|
    params["access_token"] = app_access_token
  end
end