# 通过 SSO 导航用户到帖子

**URL:** https://meta.discourse.org/t/navigating-user-to-a-post-via-sso/307251
**Category:** SSO
**Created:** [2024 年5 月 8 日 13:58 UTC](https://meta.discourse.org/t/navigating-user-to-a-post-via-sso/307251 "2024-05-08T13:58:14Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![MarkB2](https://avatars.discourse-cdn.com/v4/letter/m/6f9a4e/32.png) [@MarkB2](https://meta.discourse.org/u/MarkB2)
#### Post date: [2024 年5 月 8 日 13:58 UTC](https://meta.discourse.org/t/navigating-user-to-a-post-via-sso/307251/1 "2024-05-08T13:58:14Z")

</div>

您好  
我们有一个应用程序/网站，可以发送通知（应用内、推送和电子邮件）。我们希望包含指向主题/帖子的链接。

是否有什么方法可以让用户在收到指向帖子的 URL 链接时，重定向到我们的登录页面进行 SSO，并在登录后立即导航到 Discourse 中的帖子/主题？

---

<div class="post-metadata">

### Author: ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)
#### Post date: [2024 年5 月 8 日 17:07 UTC](https://meta.discourse.org/t/navigating-user-to-a-post-via-sso/307251/2 "2024-05-08T17:07:56Z")

</div>

我相信这能完成您想做的事情：

> [@Create a DiscourseConnect login link](https://meta.discourse.org/t/create-a-discourseconnect-login-link/109290?u=supermathie):
>
> bookmark This documentation explains how to create links on a [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) provider site that log users into Discourse and redirect them to a specific Discourse URL. person_raising_hand Required user level: Administrator Sites using [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) can add links on their [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) provider site that will log users into Discourse and redirect them to a specific Discourse URL. This is done by creating links that point to the /session/sso route that have a return\_path parameter …

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2025 年1 月 31 日 12:21 UTC](https://meta.discourse.org/t/navigating-user-to-a-post-via-sso/307251/3 "2025-01-31T12:21:57Z")

</div>

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