Class: OmniAuth::Strategies::Nextengine
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::Nextengine
- Defined in:
- lib/omniauth/strategies/nextengine.rb
Instance Method Summary collapse
Instance Method Details
#build_access_token ⇒ Object
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: [:client_secret], }.merge(token_params.to_hash(:symbolize_keys => true)), deep_symbolize(.auth_token_params)) end |
#callback_url ⇒ Object
42 43 44 |
# File 'lib/omniauth/strategies/nextengine.rb', line 42 def callback_url full_host + script_name + callback_path end |
#request_phase ⇒ Object
38 39 40 |
# File 'lib/omniauth/strategies/nextengine.rb', line 38 def request_phase redirect client.auth_code.({:redirect_uri => callback_url}.merge()) end |