# Trying to set up SSO

**URL:** https://meta.discourse.org/t/trying-to-set-up-sso/61284
**Category:** Development
**Created:** [April 19, 2017, 9:03pm UTC](https://meta.discourse.org/t/trying-to-set-up-sso/61284 "2017-04-19T21:03:09Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![riz](https://avatars.discourse-cdn.com/v4/letter/r/71c47a/32.png) [@riz](https://meta.discourse.org/u/riz)
#### Post date: [April 19, 2017, 9:03pm UTC](https://meta.discourse.org/t/trying-to-set-up-sso/61284/1 "2017-04-19T21:03:09Z")

</div>

When do i need to use a webhook?

I’m trying to setup SSO or possible create a new user through the API.

Do i need to setup a webhook for that?

So i’m confused as to the use case for webhooks? and when to use them or use the API or SSO?

---

<div class="post-metadata">

### Author: ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)
#### Post date: [April 19, 2017, 9:17pm UTC](https://meta.discourse.org/t/trying-to-set-up-sso/61284/2 "2017-04-19T21:17:49Z")

</div>

I think you probably want this guide instead:

> [@Setup DiscourseConnect - Official Single-Sign-On for Discourse (sso)](https://meta.discourse.org/t/official-single-sign-on-for-discourse/13045):
>
> [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) is a core Discourse feature that allows you to configure “Single Sign-On (SSO)” to completely outsource all user registration and login from Discourse to another site. Offered to our [pro, business and enterprise hosting customers](https://discourse.org/pricing). information_source (Feb 2021) ‘[Discourse SSO](https://meta.discourse.org/t/13045?silent=true)’ is now ‘[DiscourseConnect](https://meta.discourse.org/t/13045?silent=true)’. If you are running an old version of Discourse, the settings below will be named sso\_... rather than discourse\_connect\_... The Problem Many sites wishing to integrate wit…

If you’d like further assistance with your SSO integration, please describe in more detail what you’re trying to accomplish.

---

<div class="post-metadata">

### Author: ![mikechristopher](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mikechristopher/32/89135_2.png) [@mikechristopher](https://meta.discourse.org/u/mikechristopher)
#### Post date: [April 19, 2017, 9:34pm UTC](https://meta.discourse.org/t/trying-to-set-up-sso/61284/3 "2017-04-19T21:34:46Z")

</div>

A webhook is normally used for an outgoing transaction. For example if you have a user created in discourse or a new topic created etc it can update / create record in outbound system.

The API is used for inbound transactions. Creating new users / topics in discourse etc.
