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 Risposta
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
ESPERTO
con risposta 2 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande