{ retur-6ren">
gpt4 book ai didi

amazon-web-services - AWS Cognito USER_PASSWORD_AUTH "Initiate Auth method not supported."

转载 作者:行者123 更新时间:2023-12-04 17:30:39 28 4
gpt4 key购买 nike

我正在尝试执行以下操作:

  AWSUtil.generateSecretHash('test@test.com', ClientId).then(SECRET_HASH => {
return AWSUtil.Cognito.adminInitiateAuth({
AuthFlow: 'USER_PASSWORD_AUTH',
ClientId,
UserPoolId: process.env.COGNITO_USER_POOL_ID,
AuthParameters: {
USERNAME: 'test@test.com',
PASSWORD: 'lamepassword123',
SECRET_HASH
}
}).promise();
})
.then(resp => {
console.log(resp)
});

除了 "Initiate Auth method not supported.",它不会返回任何内容

根据 docs,这应该起作用。是什么赋予了?

最佳答案

应用程序客户端部分下,您是否启用了用户池框,该框显示:

[x] Enable username-password (non-SRP) flow for app-based authentication (USER_PASSWORD_AUTH)

关于amazon-web-services - AWS Cognito USER_PASSWORD_AUTH "Initiate Auth method not supported.",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48757864/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com