我正在使用 Amazon Cognito 用户池来自定义我的 UI 以进行登录和登录。
据我了解,Callback URL 是登录成功后的登陆页面。
当我尝试配置回调 URL 时,总是出现以下错误
尝试将回调 URL 输入为 http://BUCKETName.s3-website-us-east-1.amazonaws.com/index.html
We were unable to update your App Configuration: http://BUCKETName.s3-website-us-east-1.amazonaws.com/index.html cannot use the HTTP protocol. (Service: AWSCognitoIdentityProviderService; Status Code: 400; Error Code: InvalidParameterException; Request ID: b3a888be-ded0-11e7-b16b-0fd6b04b4706)
如果我将其替换为 http://localhost/然后它可以工作,但它没有用,因为不能在生产中使用它。亚马逊文档没有提供太多这方面的信息。我如何使它工作?任何的想法?
最佳答案
Cognito 回调 url 不支持 http。您需要改用 https。
关于amazon-web-services - Amazon Cognito - UI 自定义 - 无法使用 HTTP 协议(protocol),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47763523/