# SSO 给了我们一个 HTTP 419，但它能用

**URL:** <https://meta.discourse.org/t/sso-gives-us-an-http-419-but-works/190274>\
**Category:** Support\
**Created:** [2021年五月13日 03:26 UTC](https://meta.discourse.org/t/sso-gives-us-an-http-419-but-works/190274 "2021-05-13T03:26:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![erik\_garcia\_x.studio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erik_garcia_x.studio/32/220450_2.png) [@erik\_garcia\_x.studio](https://meta.discourse.org/u/erik_garcia_x.studio)\
**Post date:** [2021年五月13日 03:26 UTC](https://meta.discourse.org/t/sso-gives-us-an-http-419-but-works/190274/1 "2021-05-13T03:26:27Z")

</div>

我应该在 Discourse 日志中查找哪些类型的 SSO 消息？

我们之前正常工作的 Discourse 重定向：  
`'${process.env.DISCOURSE_URL}/session/sso?return_path=${encodeURIComponent(forumUrl)}'`

现在却返回了以下错误：

```
登录错误

账户登录超时，请尝试重新登录。

```

同时从 `${DISCOURSE_URL}/session/sso_login` 返回了 HTTP 419 状态码，但用户实际上已认证，并且可以点击网站徽标继续操作。

在 Discourse 日志中，哪个位置最适合追踪与我们引入的此项变更相关的详细信息？对于后续操作（在不回滚变更的前提下），有什么建议吗？

---

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [2021年五月21日 16:10 UTC](https://meta.discourse.org/t/sso-gives-us-an-http-419-but-works/190274/2 "2021-05-21T16:10:44Z")

</div>

> [@erik\_garcia\_x.studio](#):
>
> 在我们引入此更改后，Discourse 日志中哪里最适合追踪相关细节？

尝试启用“详细 Discourse 连接日志”站点设置。启用该设置后，您的站点的错误日志页面（位于“管理 / 日志 / 错误日志”）中将添加一些额外的日志条目。
