AWS CLI Cognito 用户池客户端创建失败
AWS CLI Cognito User Pool Client Creation fails
我在 AWS 中有一个 Cognito 用户池,我正在尝试创建一个 Bash 脚本以使用 aws cli
.
向其中添加应用程序客户端
我是运行以下的人:
aws cognito-idp create-user-pool-client \
--user-pool-id $user_pool_id \
--client-name toy-client \
--callback-urls "https://example.com"
其中 user_pool_id
设置为我的用户池的 ID。
当我这样做时,我得到一个很长的错误,这是前几个字符:
An error occurred (InvalidParameterException) when calling the CreateUserPoolClient operation: 2 validation errors detected: Value '[<, !, d, o, c, t, y, p, e, , h, t, m, l, >,
, <, h, t, m, l, >,
, <, h, e, a, d, >,
, , , , , <, t, i, t, l, e, >, E, x, a, m, p, l, e, , D, o, m, a, i, n, <, /, t, i, t, l, e, >...
它看起来很像它已被检索 https://example.com
,它这样做是为了验证它是否可以访问,但它似乎正在使用内容代替 URL。
如果我在 AWS 控制台中创建应用程序客户端时将此 URL 设置为 callback_url
,它可以正常工作。
关于我做错了什么的任何建议,或者这是一个错误?
看起来 CLI 没有配置为接受回调 URL 作为字符串,而是 loading the URL and passing the response as the parameter.
确保您是 运行 最新版本的 CLI(最好是版本 2)。如果您出于某种原因不能使用 v2,您可以通过在您的 aws 配置文件 ~/.aws/config
中设置 cli_follow_urlparam = false
来解决此问题,如指定的 here.
我在 AWS 中有一个 Cognito 用户池,我正在尝试创建一个 Bash 脚本以使用 aws cli
.
我是运行以下的人:
aws cognito-idp create-user-pool-client \
--user-pool-id $user_pool_id \
--client-name toy-client \
--callback-urls "https://example.com"
其中 user_pool_id
设置为我的用户池的 ID。
当我这样做时,我得到一个很长的错误,这是前几个字符:
An error occurred (InvalidParameterException) when calling the CreateUserPoolClient operation: 2 validation errors detected: Value '[<, !, d, o, c, t, y, p, e, , h, t, m, l, >,
, <, h, t, m, l, >,
, <, h, e, a, d, >,
, , , , , <, t, i, t, l, e, >, E, x, a, m, p, l, e, , D, o, m, a, i, n, <, /, t, i, t, l, e, >...
它看起来很像它已被检索 https://example.com
,它这样做是为了验证它是否可以访问,但它似乎正在使用内容代替 URL。
如果我在 AWS 控制台中创建应用程序客户端时将此 URL 设置为 callback_url
,它可以正常工作。
关于我做错了什么的任何建议,或者这是一个错误?
看起来 CLI 没有配置为接受回调 URL 作为字符串,而是 loading the URL and passing the response as the parameter.
确保您是 运行 最新版本的 CLI(最好是版本 2)。如果您出于某种原因不能使用 v2,您可以通过在您的 aws 配置文件 ~/.aws/config
中设置 cli_follow_urlparam = false
来解决此问题,如指定的 here.