aws / aws/aws-cdk

[Cognito] Support Authenticated role selection for identity pool

Open
#21,398 3 comments 0 reactions 0 assignees View on GitHub
@aws-cdk/aws-cognito effort/medium feature-request p3
Dominant language
TypeScript
Stars
12.9k
Forks
4.6k
Avg merge
2d 3h
Merged PRs (30d)
83

Description

### Describe the feature

We should have method/option for setting the Identity Pool at Authentication providers for 'Choose Role from Token' instead of the default 'Use default role' (as per attached screen shot).

![image](https://user-images.githubusercontent.com/37215642/182096435-99a4eac1-0a70-4a86-bfff-f64878630399.png)

### Use Case

For AWS opensearch, I want to seperate IAM role at `Configure domain level access policy` which includes Dev role and admin Role.
Using AWS congition for opensearch authentication we need to update `Authentication providers` and choose option `Choose Role from Token` for combining Cognito user group. It means If no roles are specified in the token, the role resolution will be invoked. By default, it will fall back to the default role specified for this Identity Pool. You can also choose to DENY the request.

### Proposed Solution

I'm using `@aws-cdk/aws-cognito-identitypool-alpha` and hope this construct supports the feature

### Other Information

_No response_

### Acknowledgements

- [ ] I may be able to implement this feature request
- [ ] This feature might incur a breaking change

### CDK version used

2.34.2

### Environment details (OS name and version, etc.)

Ubuntu 20.04

Contributor guide

Open the contributing guide

Research direction

Start by reading the @aws-cdk/aws-cognito-identitypool-alpha construct and the AWS Identity Pool authentication-provider role settings described in the issue. Trace how the construct currently selects the default role and determine the option needed for choosing a role from the token. Done means the construct can represent that setting for the OpenSearch Cognito use case and its behavior is covered by the relevant tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, typescript
Domain
authentication, cloud
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.