# SSO回调关闭连接（服务器发送0字节）；之前曾注销模拟

**URL:** <https://meta.discourse.org/t/sso-callback-closes-connection-0-bytes-sent-by-server-used-logged-out-of-impersonation-previously/229064>\
**Category:** SSO\
**Created:** [2022 年6 月 5 日 14:43 UTC](https://meta.discourse.org/t/sso-callback-closes-connection-0-bytes-sent-by-server-used-logged-out-of-impersonation-previously/229064 "2022-06-05T14:43:45Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

作者： ![simon.michalke](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@simon.michalke](https://meta.discourse.org/u/simon.michalke)\
发布日期： [2022 年7 月 5 日 10:27 UTC](https://meta.discourse.org/t/sso-callback-closes-connection-0-bytes-sent-by-server-used-logged-out-of-impersonation-previously/229064/8 "2022-07-05T10:27:51Z")

</div>

是的。Nextcloud SSO 只支持 GET 而不支持基于 POST 的登录。我们的 nginx 代理悄悄地丢弃了请求，因为我们有太多的组填满了请求头。

我们目前的解决方法是手动修补插件，使其不包含组：

> <https://github.com/soudis/discoursesso/issues/28#issuecomment-1165819892>
>
> Hello,
> 
> we are having a \*very weird\* issue with our Discourse SSO. Ever since …one user logged out of impersonation, he is unable to log back in. I appended a screenshot of the Network Connections, the user was logged into Nextcloud previously.
> !\[grafik\](https://user-images.githubusercontent.com/4571541/172048806-4fa6ddc2-45fe-4794-b0ff-350f1faf7cb6.png)
> 
> The Server just closes the connection. I am unable to find any error log. Not inside any of the nginx proxies, not inside Discourse, not inside Nextcloud.
> 
> Interestingly it has nothing to do with the network or device. It is just this user that fails to log in.
> 
> I also tried clearing out the SSO Data from Discourse, changed the Email Adress to force creation of a new Discourse Account. The Problem still persists. This is also the reason I am posting the issue here and not on the Discourse Forum.

我们很快就会切换到 keycloak 进行身份验证。

---

_[View the full topic](https://meta.discourse.org/t/sso-callback-closes-connection-0-bytes-sent-by-server-used-logged-out-of-impersonation-previously/229064)._
