Class: OmniAuth::Strategies::Joinme

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

Instance Method Summary collapse

Instance Method Details

#callback_urlObject

Exclude query string in callback_url to prevent redirect_uri mismatch



42
43
44
# File 'lib/omniauth/strategies/joinme.rb', line 42

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

#raw_infoObject



37
38
39
# File 'lib/omniauth/strategies/joinme.rb', line 37

def raw_info
  @raw_info ||= keys_to_underscore(MultiJson.decode(access_token.get("user").body))
end