# SSO

**URL:** https://meta.discourse.org/c/support/sso/24.md?page=1

[最新版本](https://meta.discourse.org/latest.md) · [分類](https://meta.discourse.org/categories.md) · [標簽](https://meta.discourse.org/tags.md)

**Page:** 2

---

## [在第二个 WordPress 站点使用 WordPress SSO](https://meta.discourse.org/t/using-wordpress-sso-on-second-wordpress-site/372808)

<div class="topic-metadata">

**Author:** [@timb](https://meta.discourse.org/u/timb)\
**回覆:** 0\
**Last updated:** [2025年七月3日 16:56 UTC](https://meta.discourse.org/t/using-wordpress-sso-on-second-wordpress-site/372808 "2025-07-03T16:56:28Z")

</div>

你好，我正在使用适用于 WordPress 的 Discourse 插件，允许那些 WordPress 用户登录到我的 Discourse 站点。所有这些都运行得很出色。 现在，我想使用相同的 WordPress 单点登录 (SSO) 来允许用户登录到……

---

## [群组邀请和 SSO](https://meta.discourse.org/t/group-invites-and-sso/371612)

<div class="topic-metadata">

**Author:** [@J\_S\_R](https://meta.discourse.org/u/J_S_R)\
**回覆:** 0\
**Last updated:** [2025年六月25日 09:04 UTC](https://meta.discourse.org/t/group-invites-and-sso/371612 "2025-06-25T09:04:48Z")

</div>

我正在使用 Umbraco，并且为了让我们的网站用户能够登录 Discourse，我们已经实现了一个使用 DiscourseConnect 的自定义解决方案。我们希望 Discourse 管理员能够邀请用户加入一个私有组……

---

## [OAuth2::ConnectionError, 无法打开到 discord.com:443 的 TCP 连接 (执行超时)](https://meta.discourse.org/t/oauth2-connectionerror-failed-to-open-tcp-connection-to-discord-com-443-execution-expired/370772)

<div class="topic-metadata">

**Author:** [@zoeyme](https://meta.discourse.org/u/zoeyme)\
**回覆:** 0\
**Last updated:** [2025年六月19日 00:15 UTC](https://meta.discourse.org/t/oauth2-connectionerror-failed-to-open-tcp-connection-to-discord-com-443-execution-expired/370772 "2025-06-19T00:15:26Z")

</div>

我几天来一直试图解决这个问题，但毫无进展。我已经设置了 Discord OAuth，当你点击 Discord OAuth 提示中的“授权”时，你没有被重定向到主页，而是被重定向到一个……

---

## [使用断言寿命期定期更新SAML组](https://meta.discourse.org/t/using-assertion-lifespan-to-update-saml-groups-on-a-regular-basis/367227)

<div class="topic-metadata">

**Author:** [@BaoLe](https://meta.discourse.org/u/BaoLe)\
**回覆:** 0\
**Last updated:** [2025年五月22日 13:50 UTC](https://meta.discourse.org/t/using-assertion-lifespan-to-update-saml-groups-on-a-regular-basis/367227 "2025-05-22T13:50:57Z")

</div>

大家好， 我试图自动更新组指派，如果它们在IDP端发生变化。不幸的是，它只在用户登出再登录时起作用，因为断言只在登录时传输…

---

## [如何通过API删除用户帐户而不被IP封锁](https://meta.discourse.org/t/how-to-delete-user-accounts-via-api-without-ip-blocking/314959)

<div class="topic-metadata">

**Author:** [@gschmid](https://meta.discourse.org/u/gschmid)\
**回覆:** 10\
**Last updated:** [2025年五月15日 13:20 UTC](https://meta.discourse.org/t/how-to-delete-user-accounts-via-api-without-ip-blocking/314959 "2025-05-15T13:20:30Z")

</div>

我们已将 Discourse 与另一个应用程序集成，用户在 Keycloak 中进行管理。当用户在另一个应用程序中删除其帐户时，我们也会通过 API 在 Discourse 中将其删除。 这可以正常工作，但用户的 IP 随后会在 Discourse 中被自动阻止，因此无法从同一 IP 登录其他用户。 可以关闭此 IP 阻止功能吗？或者让它在一段时间后自动解除阻止？

---

## [在链接到私有话题时触发通过 OIDC 的自动认证？](https://meta.discourse.org/t/triggering-automatic-authentication-via-oidc-when-linking-to-private-topics/364411)

<div class="topic-metadata">

**Author:** [@tyler.lamparter](https://meta.discourse.org/u/tyler.lamparter)\
**回覆:** 1\
**Last updated:** [2025年五月3日 23:08 UTC](https://meta.discourse.org/t/triggering-automatic-authentication-via-oidc-when-linking-to-private-topics/364411 "2025-05-03T23:08:06Z")

</div>

我正在尝试实现此线程中指定的、但使用 OIDC 的功能。此线程似乎仅与 DiscourseConnect 相关，当我尝试为我们的 OIDC 配置执行相同操作时，它不起作用。有人有什么其他建议可以实现此功能，或者这是否需要对 OIDC 插件进行一些增强？

---

## [OAuth2 认证失败：检测到 CSRF 错误](https://meta.discourse.org/t/oauth2-authentication-failure-csrf-detected-error/363932)

<div class="topic-metadata">

**Author:** [@Evie\_Tao](https://meta.discourse.org/u/Evie_Tao)\
**回覆:** 0\
**Last updated:** [2025年四月29日 08:02 UTC](https://meta.discourse.org/t/oauth2-authentication-failure-csrf-detected-error/363932 "2025-04-29T08:02:04Z")

</div>

您好， 我在使用 OAuth2 身份验证登录 Discourse 实例时遇到问题。用户尝试登录时会看到以下错误消息： 这似乎与 OAuth2 回调阶段的 CSRF 令牌验证失败有关。 我已经检查了： 浏览器 Cookie 和会话 确保 OAuth2 设置和回调 URL 配置正确 但是，问题仍然存在，导致登录尝试持续失败。 谁能帮我弄清楚为什么会出现此错误以及如何解决它？ 提前感谢您的帮助！

---

## [Google OAuth](https://meta.discourse.org/t/google-oauth/363547)

<div class="topic-metadata">

**Author:** [@Chris\_C2000](https://meta.discourse.org/u/Chris_C2000)\
**回覆:** 0\
**Last updated:** [2025年四月26日 09:15 UTC](https://meta.discourse.org/t/google-oauth/363547 "2025-04-26T09:15:31Z")

</div>

我已按照指南设置了 Google 身份验证，但是，无论何时我在登录或注册时点击 Google 按钮，都会出现： 抱歉，授权您的帐户时出错。请重试。 在网站的详细日志中显示： (google\_oauth2) 身份验证失败！invalid\_credentials: OmniAuth::Strategies::OAuth2::CallbackError, immediate\_failed 有什么想法是我做错了什么吗？

---

## [将 Discourse 中的 Avatar 自动同步到 Wordpress](https://meta.discourse.org/t/sync-avatar-from-discourse-to-wordpress-automatically/329386)

<div class="topic-metadata">

**Author:** [@Shauny](https://meta.discourse.org/u/Shauny)\
**回覆:** 5\
**Last updated:** [2025年四月22日 14:38 UTC](https://meta.discourse.org/t/sync-avatar-from-discourse-to-wordpress-automatically/329386 "2025-04-22T14:38:50Z")

</div>

我尝试搜索过，但只找到了关于反向操作的主题，而没有找到关于这个方向的…… 我的 WordPress 网站是 DiscourseConnect 提供商，我的 Discourse 论坛，所以人们用他们的 WordPress 账户登录论坛。 我以前是这样设置的：你访问网站来更新你的头像，使用一个插件，它会将头像上传到 Discourse，但我希望反过来，因为 Discourse 的头像功能好用得多。我希望网站在登录时，或者头像更改时，从 …

---

## [是否禁用 OIDC 用户的激活电子邮件？](https://meta.discourse.org/t/disable-activation-email-for-oidc-users/324537)

<div class="topic-metadata">

**Author:** [@steinhh](https://meta.discourse.org/u/steinhh)\
**回覆:** 1\
**Last updated:** [2025年四月15日 18:07 UTC](https://meta.discourse.org/t/disable-activation-email-for-oidc-users/324537 "2025-04-15T18:07:57Z")

</div>

您好，是否有办法禁用通过 OIDC 进行身份验证的用户的激活电子邮件？我们已经将 openid connect overrides email 设置为是(\*)，而且有些人就是找不到他们的垃圾邮件文件夹…… 考虑到我们是一所大学，我很想说“如果你找不到激活邮件，你就会自动得到 F”。但不行…… (\*) 身份验证源是大学自己的注册表，因此电子邮件绝对是正确的。即使该用户不知道如何拼写 :wink:

---

## [将Discourse Auth Proxy用作另一个站点的SSO提供者](https://meta.discourse.org/t/using-discourse-auth-proxy-as-an-sso-provider-for-another-site/312872)

<div class="topic-metadata">

**Author:** [@bstgmr02](https://meta.discourse.org/u/bstgmr02)\
**回覆:** 3\
**Last updated:** [2025年四月3日 14:38 UTC](https://meta.discourse.org/t/using-discourse-auth-proxy-as-an-sso-provider-for-another-site/312872 "2025-04-03T14:38:55Z")

</div>

我的想法很简单，我想在我的另一个网站上使用 Discourse 作为 SSO 提供商。Discourse 指引我使用 Discourse Auth Proxy。我已经使用了下面的配置： #!/bin/sh # 你需要设置以下环境变量并像这样运行 # 镜像 PROXY\_URL=http://0.0.0.0:80 ORIGIN\_URL=https://mycustomsite.com SSO\_SECRET=RandomStringSe…

---

## [无需注销即可触发payload更新吗？](https://meta.discourse.org/t/trigger-payload-update-without-logout/359850)

<div class="topic-metadata">

**Author:** [@wrapper](https://meta.discourse.org/u/wrapper)\
**回覆:** 1\
**Last updated:** [2025年四月1日 14:25 UTC](https://meta.discourse.org/t/trigger-payload-update-without-logout/359850 "2025-04-01T14:25:03Z")

</div>

我正在使用 Discourse Connect 将用户头像从 WordPress 更新到 Discourse。但是，有效负载仅在登录时推送。有没有办法强制同步发生而不执行此步骤？ 谢谢！

---

## [DiscourseConnect 总是返回“Nonce 不正确，...”](https://meta.discourse.org/t/discourseconnect-always-returns-nonce-is-incorrect/357183)

<div class="topic-metadata">

**Author:** [@doron1](https://meta.discourse.org/u/doron1)\
**回覆:** 0\
**Last updated:** [2025年三月13日 19:49 UTC](https://meta.discourse.org/t/discourseconnect-always-returns-nonce-is-incorrect/357183 "2025-03-13T19:49:39Z")

</div>

大家好， 我们正在为一个自托管的 Discourse 服务器构建一个接口。服务器是撰写本文时最新版本。我们的代码运行在不同的域上。 我们已经配置好了一切，我们收到了 Discourse 的签名 SSO 调用，并根据 此 进行了签名响应。 查看 Discourse 日志，我们的响应似乎已正确签名，并且我们返回的字段已正确解析。Nonce 也相同。尽管如此，交易总是以 419 “Nonce 不正确，是在不同的浏览器会话中生成的，或已过…

---

## [Discord的OAuth 2.0 URI无效](https://meta.discourse.org/t/invalid-oauth-2-uri-for-discord/254657)

<div class="topic-metadata">

**Author:** [@Glow](https://meta.discourse.org/u/Glow)\
**回覆:** 2\
**Last updated:** [2023年二月9日 19:27 UTC](https://meta.discourse.org/t/invalid-oauth-2-uri-for-discord/254657 "2023-02-09T19:27:00Z")

</div>

您好， 我目前正在尝试设置我的 Discord 登录，但收到一条错误消息“无效的 oauth\_2 uri”。我该如何解决这个问题？我有这些选项。

---

## [Mobile (Firebase) SSO 认证](https://meta.discourse.org/t/mobile-firebase-sso-authentication/183524)

<div class="topic-metadata">

**Author:** [@Jaroslaw](https://meta.discourse.org/u/Jaroslaw)\
**回覆:** 1\
**Last updated:** [2025年二月27日 04:01 UTC](https://meta.discourse.org/t/mobile-firebase-sso-authentication/183524 "2025-02-27T04:01:22Z")

</div>

Problem: I want to have a mobile app (xamarin) and inside of my app I’d like to put webView with access to my discourse forum. I have login page in my app so I don’t want to login again to discourse (that’s why I want t…

---

## [OpenID Connect与sub不匹配](https://meta.discourse.org/t/openid-connect-and-sub-mismatch/342029)

<div class="topic-metadata">

**Author:** [@Jagster](https://meta.discourse.org/u/Jagster)\
**回覆:** 2\
**Last updated:** [2025年二月25日 06:14 UTC](https://meta.discourse.org/t/openid-connect-and-sub-mismatch/342029 "2025-02-25T06:14:53Z")

</div>

用户可以登录到提供商（如果 WordPress 有任何作用）然后当用户返回 Discourse 时，它会等待片刻并告知未成功。我在日志中看到这个： openid\_connect\_sub\_mismatch: OmniAuth::Strategies::OpenIDConnect::SubVerifyError, OIDC sub mismatch. 提供商和 Discourse 的设置不多，我确信一切都如应有，但我的感觉现在不重要。那…

---

## [OpenID Connect 和 JWT 密钥用于 WAF](https://meta.discourse.org/t/openid-connect-and-jwt-key-for-waf/348301)

<div class="topic-metadata">

**Author:** [@sandra.mccollum](https://meta.discourse.org/u/sandra.mccollum)\
**回覆:** 0\
**Last updated:** [2025年一月22日 02:00 UTC](https://meta.discourse.org/t/openid-connect-and-jwt-key-for-waf/348301 "2025-01-22T02:00:21Z")

</div>

我正在考虑使用 Discourse OpenID Connect。我想与 WAF 集成，它需要 JWT 密钥，有人能告诉我密钥在哪里吗？我已经创建了 Google Cloud Console 中的客户端，但不确定 WAF 所需的密钥是否是客户端密钥？如果不是，有人能指引我方向吗？

---

## [重建后使用稳定版v3.3.3，SSO失效](https://meta.discourse.org/t/sso-broken-after-rebuild-with-stable-v3-3-3/343847)

<div class="topic-metadata">

**Author:** [@mentalstring](https://meta.discourse.org/u/mentalstring)\
**回覆:** 7\
**Last updated:** [2024年十二月22日 13:57 UTC](https://meta.discourse.org/t/sso-broken-after-rebuild-with-stable-v3-3-3/343847 "2024-12-22T13:57:54Z")

</div>

今天使用 3.3.3（几天前发布的最新稳定版）重新构建后，SSO 停止工作了。目前已登录用户仍然正常，但新会话的 SSO 流程会以以下错误结束： 账户登录超时，请重试登录。 启用 verbose discourse connect logging 显示： Verbose SSO log: Nonce 不正确，是在不同的浏览器会话中生成的，或者已过期 然而，我们 SSO 流程在过去几年中没有任何变化。服务器之间的时钟是同步…

---

## [Bluesky OAuth 支持](https://meta.discourse.org/t/bluesky-oauth-support/339950)

<div class="topic-metadata">

**Author:** [@darkpixlz](https://meta.discourse.org/u/darkpixlz)\
**回覆:** 3\
**Last updated:** [2024年十二月18日 04:56 UTC](https://meta.discourse.org/t/bluesky-oauth-support/339950 "2024-12-18T04:56:04Z")

</div>

标题就说明了一切——我希望将 Bluesky 添加到 Discourse 的登录 oAuth2 系统中，就像 Twitter、Discord、Github、Google 以及其他网站一样。许多人（包括我自己）已经完全转向那里并离开了 Twitter，所以这将是一个很好的替代方案。

---

## [将通过 OIDC 限制登录至特定角色](https://meta.discourse.org/t/restrict-logins-via-oidc-to-specific-roles/340389)

<div class="topic-metadata">

**Author:** [@IanManning](https://meta.discourse.org/u/IanManning)\
**回覆:** 2\
**Last updated:** [2024年十二月17日 08:56 UTC](https://meta.discourse.org/t/restrict-logins-via-oidc-to-specific-roles/340389 "2024-12-17T08:56:17Z")

</div>

您好 我已通过 OIDC 插件将 Discourse 实例连接到我们的身份提供商 SAP CDC。 这可以实现用户通过其 SAP CDC 账户登录并在 Discourse 上注册。 我想限制能够访问 Discourse 的用户为 SAP CDC 中一部分用户。这些用户通过 JWT 中的角色进行定义——是否有人能帮助我配置 Discourse 以拒绝没有特定角色的用户？ Ian

---

## [更无缝地使用OAuth插件进行Auth0认证](https://meta.discourse.org/t/use-oauth-plugin-for-auth0-more-seamlessly/235331)

<div class="topic-metadata">

**Author:** [@tobi1](https://meta.discourse.org/u/tobi1)\
**回覆:** 10\
**Last updated:** [2024年十二月11日 21:48 UTC](https://meta.discourse.org/t/use-oauth-plugin-for-auth0-more-seamlessly/235331 "2024-12-11T21:48:07Z")

</div>

我目前正尝试为我的 Discourse 应用集成 Auth0 身份验证。我基本上遵循了此处的工作流程，并且已经让它运行起来了。 但是，出于几个原因，我对此并不完全满意： 点击登录/注册后，只有一个“使用 Auth0”按钮。我希望在点击 Discourse 页面顶部的登录/注册后，出现的唯一内容是 Auth0 登录/注册面板。 通过 Auth0 进行身份验证后，用户不应该需要创建新用户，而是应该因为 Auth0 而一切正常。 电子邮…

---

## [Faraday::SSLError（SSL\_read：读取过程中意外的 eof）](https://meta.discourse.org/t/faraday-sslerror-ssl-read-unexpected-eof-while-reading/341145)

<div class="topic-metadata">

**Author:** [@Jagster](https://meta.discourse.org/u/Jagster)\
**回覆:** 1\
**Last updated:** [2024年十二月8日 16:25 UTC](https://meta.discourse.org/t/faraday-sslerror-ssl-read-unexpected-eof-while-reading/341145 "2024-12-08T16:25:34Z")

</div>

我正在尝试让 OAuth2 在论坛和 Wordpress 之间工作。但现在当我登录到 Wordpress 并返回到 https://forum/auth/oauth2\_basic/callback 时，我会得到一个 Oops，日志显示 Faraday::SSLError (SSL\_read: unexpected eof while reading)。 这是什么意思？它指的是谁的 SSL？谷歌搜索结果经常表明这是 OpenSSL 版本…

---

## [抱歉，您的账户授权时出现了错误](https://meta.discourse.org/t/sorry-there-was-an-error-authorizing-your-account/112229)

<div class="topic-metadata">

**Author:** [@Wurzelseppi](https://meta.discourse.org/u/Wurzelseppi)\
**回覆:** 22\
**Last updated:** [2024年十二月6日 09:46 UTC](https://meta.discourse.org/t/sorry-there-was-an-error-authorizing-your-account/112229 "2024-12-06T09:46:27Z")

</div>

Hi there, I´m working for a big company and I´m using an internal oauth2 provider in conjunction with this plugin. In a different business unit there is already another discourse instance running, where the same setup w…

---

## [OAUTH2 基础 - 一场噩梦 :-(](https://meta.discourse.org/t/oauth2-basic-a-nightmare/338662)

<div class="topic-metadata">

**Author:** [@Wurzelseppi](https://meta.discourse.org/u/Wurzelseppi)\
**回覆:** 20\
**Last updated:** [2024年十二月3日 14:48 UTC](https://meta.discourse.org/t/oauth2-basic-a-nightmare/338662 "2024-12-03T14:48:47Z")

</div>

大家好， 我尝试设置 OAUTH2 已经两天了，但遇到了一些问题。 我按照文档配置了一切，但一直收到这个错误： (oauth2\_basic) Authentication failure! invalid\_scope: OmniAuth::Strategies::OAuth2::CallbackError, invalid\_scope | Unknown/invalid scope(s) Started GET "/auth/fa…

---

## [以管理员身份登录](https://meta.discourse.org/t/login-as-a-admin/338768)

<div class="topic-metadata">

**Author:** [@Aniket](https://meta.discourse.org/u/Aniket)\
**回覆:** 1\
**Last updated:** [2024年十一月27日 13:54 UTC](https://meta.discourse.org/t/login-as-a-admin/338768 "2024-11-27T13:54:44Z")

</div>

大家好， 我已经为我们的社区启用了 SSO，用户只能通过我们的应用程序访问。以前我可以通过管理员登录来配置社区，但现在我只能以用户身份登录。 如果我想以管理员身份登录进行配置，该怎么办？ 谢谢。

---

## [来自其他网站对discourse的授权](https://meta.discourse.org/t/authorization-for-discourse-from-another-site/337396)

<div class="topic-metadata">

**Author:** [@dbp](https://meta.discourse.org/u/dbp)\
**回覆:** 1\
**Last updated:** [2024年十一月21日 07:48 UTC](https://meta.discourse.org/t/authorization-for-discourse-from-another-site/337396 "2024-11-21T07:48:42Z")

</div>

在我们的用户登录到我们的网站后，我想为他们提供一个指向 discourse 的链接。他们已经通过了身份验证，因此我基本上想完成 DiscourseConnect 的后半部分，将用户信息发送到 Discourse 并让他们在那里自动登录。 在此场景中，由 discourse 提供的登录页面将是多余的。访问 discourse 社区的唯一途径将是经过我们的网站。 这是否可行？任何提示都将不胜感激。

---

## [将Discourse与Keycloak集成](https://meta.discourse.org/t/intergrate-discourse-with-keycloak/220670)

<div class="topic-metadata">

**Author:** [@Ndacyayisenga-droid](https://meta.discourse.org/u/Ndacyayisenga-droid)\
**回覆:** 15\
**Last updated:** [2024年十一月9日 11:17 UTC](https://meta.discourse.org/t/intergrate-discourse-with-keycloak/220670 "2024-11-09T11:17:17Z")

</div>

我想将 discourse 与 keycloak 集成，有什么建议吗？谢谢。 此致 Ndacyayisenga

---

## [在Discourse中通过API使用Auth0实现无密码登录/注册](https://meta.discourse.org/t/implementing-passwordless-login-signup-in-discourse-with-auth0-via-apis/332213)

<div class="topic-metadata">

**Author:** [@Tech\_Geek](https://meta.discourse.org/u/Tech_Geek)\
**回覆:** 2\
**Last updated:** [2024年十月23日 00:56 UTC](https://meta.discourse.org/t/implementing-passwordless-login-signup-in-discourse-with-auth0-via-apis/332213 "2024-10-23T00:56:25Z")

</div>

您好， 我正在构建一个应用程序，该应用程序使用 Auth0 通过无密码的魔术链接进行用户登录/注册，并且所有交互都通过 API 处理。我希望用户在已注册的情况下自动登录到我们的 Discourse 社区。如果他们未注册，我希望他们通过魔术链接自动注册并登录。 此外，如果用户通过 Auth0 在 Shopify 上登录，是否可以将其扩展为自动登录到 Discourse？ 这是否可以通过 Auth0 与 Discourse 通过 AP…

---

## [游戏开发 - 用户注册和数据库管理（需要建议)](https://meta.discourse.org/t/game-dev-user-registration-db-management-advice-needed/308874)

<div class="topic-metadata">

**Author:** [@aegis.five](https://meta.discourse.org/u/aegis.five)\
**回覆:** 5\
**Last updated:** [2024年五月26日 09:07 UTC](https://meta.discourse.org/t/game-dev-user-registration-db-management-advice-needed/308874 "2024-05-26T09:07:05Z")

</div>

大家好，希望你们一切都好。 这只是一个关于方向的通用求助——我们希望使用 Discourse 的注册/用户管理/数据库将相同的详细信息注册到我们的外部游戏数据库中（这样玩家就可以使用相同的登录详细信息登录游戏）。 目前正在浏览 git 仓库以了解事物的工作原理等。 如前所述，总体计划是，当用户在论坛上注册时，Discourse 将在我们的游戏数据库（托管在另一个 vps 上）中注册用户详细信息。如果他们更新密码或电子邮件，这些也会…

---

## [问题：使用 oauth2-basic 插件的 OAuth2 登录时检测到 CSRF 错误](https://meta.discourse.org/t/issue-csrf-detected-error-with-oauth2-login-using-oauth2-basic-plugin/331505)

<div class="topic-metadata">

**Author:** [@Ly\_Chen](https://meta.discourse.org/u/Ly_Chen)\
**回覆:** 1\
**Last updated:** [2024年十月18日 20:51 UTC](https://meta.discourse.org/t/issue-csrf-detected-error-with-oauth2-login-using-oauth2-basic-plugin/331505 "2024-10-18T20:51:45Z")

</div>

您好， 在使用 oauth2-basic 插件通过 OAuth2 登录时，我遇到了“csrf\_detected”错误。以下是问题的详细流程： 我点击“登录”，页面重定向到： https://myforum/auth/basic\_oauth2 然后它执行 302 重定向到： https://myforum/auth/failure?message=csrf\_detected 复现步骤： 当我尝试登录时，以下 curl 命令模拟…

[上一頁](https://meta.discourse.org/c/support/sso/24.md)

[下一頁](https://meta.discourse.org/c/support/sso/24.md?page=2)
