![](/img/trans.png)
[英]Is there a Sign-up/Sign-in GUI functionality for AWS Cognito web apps (not mobile apps)?
[英]Empty page for the sign-up and sign-in pages hosted by AWS Cognito
如果您只是在现有URL中添加/login
,您将开始收到有用的错误消息:
https://praedictio.auth.eu-west-1.amazoncognito.com/login
它没有很好地记录,但您的URL也需要一些参数:
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)
URL 应采用以下格式:
https://域/login?response_type=代码&client_id= client_id &redirect_uri= your_callback_url
可以在 AWS > Amazon Cognito > 用户池 > 应用程序集成选项卡中找到变量
请参阅Cognito 文档以获取更多信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.