Class: OmniAuth::Strategies::Cognito
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::Cognito
- 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_url ⇒ Object
45 46 47 |
# File 'lib/omniauth/strategies/cognito.rb', line 45 def callback_url [:redirect_uri] || (full_host + callback_path) end |
#raw_info ⇒ Object
41 42 43 |
# File 'lib/omniauth/strategies/cognito.rb', line 41 def raw_info @raw_info ||= access_token.get(..user_info_url).parsed end |
#user_info_url ⇒ Object
37 38 39 |
# File 'lib/omniauth/strategies/cognito.rb', line 37 def user_info_url URI.join(..site, ..user_info_url).to_s end |