Class: OmniAuth::Strategies::Typetalk

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

Overview

Typetalk handles Oauth2 authentication with Typetalk.

Instance Method Summary collapse

Instance Method Details

#authorize_paramsObject


16
17
18
19
20
21
22
# File 'lib/omniauth/strategies/typetalk.rb', line 16

def authorize_params
  super.tap do |params|
    %w[scope client_options].each do |v|
      params[v.to_sym] = request.params[v] if request.params[v]
    end
  end
end

#callback_urlObject


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

def callback_url
  full_host + script_name + callback_path
end

#raw_infoObject


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

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

#request_phaseObject


12
13
14
# File 'lib/omniauth/strategies/typetalk.rb', line 12

def request_phase
  super
end