Closed david-saeger closed 2 years ago
Hi @david-saeger 👋 Thanks for raising this issue. What are the scopes included in the access token from the Cognito Hosted UI? Do they match the scopes in your auth configuration?
AmplifyAuthenticator
, the orange "Signin with Amazon" button should direct you to the amazon signin page directly, and you are essentially doing an identity pool federation.potentially duplicate with https://github.com/aws-amplify/amplify-js/issues/11915
It was never clear to me how to allow amplify to manage the state of the resultant tokens if I use the hosted-ui. If this is possible it would be a way forward.
Closing duplicate of aws-amplify/amplify-js#11915
Before opening, please confirm:
JavaScript Framework
React
Amplify APIs
Authentication
Amplify Categories
auth
Environment information
Describe the bug
I have a amplify project which uses Cognito to authenticate with additional scopes 'profile' 'openid'. When I use the hosted UI to sign in these scopes are on my returned Access Token but when I use Amplifys react components these scopes are unavailable and I am unable to authenticate to my API gateway endpoint.
Expected behavior
After authenticating with Amplifys react components I receive a access_token with the correct scopes I have defined in Cognito
Reproduction steps
Log in through username and password in amplify app. The JWT token returned has incorrect scopes but when I log in through cognito hosted UI I get the correct scopes in token
Code Snippet
Log output
aws-exports.js
No response
Manual configuration
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response