# Teachable and Discourse SSO

**URL:** https://meta.discourse.org/t/teachable-and-discourse-sso/151114
**Category:** SSO
**Created:** [May 12, 2020, 1:51am UTC](https://meta.discourse.org/t/teachable-and-discourse-sso/151114 "2020-05-12T01:51:26Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [May 12, 2020, 4:47pm UTC](https://meta.discourse.org/t/teachable-and-discourse-sso/151114/2 "2020-05-12T16:47:49Z")

</div>

> [@gnarly22](#):
>
> Hey - I am new to programming (I am teaching myself during quarantine) and I am helping a friend convert his music lesson business online.

That is great!

> [@gnarly22](#):
>
> - User signs up, Teachable webhook sends this action to a server.
> - The server gets the user data from the webhook, [then uses something like](https://www.npmjs.com/package/discourse-sso) to create the user.

Normally what would be done is that code similar to the SSO code you have linked to would be installed on the service that users initially log into. In your case that service would be Teachable. Unfortunately, I do not think it is possible to add server side code to a Teachable site.

Have a look at this post to see how you can integrate Discourse with Teachable by sending Discourse invitations to users when they register on Teachable:

> [@What can the Teachable webhook do?](https://meta.discourse.org/t/what-can-the-teachable-webhook-do/79598/3):
>
> We have a Teachable endpoint on a plugin available at our hosting, here is how to set it up: @mpalmer Teachable is not-so-strong on SSO, so we currently use the Teachable webhooks to invite people over to Discourse.

You can achieve similar functionality by sending the invites through Zapier. That is outlined here: [Automate sending Discourse invite emails with Zapier](https://meta.discourse.org/t/automate-sending-discourse-invite-emails-with-zapier/121608).

---

_[View the full topic](https://meta.discourse.org/t/teachable-and-discourse-sso/151114)._
