繁体   English   中英

AWS Cognito 注销 Url 格式 - 不存在必需的字符串参数“redirect_uri”

[英]AWS Cognito Logout Url format - Required String parameter 'redirect_uri' is not present

我正在尝试格式化注销 rest 调用以注销 AWS Cognito 用户池,但似乎无法正确执行。

在 cognito 将我注销后,我想重定向到 https://localhost:44333?signout=true。

以下不起作用并返回“必需的字符串参数'redirect_uri'不存在”:

https://tradingreplay-test.auth.eu-west-1.amazoncognito.com/error?client_id=***ClientId***&logout_uri=https://localhost:44333?signout=true

我已经检查并且 https://localhost:44333 在应用程序客户端的有效注销 url 列表中。

注销 URL的标准要求是不保留查询字符串参数。 您可以设置 cookie 或处理对 https://localhost:44333/logout/ 的请求。

https://tradingreplay-test.auth.eu-west-1.amazoncognito.com/error?client_id=***ClientId***&logout_uri=https://localhost:44333/signout/

由于 Cognito 是SAML兼容的,它可能会通过忽略查询字符串或抛出错误以相同的兼容方式处理注销

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM