Class: OmniAuth::Strategies::Web3ID

Inherits:
OAuth2
  • Object
show all
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_urlObject



47
48
49
# File 'lib/omniauth/strategies/web3id.rb', line 47

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

#raw_infoObject



43
44
45
# File 'lib/omniauth/strategies/web3id.rb', line 43

def raw_info
  @raw_info ||= access_token.get(client.options[:profile_url]).parsed
end

#raw_info_didObject



39
40
41
# File 'lib/omniauth/strategies/web3id.rb', line 39

def raw_info_did
  raw_info["id"] || raw_info["user_id"]
end