Class: OmniAuth::Strategies::Wonde

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

Overview

Authentication strategy for Wonde

Wonde implements OAuth 2 (three legged)

Constant Summary collapse

USER_INFO_URL =
"https://api.wonde.com/graphql/me"
USER_QUERY_BODY =
{query: File.read(File.expand_path("user_data.graphql", __dir__))}.to_json.freeze

Instance Method Summary collapse

Instance Method Details

#callback_urlString

Returns:

  • (String)


50
51
52
# File 'lib/omniauth/strategies/wonde.rb', line 50

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

#raw_infoHash

Returns:

  • (Hash)


45
46
47
# File 'lib/omniauth/strategies/wonde.rb', line 45

def raw_info
  @raw_info ||= .parsed&.dig("data") || {}
end