# 来自 Thinkific 的 SSO

**URL:** https://meta.discourse.org/t/sso-from-thinkific/118743
**Category:** SSO
**Created:** [2019年五月26日 21:34 UTC](https://meta.discourse.org/t/sso-from-thinkific/118743 "2019-05-26T21:34:58Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Keith\_Huang](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/keith_huang/32/142149_2.png) [@Keith\_Huang](https://meta.discourse.org/u/Keith_Huang)
#### Post date: [2019年五月26日 21:34 UTC](https://meta.discourse.org/t/sso-from-thinkific/118743/1 "2019-05-26T21:34:58Z")

</div>

any luck setting SSO from thinkific to discourse?  
We are using thinkific for online courses and would love to have users create account/log in on thinkific site and automatically signed on to discourse for the community feature.

Do I need to configure anything on thinkific site or the config on discourse site will do the trick?  
I read the official SSO implementation post but am still not sure what is required for the SSO URL (`discuss.example.com/discuss/sso`)  
any help will be greatly appreciated. thank you all this is by far the best option i found.

---

<div class="post-metadata">

### Author: ![Ben\_Czegeny](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ben_czegeny/32/147228_2.png) [@Ben\_Czegeny](https://meta.discourse.org/u/Ben_Czegeny)
#### Post date: [2019年六月19日 05:59 UTC](https://meta.discourse.org/t/sso-from-thinkific/118743/2 "2019-06-19T05:59:48Z")

</div>

Wondering if you ever found out if this is possible?

---

<div class="post-metadata">

### Author: ![ethandrower](https://avatars.discourse-cdn.com/v4/letter/e/8baadc/32.png) [@ethandrower](https://meta.discourse.org/u/ethandrower)
#### Post date: [2020年四月12日 01:43 UTC](https://meta.discourse.org/t/sso-from-thinkific/118743/3 "2020-04-12T01:43:44Z")

</div>

我也在寻找这样的实现方案。看起来 Thinkific 的文档针对的是与我们相反的场景（即我们希望将 Thinkific 作为认证的唯一真实来源，而他们假设您已有其他认证来源）。

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2020年四月12日 03:48 UTC](https://meta.discourse.org/t/sso-from-thinkific/118743/4 "2020-04-12T03:48:30Z")

</div>

这或许能帮到你。我记得之前遇到了一些小问题，但具体细节记不清了。

> **[GitHub - pfaffman/discourse-thinkific](https://github.com/pfaffman/discourse-thinkific)**
>
> Contribute to pfaffman/discourse-thinkific development by creating an account on GitHub.

---

<div class="post-metadata">

### Author: ![ethandrower](https://avatars.discourse-cdn.com/v4/letter/e/8baadc/32.png) [@ethandrower](https://meta.discourse.org/u/ethandrower)
#### Post date: [2020年五月1日 14:21 UTC](https://meta.discourse.org/t/sso-from-thinkific/118743/5 "2020-05-01T14:21:22Z")

</div>

非常感谢！我实际上通过一些变通方法解决了这个问题。我会整理并将在 GitHub 上发布相关代码，然后在这里附上链接。

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2020年五月21日 17:43 UTC](https://meta.discourse.org/t/sso-from-thinkific/118743/6 "2020-05-21T17:43:52Z")

</div>

嘿 @ethandrower。我遇到了一个问题：我的解决方案只有在用户登录 Discourse 时才会登录 Thinkific。由于 Thinkific 会在浏览器关闭时登出，用户必须退出并重新登录 Discourse，才能再次登录 Thinkific。你解决这个问题了吗？

---

<div class="post-metadata">

### Author: ![ethandrower](https://avatars.discourse-cdn.com/v4/letter/e/8baadc/32.png) [@ethandrower](https://meta.discourse.org/u/ethandrower)
#### Post date: [2020年五月22日 16:03 UTC](https://meta.discourse.org/t/sso-from-thinkific/118743/7 "2020-05-22T16:03:32Z")

</div>

@pfaffman 我采用的方法是：用户仅登录 Thinkific（Discourse 没有注册/登录流程）。你可以通过将 SSO 设置指向一个中间服务器来消除这一环节。

流程大致如下：用户在 Discourse 上点击登录 → 转发至你的服务器以启动 SSO 流程 → 重定向到 Thinkific 页面进行登录。

这种方式需要投入更多工作，但这是我找到的唯一能实现从 Thinkific 发起 SSO 的方案（此时 Thinkific 是权威数据源）。

我已开始撰写一篇关于此的博客文章，并计划今天完成，或许能对你有所帮助。

---

<div class="post-metadata">

### Author: ![Chas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chas/32/178138_2.png) [@Chas](https://meta.discourse.org/u/Chas)
#### Post date: [2020年六月22日 23:54 UTC](https://meta.discourse.org/t/sso-from-thinkific/118743/8 "2020-06-22T23:54:10Z")

</div>

跟进一下……你完成这篇博客文章了吗？🙂

---

<div class="post-metadata">

### Author: ![jhuynh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jhuynh/32/216697_2.png) [@jhuynh](https://meta.discourse.org/u/jhuynh)
#### Post date: [2021年四月12日 20:38 UTC](https://meta.discourse.org/t/sso-from-thinkific/118743/9 "2021-04-12T20:38:59Z")

</div>

@ethandrower 您对此有任何更新吗？我也正在尝试将 Thinkific 的单点登录（SSO）配置到 Discourse，如果您能提供任何解决方案，我们将不胜感激！

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2021年四月12日 21:45 UTC](https://meta.discourse.org/t/sso-from-thinkific/118743/10 "2021-04-12T21:45:51Z")

</div>

我编写了上面链接的插件；它可以在某些限制下运行（主要是 Thinkific 的登录会超时，而重新登录的唯一方式是先退出 Discourse 再重新登录）。我现在知道如何以更好的方式编写它了（为 Thinkific 添加一个可触发的路由来启动登录）。如果您有预算，请联系我。
