Class: OmniAuth::Strategies::CognitoOauth2
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::CognitoOauth2
- Defined in:
- lib/omniauth/strategies/cognito_oauth2.rb
Overview
Standard requirements for implementing Oauth2
Instance Method Summary collapse
Instance Method Details
#callback_url ⇒ Object
29 30 31 |
# File 'lib/omniauth/strategies/cognito_oauth2.rb', line 29 def callback_url [:redirect_uri] || (full_host + script_name + callback_path) end |
#raw_info ⇒ Object
25 26 27 |
# File 'lib/omniauth/strategies/cognito_oauth2.rb', line 25 def raw_info @raw_info ||= access_token.get('/oauth2/userInfo').parsed end |