Skip to content
This repository was archived by the owner on Nov 5, 2024. It is now read-only.
This repository was archived by the owner on Nov 5, 2024. It is now read-only.

Add Allowed scope for generating AccessToken from initiate-auth action #178

@ingluife

Description

@ingluife

Is your feature request related to a problem? Please describe.
it would be great to be able to generate an access token with some allowed scope according to what we defined in the Corresponding AppClient

Describe the solution you'd like
Add a parameter called [--scopes <value>] type string which will represent the allowed scope to generate the Token. The scopes can be multiple and comma-separated.

Additional context
E.g:

aws cognito-idp initiate-auth --region us-east-1 --scopes "openid,api-gtw/proxy" --cli-input-json file://auth_data.json

Current behavior:

Currently, when I get a Token with the above command I get a token with the default scope aws.cognito.signin.user.admin. I'm using an ApiGateway with some custom scopes defined in my AppClient and I'm not able to connect with a token got by awscli because that token doesn't have the corresponding custom scope.

image

Thanks so much in advance

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions