Class: OmniAuth::Strategies::Disqus

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

Constant Summary collapse

DEFAULT_SCOPE =

OAuth client settings

'read write email'

Instance Method Summary collapse

Instance Method Details

#callback_urlObject



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

def callback_url
  options[:redirect_uri] || full_host + script_name + callback_path
end

#raw_infoObject



79
80
81
82
83
84
85
86
# File 'lib/j1_app/omniauth/strategies/disqus.rb', line 79

def raw_info
  url    = '/api/3.0/users/details.json'
  params = {
    'api_key'      => access_token.client.id,
    'access_token' => access_token.token
  }
  @raw_info ||= access_token.get(url, :params => params).parsed['response']
end