# 寻求关于Discourse的直接自动登录链接的指导

**URL:** https://meta.discourse.org/t/seeking-guidance-on-direct-auto-login-link-for-discourse/306741
**Category:** SSO
**Created:** [2024 年5 月 4 日 16:35 UTC](https://meta.discourse.org/t/seeking-guidance-on-direct-auto-login-link-for-discourse/306741 "2024-05-04T16:35:45Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### 作者： ![Samir\_Sabri](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/samir_sabri/32/287380_2.png) [@Samir\_Sabri](https://meta.discourse.org/u/Samir_Sabri)
#### 发布日期： [2024 年5 月 4 日 16:35 UTC](https://meta.discourse.org/t/seeking-guidance-on-direct-auto-login-link-for-discourse/306741/1 "2024-05-04T16:35:45Z")

</div>

您好，Discourse 社区：

我已成功在我的 Ruby on Rails 应用程序和 Discourse 论坛之间实现了单点登录 (SSO)。此设置允许用户通过我的 Rails 应用登录，然后通过手动点击“登录”链接来访问 Discourse。

我希望进一步推进此集成，使过渡更加顺畅。我的目标是在我的 Rails 应用中创建一个直接链接，当已登录用户点击该链接时，他们可以立即登录到 Discourse，而无需进一步提示或在 Discourse 上手动点击“登录”。此链接无意用于密码恢复或通过电子邮件共享；它是在 Rails 应用中动态生成的，供当前用户即时使用。

**问题：**

1. Discourse 是否支持在其 SSO 功能中创建此类直接自动登录链接？
2. 如果可能，您能否指导我参考相关文档或提供有关如何实现此功能的指南？
3. 如果此功能不可用，Discourse 社区中是否有任何推荐的插件或方法来实现这种无缝自动登录体验？

我渴望提高用户便利性，并确保平台之间的无缝接口。您提供的任何帮助或指导都将不胜感激。

谢谢！

---

<div class="post-metadata">

### 作者： ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### 发布日期： [2024 年5 月 4 日 18:31 UTC](https://meta.discourse.org/t/seeking-guidance-on-direct-auto-login-link-for-discourse/306741/2 "2024-05-04T18:31:54Z")

</div>

我认为这将实现您所寻找的功能：[创建 DiscourseConnect 登录链接](https://meta.discourse.org/t/create-a-discourseconnect-login-link/109290)。

---

<div class="post-metadata">

### 作者： ![Samir\_Sabri](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/samir_sabri/32/287380_2.png) [@Samir\_Sabri](https://meta.discourse.org/u/Samir_Sabri)
#### 发布日期： [2024 年5 月 5 日 06:20 UTC](https://meta.discourse.org/t/seeking-guidance-on-direct-auto-login-link-for-discourse/306741/3 "2024-05-05T06:20:02Z")

</div>

谢谢！

---

<div class="post-metadata">

### 作者： ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### 发布日期： [2024 年6 月 4 日 06:20 UTC](https://meta.discourse.org/t/seeking-guidance-on-direct-auto-login-link-for-discourse/306741/4 "2024-06-04T06:20:06Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
