Class: OmniAuth::Strategies::CognitoOauth2

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

Overview

Standard requirements for implementing Oauth2

Instance Method Summary collapse

Instance Method Details

#callback_urlObject



29
30
31
# File 'lib/omniauth/strategies/cognito_oauth2.rb', line 29

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

#raw_infoObject



25
26
27
# File 'lib/omniauth/strategies/cognito_oauth2.rb', line 25

def raw_info
  @raw_info ||= access_token.get('/oauth2/userInfo').parsed
end