AWS Cognito托管的注册和登录页面的空白页面

时间:2018-03-30 06:05:15

标签: amazon-web-services amazon-cognito

我创建了用户池并将新用户添加到用户池。我的要求是使用cognito提供的默认注册/登录页面。因此,在检索托管页面的域名后,它会呈现一个空页面。

enter image description here

enter image description here

通过简单地输入域以控制台中的多个错误结束。感谢是否有人确定了其根本原因。

1 个答案:

答案 0 :(得分:3)

如果您只是在现有网址中添加/login,您就会收到有用的错误消息:

https://praedictio.auth.eu-west-1.amazoncognito.com/login

没有很好地记录,但您的网址也需要一些参数:

  • client_id - 与身份提供者的应用程序相关。
  • redirect_url - 应与UserPool应用设置中的重定向网址匹配。
  • response_type - 令牌(或代码)。

https://praedictio.auth.eu-west-1.amazoncognito.com/login?response_type=code&client_id=(client_id)&redirect_uri=(encoded uri)
相关问题