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.

Ognif
已提问 2 个月前333 查看次数
1 回答
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
专家
已回答 2 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则