![](/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.