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 Antwort
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
EXPERTE
beantwortet vor 2 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen