【发布时间】:2022-04-04 00:45:08
【问题描述】:
我正在根据official documentation 在 Cognito 中设置基于 TOTP 的 MFA。用户池配置完毕,接下来就是关联token了。使用 boto3:
client = boto3.client('cognito-idp')
client.associate_software_token(access_token)
返回错误:
NotAuthorizedException when calling the AssociateSoftwareToken operation:
Access Token does not have required scopes
令牌的范围为email profile openid。我错过了什么,它期望的其他范围是什么?
【问题讨论】:
标签: amazon-cognito multi-factor-authentication