Class: OmniAuth::Strategies::Disqus
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::Disqus
- 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_url ⇒ Object
43 44 45 |
# File 'lib/j1_app/omniauth/strategies/disqus.rb', line 43 def callback_url [:redirect_uri] || full_host + script_name + callback_path end |
#raw_info ⇒ Object
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 |