# 使用 Discourse 登录 Rocketchat？

**URL:** <https://meta.discourse.org/t/log-in-to-rocketchat-with-discourse/85559>\
**Category:** SSO\
**Created:** [2018年四月17日 17:22 UTC](https://meta.discourse.org/t/log-in-to-rocketchat-with-discourse/85559 "2018-04-17T17:22:29Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![DrOpossum](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dropossum/32/93929_2.png) [@DrOpossum](https://meta.discourse.org/u/DrOpossum)\
**Post date:** [2018年四月17日 17:22 UTC](https://meta.discourse.org/t/log-in-to-rocketchat-with-discourse/85559/1 "2018-04-17T17:22:29Z")

</div>

Hey there,

I would like to connect my Discourse to my self-hosted rocketchat server. It’s possible to log in via OAuth, CAS and SAML. Details can be found here: [https://rocket.chat/docs/administrator-guides/authentication/](https://rocket.chat/docs/administrator-guides/authentication/)

Is there an easy way to do this? Does Discourse support any of there authentication types?

Best regards,  
Felix

---

<div class="post-metadata">

**Author:** ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)\
**Post date:** [2018年四月17日 18:40 UTC](https://meta.discourse.org/t/log-in-to-rocketchat-with-discourse/85559/2 "2018-04-17T18:40:39Z")

</div>

You’ll have to be more specific. Where do you want the authentication data to come from?

---

<div class="post-metadata">

**Author:** ![DrOpossum](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dropossum/32/93929_2.png) [@DrOpossum](https://meta.discourse.org/u/DrOpossum)\
**Post date:** [2018年四月17日 18:53 UTC](https://meta.discourse.org/t/log-in-to-rocketchat-with-discourse/85559/3 "2018-04-17T18:53:09Z")

</div>

Hey,

Thanks for your reply. To register on rocketchat, you need a Mail, Username and Password. I would like to take these from discourse to create a account for rocketchat or log in, if the account doesn’t already exisit.

---

<div class="post-metadata">

**Author:** ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)\
**Post date:** [2018年四月17日 19:14 UTC](https://meta.discourse.org/t/log-in-to-rocketchat-with-discourse/85559/4 "2018-04-17T19:14:37Z")

</div>

Discourse isn’t a SAML or OAuth provider, so it can’t work as the source of authentication information using those protocols. The only auth provider support Discourse has is its own SSO protocol.

---

<div class="post-metadata">

**Author:** ![jtbayly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jtbayly/32/119510_2.png) [@jtbayly](https://meta.discourse.org/u/jtbayly)\
**Post date:** [2018年四月17日 20:00 UTC](https://meta.discourse.org/t/log-in-to-rocketchat-with-discourse/85559/5 "2018-04-17T20:00:45Z")

</div>

Interesting. I figured SSO was using a standard of some sort. Out of curiosity, why did you guys choose to roll your own?

---

<div class="post-metadata">

**Author:** ![Siedlerchr](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/siedlerchr/32/242748_2.png) [@Siedlerchr](https://meta.discourse.org/u/Siedlerchr)\
**Post date:** [2018年五月18日 10:01 UTC](https://meta.discourse.org/t/log-in-to-rocketchat-with-discourse/85559/6 "2018-05-18T10:01:10Z")

</div>

We use a self hosted CAS for our research project pages. This CAS SSO is used for Moodle, Discourse and Rocket.Chat .

---

<div class="post-metadata">

**Author:** ![SvenC56](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/svenc56/32/132235_2.png) [@SvenC56](https://meta.discourse.org/u/SvenC56)\
**Post date:** [2019年十月21日 16:40 UTC](https://meta.discourse.org/t/log-in-to-rocketchat-with-discourse/85559/7 "2019-10-21T16:40:44Z")

</div>

有人成功实现了吗？我对这个 [Use Discourse as an identity provider (SSO, DiscourseConnect)](https://meta.discourse.org/t/using-discourse-as-a-sso-provider/32974?u=svenc56) 帖子感到困惑。Rocket.Chat 和 Discourse 之间能否实现单点登录（SSO）？

谢谢。
