Using aws cli for Cognito callback URLs will remove OIDC settings

0

I use aws cli to add a callback URL to cognito, For this I use:

endoutput=$(aws cognito-idp update-user-pool-client --user-pool-id ${UserPoolId} --client-id ${ClientId} --callback-urls ${NewCallbackUrls} --region ${RegionId})

So far so good, the new CallbackUrl is added after this call but the values: Identity providers, OAuth 2.0 grant types and OpenID Connect scopes are gone after this call. What I forgeot here? I expect that this settings keep as they are because I have not changed them.

1 Answer
0

Hello.

Options that are not set will be returned to their default values.
I think it disappears because "--supported-identity-providers" etc. are not specified in the command you are running.
https://awscli.amazonaws.com/v2/documentation/api/latest/reference/cognito-idp/update-user-pool-client.html

If you don’t provide a value for an attribute, Amazon Cognito sets it to its default value.

profile picture
EXPERT
answered a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions