# SSO

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

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

**Page:** 19

---

## [SSO 用户的邮箱字段未填充？](https://meta.discourse.org/t/email-field-not-populated-on-sso-user/97622)

<div class="topic-metadata">

**Author:** [@Julian\_Elve](https://meta.discourse.org/u/Julian_Elve)\
**回覆:** 6\
**Last updated:** [2018年九月20日 11:36 UTC](https://meta.discourse.org/t/email-field-not-populated-on-sso-user/97622 "2018-09-20T11:36:24Z")

</div>

我们正通过自定义端点（基于此思路扩展）利用 IdentityServer3 身份提供商成功通过 SSO 创建 Discourse 用户。 我们在 SSO 负载中传递了电子邮件值（我认为这是手...

---

## [CurrentUserProvider 出现异常](https://meta.discourse.org/t/weirdness-with-our-currentuserprovider/97586)

<div class="topic-metadata">

**Author:** [@mmayo](https://meta.discourse.org/u/mmayo)\
**回覆:** 0\
**Last updated:** [2018年九月19日 19:13 UTC](https://meta.discourse.org/t/weirdness-with-our-currentuserprovider/97586 "2018-09-19T19:13:55Z")

</div>

你好 Discourse， 我们的自定义用户提供者/SSO 出现了一些奇怪的行为。我们并未使用 Discourse 自带的 SSO（是的，我知道这不受支持且不明智），但我们确实使用了其内部的一些组件进行身份验证…

---

## [SSO locked me out of Discourse!](https://meta.discourse.org/t/sso-locked-me-out-of-discourse/23856)

<div class="topic-metadata">

**Author:** [@TwelveMonkeys](https://meta.discourse.org/u/TwelveMonkeys)\
**回覆:** 33\
**Last updated:** [2018年九月19日 20:08 UTC](https://meta.discourse.org/t/sso-locked-me-out-of-discourse/23856 "2018-09-19T20:08:53Z")

</div>

I’m trying out SSO for my Wordpress site and it seems that if you get the configuration wrong, you can get locked out of your admin account. Unfortunately, I am but a lowly publisher/admin. So the instructions here http…

---

## [使用 Google 账号进行 SSO 登录](https://meta.discourse.org/t/sso-with-google-account/97019)

<div class="topic-metadata">

**Author:** [@sunhwa.yoo](https://meta.discourse.org/u/sunhwa.yoo)\
**回覆:** 2\
**Last updated:** [2018年九月18日 03:26 UTC](https://meta.discourse.org/t/sso-with-google-account/97019 "2018-09-18T03:26:34Z")

</div>

我真的很想用 Google 账号登录我的论坛。 当我测试 Google OAuth2 登录时，它成功了。 但我想使用“启用 SSO”偏好设置。 我勾选了“启用 SSO”，并在“SSO URL”中输入了 Google 域名……

---

## [官方 SSO 页面上的 HMAC-256 示例](https://meta.discourse.org/t/hmac-256-example-on-official-sso-page/92546)

<div class="topic-metadata">

**Author:** [@jehrlich](https://meta.discourse.org/u/jehrlich)\
**回覆:** 3\
**Last updated:** [2018年九月11日 20:47 UTC](https://meta.discourse.org/t/hmac-256-example-on-official-sso-page/92546 "2018-09-11T20:47:45Z")

</div>

Discourse 官方单点登录 (sso) 提供了一个 HMAC-256 编码的“真实世界示例”，但我无法复现。 Base64 编码后的字符串末尾多了一个“'\\n”，它应该是： bm9uY2U9Y2I2ODI1MWVlZmI1MjEx…

---

## [用户名被修改：数字“1”被添加](https://meta.discourse.org/t/usernames-getting-modified-numeral-1-being-added/96982)

<div class="topic-metadata">

**Author:** [@tnorthcutt](https://meta.discourse.org/u/tnorthcutt)\
**回覆:** 4\
**Last updated:** [2018年九月11日 20:22 UTC](https://meta.discourse.org/t/usernames-getting-modified-numeral-1-being-added/96982 "2018-09-11T20:22:02Z")

</div>

我运营着一个 Discourse 实例和一个 WordPress 站点，使用的是 Discourse SSO 插件（非常棒）。最近，在 50 多个用户中有两个用户的用户名在 Discourse 中被追加了"1"，而他们在 WordPress 站点上的用户名仍然……

---

## [新用户已创建，但未登录](https://meta.discourse.org/t/new-user-created-but-not-logged-in/96578)

<div class="topic-metadata">

**Author:** [@Jason\_Howe](https://meta.discourse.org/u/Jason_Howe)\
**回覆:** 2\
**Last updated:** [2018年九月7日 16:49 UTC](https://meta.discourse.org/t/new-user-created-but-not-logged-in/96578 "2018-09-07T16:49:52Z")

</div>

我正在配置网站的单点登录（SSO）。 我已设置好端点，该端点已成功创建、哈希并签名有效负载。 当浏览器重定向回 /session/sso\_login 端点时，us…

---

## [通过插件在 Discourse 中实现基于 Cookie 的身份验证](https://meta.discourse.org/t/cookie-based-authentication-in-discourse-via-plugin/96266)

<div class="topic-metadata">

**Author:** [@praveendhinwa](https://meta.discourse.org/u/praveendhinwa)\
**回覆:** 6\
**Last updated:** [2018年九月5日 07:47 UTC](https://meta.discourse.org/t/cookie-based-authentication-in-discourse-via-plugin/96266 "2018-09-05T07:47:07Z")

</div>

大家好， 我尝试在 Discourse 中使用基于 Cookie 的身份验证（会话由父域名控制）。在此场景中，我正在调用父网站后端的 API，通过会话 Cookie 来查找用户。T…

---

## [SSO（可能）特定问题](https://meta.discourse.org/t/sso-maybe-specific-issue/96263)

<div class="topic-metadata">

**Author:** [@TeoWneD](https://meta.discourse.org/u/TeoWneD)\
**回覆:** 2\
**Last updated:** [2018年九月4日 08:31 UTC](https://meta.discourse.org/t/sso-maybe-specific-issue/96263 "2018-09-04T08:31:40Z")

</div>

嗨，我已经在团队的网站上成功安装了 Discourse。现在我正尝试移除 Discourse 的登录/密码，转而使用团队网站的登录/密码。据我所知，这被称为 SSO。所以我尝试了……

---

## [通过 SSO 嵌入评论](https://meta.discourse.org/t/embedding-comments-via-sso/95537)

<div class="topic-metadata">

**Author:** [@Lukas\_Majercak](https://meta.discourse.org/u/Lukas_Majercak)\
**回覆:** 4\
**Last updated:** [2018年八月26日 21:10 UTC](https://meta.discourse.org/t/embedding-comments-via-sso/95537 "2018-08-26T21:10:04Z")

</div>

你好！ 我最近搭建了一个 Discourse 实例（https://arbitio-community.co.uk），并通过我的 Django 应用配置了 SSO。 我正在尝试实现以下功能： 用户登录我的 Django 应用后 我自动执行 /session/sso 请求…

---

## [Grails 为 Discourse 提供单点登录功能](https://meta.discourse.org/t/grails-single-sign-on-for-discourse/95457)

<div class="topic-metadata">

**Author:** [@derrick\_teo1](https://meta.discourse.org/u/derrick_teo1)\
**回覆:** 0\
**Last updated:** [2018年八月23日 07:20 UTC](https://meta.discourse.org/t/grails-single-sign-on-for-discourse/95457 "2018-08-23T07:20:55Z")

</div>

大家好，我对 Discourse SSO 还非常陌生。有人能指导一下如何在 Grails 应用或其他框架应用中实现 SSO 逻辑吗？

---

## [从 localStorage 传递 token](https://meta.discourse.org/t/pass-token-from-localstorage/84665)

<div class="topic-metadata">

**Author:** [@Nopsled](https://meta.discourse.org/u/Nopsled)\
**回覆:** 1\
**Last updated:** [2018年七月30日 08:38 UTC](https://meta.discourse.org/t/pass-token-from-localstorage/84665 "2018-07-30T08:38:01Z")

</div>

你好， 是否有简单的方法在 SSO 请求中传递 localStorage 中的令牌？我正在使用基于令牌的认证，需要验证本地存储的令牌对应的用户。 如果尚未有相关插件，ca…

---

## [Support for full\_screen\_login feature like saml plugin](https://meta.discourse.org/t/support-for-full-screen-login-feature-like-saml-plugin/90609)

<div class="topic-metadata">

**Author:** [@trobiyo](https://meta.discourse.org/u/trobiyo)\
**回覆:** 4\
**Last updated:** [2018年七月27日 14:54 UTC](https://meta.discourse.org/t/support-for-full-screen-login-feature-like-saml-plugin/90609 "2018-07-27T14:54:46Z")

</div>

@eviltrout, any plans to add full\_screen\_login feature like saml plugin (discourse-saml/plugin.rb at main · discourse/discourse-saml · GitHub)?

---

## [从 SSO 服务器以登录状态路由到论坛](https://meta.discourse.org/t/routing-from-sso-server-to-forum-as-logged-in/92497)

<div class="topic-metadata">

**Author:** [@jehrlich](https://meta.discourse.org/u/jehrlich)\
**回覆:** 1\
**Last updated:** [2018年七月16日 21:46 UTC](https://meta.discourse.org/t/routing-from-sso-server-to-forum-as-logged-in/92497 "2018-07-16T21:46:56Z")

</div>

假设我在我的应用程序中实现了 SSO 服务器，并且有一个已登录的用户。SSO 站点包含一个指向论坛的链接，当用户点击该链接时，已登录的用户应自动登录到论坛。用户应…

---

## [“用户登出 API”返回成功响应，但用户会话仍然有效](https://meta.discourse.org/t/user-log-out-api-return-success-in-response-but-user-session-still-alive/91468)

<div class="topic-metadata">

**Author:** [@kalpantkrishna\_patil](https://meta.discourse.org/u/kalpantkrishna_patil)\
**回覆:** 10\
**Last updated:** [2018年七月10日 08:29 UTC](https://meta.discourse.org/t/user-log-out-api-return-success-in-response-but-user-session-still-alive/91468 "2018-07-10T08:29:43Z")

</div>

您好， 我正在使用 SSO 设置，并从我的应用程序调用用户登出 API（https://discourse.example.com/admin/users/{id}/log\_out）。现在 API 返回成功响应，但用户会话在浏览器中仍然存活。应该……

---

## [Facebook用户会收到电子邮件吗？](https://meta.discourse.org/t/do-facebook-users-get-emails/91924)

<div class="topic-metadata">

**Author:** [@Seanny123](https://meta.discourse.org/u/Seanny123)\
**回覆:** 1\
**Last updated:** [2018年七月10日 00:19 UTC](https://meta.discourse.org/t/do-facebook-users-get-emails/91924 "2018-07-10T00:19:11Z")

</div>

Facebook 用户会收到通知邮件吗？这里暗示他们不会收到，但我想在鼓励我创建的 Discourse 中的所有用户切换之前，先确认一下官方答案。

---

## [OAuth2 redirect\_uri 使用 HTTP，而我的论坛使用 HTTPS](https://meta.discourse.org/t/oauth2-redirect-uri-uses-http-when-my-forum-is-using-https/91789)

<div class="topic-metadata">

**Author:** [@channing](https://meta.discourse.org/u/channing)\
**回覆:** 5\
**Last updated:** [2018年七月8日 03:08 UTC](https://meta.discourse.org/t/oauth2-redirect-uri-uses-http-when-my-forum-is-using-https/91789 "2018-07-08T03:08:21Z")

</div>

您好， 我刚刚为我的 Discourse 论坛启用了 HTTPS（在主机系统上使用 Let's Encrypt + nginx）。未添加重定向，因此访客可以使用 HTTP 或 HTTPS。一切运行正常。 随后，我尝试启用 Google OAuth2 认证…

---

## [使用社交账号和标准登录实现单点登录](https://meta.discourse.org/t/single-sign-on-with-social-and-standard-login/91460)

<div class="topic-metadata">

**Author:** [@hardik](https://meta.discourse.org/u/hardik)\
**回覆:** 2\
**Last updated:** [2018年七月5日 08:48 UTC](https://meta.discourse.org/t/single-sign-on-with-social-and-standard-login/91460 "2018-07-05T08:48:21Z")

</div>

您好， 我们已有一个现有平台，提供基于邮箱和密码的标准注册与登录功能。 现在，我们希望将 Discourse 集成到我们的平台中，Discourse 的登录信息应与我们的平台保持一致……

---

## [Return\_sso\_url 已提供但为空](https://meta.discourse.org/t/return-sso-url-is-blank-but-provided/91541)

<div class="topic-metadata">

**Author:** [@tchncs](https://meta.discourse.org/u/tchncs)\
**回覆:** 1\
**Last updated:** [2018年七月4日 17:29 UTC](https://meta.discourse.org/t/return-sso-url-is-blank-but-provided/91541 "2018-07-04T17:29:21Z")

</div>

你好， 虽然我已经创建了 GitHub issue，但还是想再打扰一下。 不过已经过去几个小时了，还没有收到回复，而我有点着急——甚至不确定这是否是该项目的问题……

---

## [使用 Discourse 登录 Mastodon——Mastodon 的 Discourse 实例上的有趣讨论](https://meta.discourse.org/t/sign-into-mastodon-using-a-discourse-login-interesting-chat-at-mastodons-discourse-instance/88748)

<div class="topic-metadata">

**Author:** [@merefield](https://meta.discourse.org/u/merefield)\
**回覆:** 2\
**Last updated:** [2018年六月19日 05:49 UTC](https://meta.discourse.org/t/sign-into-mastodon-using-a-discourse-login-interesting-chat-at-mastodons-discourse-instance/88748 "2018-06-19T05:49:46Z")

</div>

https://discourse.joinmastodon.org/t/single-sign-on-with-discourse/766

---

## [Discourse 与 Ultimate Member 兼容吗？](https://meta.discourse.org/t/discourse-with-ultimate-member/90019)

<div class="topic-metadata">

**Author:** [@Evapy](https://meta.discourse.org/u/Evapy)\
**回覆:** 2\
**Last updated:** [2018年六月16日 17:18 UTC](https://meta.discourse.org/t/discourse-with-ultimate-member/90019 "2018-06-16T17:18:06Z")

</div>

您认为是否可以通过 SSO 将 Ultimate Member 的角色与 Discourse 的群组关联起来？如果可以，具体该怎么做呢？ 谢谢，祝您有美好的一天！

---

## [Generic error when existing user tries to sign in](https://meta.discourse.org/t/generic-error-when-existing-user-tries-to-sign-in/57223)

<div class="topic-metadata">

**Author:** [@zhanes](https://meta.discourse.org/u/zhanes)\
**回覆:** 4\
**Last updated:** [2018年六月10日 21:11 UTC](https://meta.discourse.org/t/generic-error-when-existing-user-tries-to-sign-in/57223 "2018-06-10T21:11:10Z")

</div>

I’ve got a report from a specific user that when they try logging into our forum they get the error “There is a problem with your account. Please contact the site’s administrator.” We use SSO. I haven’t heard of this fr…

---

## [Patreon 与 WordPress 单点登录](https://meta.discourse.org/t/patreon-and-wordpress-sso/90596)

<div class="topic-metadata">

**Author:** [@VerticalVeg](https://meta.discourse.org/u/VerticalVeg)\
**回覆:** 3\
**Last updated:** [2018年六月5日 12:23 UTC](https://meta.discourse.org/t/patreon-and-wordpress-sso/90596 "2018-06-05T12:23:28Z")

</div>

Discourse, Wordpress and Patreon integration Hi there, I’ve had a wordpress site for several year but I’m new new to both Discourse and Patreon. I LOVE what I’ve learnt so far about Discourse! What I’d like to do is ha…

---

## [配置 discourse-saml 时遇到问题](https://meta.discourse.org/t/problem-configuring-discourse-saml/89109)

<div class="topic-metadata">

**Author:** [@jpsayshello](https://meta.discourse.org/u/jpsayshello)\
**回覆:** 2\
**Last updated:** [2018年六月4日 21:57 UTC](https://meta.discourse.org/t/problem-configuring-discourse-saml/89109 "2018-06-04T21:57:43Z")

</div>

大家好， 我正尝试通过 GitHub 配置单点登录（SSO）—— discourse/discourse-saml：Discourse 插件中的 SAML 支持。 但我遇到了错误：“抱歉，授权您的账户时发生错误。也许您未批准……”

---

## [单点登出？](https://meta.discourse.org/t/single-sign-out/88848)

<div class="topic-metadata">

**Author:** [@Amethi](https://meta.discourse.org/u/Amethi)\
**回覆:** 11\
**Last updated:** [2018年五月31日 17:15 UTC](https://meta.discourse.org/t/single-sign-out/88848 "2018-05-31T17:15:18Z")

</div>

我刚实现了 Discourse SSO（连接到我的基于 Identity Server 4 的 IDP，太棒了）。 我理解目前没有单点登出功能，即无法向 IDP 发送通知告知用户已登出，以便他们也能同步登出……

---

## [通过 Auth0 实现静默登录/注册](https://meta.discourse.org/t/silent-login-signup-via-auth0/83163)

<div class="topic-metadata">

**Author:** [@shahidmir](https://meta.discourse.org/u/shahidmir)\
**回覆:** 7\
**Last updated:** [2018年五月16日 12:01 UTC](https://meta.discourse.org/t/silent-login-signup-via-auth0/83163 "2018-05-16T12:01:12Z")

</div>

你好 我正尝试为以下场景实现单点登录（SSO）。 我的应用程序使用 Auth0 对用户进行身份验证。一旦用户完成认证，每当他们访问 Discourse 页面时，我希望用户能够静默登录，而…

---

## [使用网站账户信息登录Discourse](https://meta.discourse.org/t/login-to-discourse-with-website-account-details/88645)

<div class="topic-metadata">

**Author:** [@Mahsa\_Sa](https://meta.discourse.org/u/Mahsa_Sa)\
**回覆:** 2\
**Last updated:** [2018年五月29日 10:03 UTC](https://meta.discourse.org/t/login-to-discourse-with-website-account-details/88645 "2018-05-29T10:03:32Z")

</div>

用户如何能够在网站上拥有与之前登录的账户相同的账户信息，因此无需再次注册和登录discourse？

---

## [获取用于 API 的 user\_id](https://meta.discourse.org/t/retrieving-user-id-for-api-use/88522)

<div class="topic-metadata">

**Author:** [@Judith](https://meta.discourse.org/u/Judith)\
**回覆:** 1\
**Last updated:** [2018年五月26日 21:41 UTC](https://meta.discourse.org/t/retrieving-user-id-for-api-use/88522 "2018-05-26T21:41:47Z")

</div>

我使用 SSO 作为唯一的登录方式，因此我知道论坛用户的外部 ID（external\_id），但为了使用 API，我需要知道他们的论坛用户 ID（对吗？）。API 似乎没有搜索……的功能。

---

## [确保用户已登录 Discourse](https://meta.discourse.org/t/ensure-that-user-is-signed-in-to-discourse/86396)

<div class="topic-metadata">

**Author:** [@adopilot](https://meta.discourse.org/u/adopilot)\
**回覆:** 3\
**Last updated:** [2018年五月24日 12:54 UTC](https://meta.discourse.org/t/ensure-that-user-is-signed-in-to-discourse/86396 "2018-05-24T12:54:31Z")

</div>

我们的 Discourse 配置为使用来自企业应用的单点登录（SSO）。 在某些业务流程中，我们将 Discourse 用作邮件和通知中继。 部分业务流程始于我们的 ERP 系统，通过表单发起，随后流转至 Discourse。 由于 Disc…

---

## [启用 SSO 的优缺点](https://meta.discourse.org/t/advantage-and-disadvantage-of-enabling-sso/88155)

<div class="topic-metadata">

**Author:** [@Brajmohan\_Kumar](https://meta.discourse.org/u/Brajmohan_Kumar)\
**回覆:** 1\
**Last updated:** [2018年五月22日 18:28 UTC](https://meta.discourse.org/t/advantage-and-disadvantage-of-enabling-sso/88155 "2018-05-22T18:28:45Z")

</div>

我最近启用了单点登录（SSO），能否简要介绍一下此功能，并说明使用它的优缺点？

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

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