Custom scopes in access token programmatically
**Describe the bug** Impossible to get access tokens with custom scopes without using the [hosted web ui](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-app-integration.html). Authentication through the [amplify drop-in UI](https://aws-amplify.github.io/docs/android/authentication#drop-in-auth) for both Android and iOS -- used in the [android-sdk-auth example](https://github.com/awslabs/aws-sdk-android-samples/tree/master/AmazonCognitoAuthDemo) -- or through [cognito auth sdk](https://docs.aws.amazon.com/cognito/latest/developerguide/tutorial-integrating-user-pools-android.html) always returns (the single scope) *aws.cognito.signin.user.admin* even if it is disabled on the app client settings. **To Reproduce** Steps to reproduce the behavior: 1.Follow the [android (or iOS)-sdk-auth example](https://github.com/awslabs/aws-sdk-android-samples/tree/master/AmazonCognitoAuthDemo); 2. Create custom scope and enable on app client settings; 3. Sign-in in the app, grab the access token and check the scopes in [jwt.io](jwt.io) **Which AWS service(s) are affected?** AWS Cognito (in all SDKs) and AWS API Gateway **Expected behavior** Access token should return custom scope(s), regardless of using the web ui. **Screenshots** <img width="689" alt="scopes" src="https://user-images.githubusercontent.com/3160657/52168249-bc695580-271f-11e9-9fd7-c8c4ee65d064.png"> **Environment(please complete the following information):** - Latest SDK versions (of both cog
Posted by rscmendes on Feb 2, 2019, 7:28 PM
Tags
Related issues
- Some good points here, and I definitely hate the "unalive" movement but like someone else said, it has gone beyond self-censorship to in-...
- It’s hard to take the article seriously when there’s no real discussion about how consciousness is defined and it takes Anthropic’s views...
- you know what i hate?
- > I honestly do not understand why any average person would buy anything else than a macbook today.
- Codex App frequently freezes/stutters on Windows 11 Pro despite sufficient system resources
- Add "Basic" and "Standard" plans
Raise real-world problems, find people facing the same issue, and discuss solutions.4,000 issues0 comments
ux (SaaS)
Some good points here, and I definitely hate the "unalive" movement but like someone else said, it has gone beyond self-censorship to in-...
It’s hard to take the article seriously when there’s no real discussion about how consciousness is defined and it takes Anthropic’s views...
you know what i hate?
> I honestly do not understand why any average person would buy anything else than a macbook today.
Codex App frequently freezes/stutters on Windows 11 Pro despite sufficient system resources
Add "Basic" and "Standard" plans
FEATURE: Multi-window support in Claude Code Desktop
Hi HN I built CookPal to solve a small but annoying problem for myself: I kept saving recipes from websites, TikTok, YouTube, and Instag...
Custom scopes in access token programmatically
**Describe the bug** Impossible to get access tokens with custom scopes without using the [hosted web ui](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-app-integration.html). Authentication through the [amplify drop-in UI](https://aws-amplify.github.io/docs/android/authentication#drop-in-auth) for both Android and iOS -- used in the [android-sdk-auth example](https://github.com/awslabs/aws-sdk-android-samples/tree/master/AmazonCognitoAuthDemo) -- or through [cognito auth sdk](https://docs.aws.amazon.com/cognito/latest/developerguide/tutorial-integrating-user-pools-android.html) always returns (the single scope) *aws.cognito.signin.user.admin* even if it is disabled on the app client settings. **To Reproduce** Steps to reproduce the behavior: 1.Follow the [android (or iOS)-sdk-auth example](https://github.com/awslabs/aws-sdk-android-samples/tree/master/AmazonCognitoAuthDemo); 2. Create custom scope and enable on app client settings; 3. Sign-in in the app, grab the access token and check the scopes in [jwt.io](jwt.io) **Which AWS service(s) are affected?** AWS Cognito (in all SDKs) and AWS API Gateway **Expected behavior** Access token should return custom scope(s), regardless of using the web ui. **Screenshots** <img width="689" alt="scopes" src="https://user-images.githubusercontent.com/3160657/52168249-bc695580-271f-11e9-9fd7-c8c4ee65d064.png"> **Environment(please complete the following information):** - Latest SDK versions (of both cog
Comments (0)
No comments yet. Start the discussion.