Class: OmniAuth::Strategies::Web3ID
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::Web3ID
- Defined in:
- lib/omniauth/strategies/web3id.rb
Overview
Web3ID authentication strategy.
Constant Summary collapse
- DEFAULT_SCOPE =
"public email"
Instance Method Summary collapse
Instance Method Details
#callback_url ⇒ Object
47 48 49 |
# File 'lib/omniauth/strategies/web3id.rb', line 47 def callback_url [:redirect_uri] || (full_host + script_name + callback_path) end |
#raw_info ⇒ Object
43 44 45 |
# File 'lib/omniauth/strategies/web3id.rb', line 43 def raw_info @raw_info ||= access_token.get(client.[:profile_url]).parsed end |
#raw_info_did ⇒ Object
39 40 41 |
# File 'lib/omniauth/strategies/web3id.rb', line 39 def raw_info_did raw_info["id"] || raw_info["user_id"] end |