Class: OmniAuth::Strategies::Cognito

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

Constant Summary collapse

DEFAULT_SCOPE =
"openid email profile phone aws.cognito.signin.user.admin"

Instance Method Summary collapse

Instance Method Details

#callback_urlObject



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

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

#raw_infoObject



41
42
43
# File 'lib/omniauth/strategies/cognito.rb', line 41

def raw_info
  @raw_info ||= access_token.get(options.client_options.).parsed
end

#user_info_urlObject



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

def 
  URI.join(options.client_options.site, options.client_options.).to_s
end