class OmniAuth::Strategies::Disqus
Constants
- DEFAULT_SCOPE
¶ ↑
OAuth client settings
¶ ↑
Public Instance Methods
callback_url()
click to toggle source
# File lib/j1_app/omniauth/strategies/disqus.rb, line 43 def callback_url options[:redirect_uri] || full_host + script_name + callback_path end
raw_info()
click to toggle source
# 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
Private Instance Methods
get_scope(params)
click to toggle source
prune!(hash)
click to toggle source
# File lib/j1_app/omniauth/strategies/disqus.rb, line 100 def prune!(hash) hash.delete_if do |_, value| prune!(value) if value.is_a?(Hash) value.nil? || (value.respond_to?(:empty?) && value.empty?) end end
skip_extra?()
click to toggle source
# File lib/j1_app/omniauth/strategies/disqus.rb, line 107 def skip_extra? !!options[:skip_extra] end