Class: OmniAuth::Strategies::Nextengine

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

Instance Method Summary collapse

Instance Method Details

#build_access_tokenObject



46
47
48
49
50
51
52
# File 'lib/omniauth/strategies/nextengine.rb', line 46

def build_access_token
  client.auth_code.get_token('', {
    uid: request.params['uid'],
    state: request.params['state'],
    client_secret: options[:client_secret],
  }.merge(token_params.to_hash(:symbolize_keys => true)), deep_symbolize(options.auth_token_params))
end

#callback_urlObject



42
43
44
# File 'lib/omniauth/strategies/nextengine.rb', line 42

def callback_url
  full_host + script_name + callback_path
end

#request_phaseObject



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

def request_phase
  redirect client.auth_code.authorize_url({:redirect_uri => callback_url}.merge(authorize_params))
end