Class: OmniAuth::Strategies::Wonde
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::Wonde
- 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.("user_data.graphql", __dir__))}.to_json.freeze
Instance Method Summary collapse
Instance Method Details
#callback_url ⇒ String
50 51 52 |
# File 'lib/omniauth/strategies/wonde.rb', line 50 def callback_url [:redirect_uri] || (full_host + script_name + callback_path) end |
#raw_info ⇒ Hash
45 46 47 |
# File 'lib/omniauth/strategies/wonde.rb', line 45 def raw_info @raw_info ||= fetch_user_info.parsed&.dig("data") || {} end |