# Connect Discourse Auth with my Django user DB?

**URL:** https://meta.discourse.org/t/connect-discourse-auth-with-my-django-user-db/147604
**Category:** SSO
**Created:** [April 11, 2020, 8:07am UTC](https://meta.discourse.org/t/connect-discourse-auth-with-my-django-user-db/147604 "2020-04-11T08:07:26Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![funfake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/funfake/32/154367_2.png) [@funfake](https://meta.discourse.org/u/funfake)
#### Post date: [April 11, 2020, 8:07am UTC](https://meta.discourse.org/t/connect-discourse-auth-with-my-django-user-db/147604/1 "2020-04-11T08:07:26Z")

</div>

Hi ! I’m really interested in Discourse for my ecommerce platform.  
It would provide a great helping section for my users.  
I’ve seen that Discourse has it’s own Auth methods. I was wondering if I could modify these in order to enable logins/registers through my platform (only).

Do you think it’s a great idea to split auths for better user management ?

Thanks for your answers.

---

<div class="post-metadata">

### Author: ![hawm](https://avatars.discourse-cdn.com/v4/letter/h/f07891/32.png) [@hawm](https://meta.discourse.org/u/hawm)
#### Post date: [April 11, 2020, 8:56am UTC](https://meta.discourse.org/t/connect-discourse-auth-with-my-django-user-db/147604/2 "2020-04-11T08:56:01Z")

</div>

You may try

> [@Setup DiscourseConnect - Official Single-Sign-On for Discourse (sso)](https://meta.discourse.org/t/official-single-sign-on-for-discourse-sso/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…

---

<div class="post-metadata">

### Author: ![funfake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/funfake/32/154367_2.png) [@funfake](https://meta.discourse.org/u/funfake)
#### Post date: [April 11, 2020, 10:49am UTC](https://meta.discourse.org/t/connect-discourse-auth-with-my-django-user-db/147604/3 "2020-04-11T10:49:18Z")

</div>

Thanks for your reply. This topic is interesting. I imagine that someone already thought about Django-SSO so it shouldn’t be that hard to link Discourse with it.  
I’ll keep your informed if I found my way into this.

---

<div class="post-metadata">

### Author: ![emrysr](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/emrysr/32/214347_2.png) [@emrysr](https://meta.discourse.org/u/emrysr)
#### Post date: [March 24, 2021, 10:55am UTC](https://meta.discourse.org/t/connect-discourse-auth-with-my-django-user-db/147604/4 "2021-03-24T10:55:01Z")

</div>

found this link while googling the same issue (might be of use to django devs)

> [@Integrating discourse into Django site?](https://meta.discourse.org/t/integrating-discourse-into-django-site/79084/5):
>
> @vinothkannans Thanks for posting that link. However, it isn’t available or is private. Do you know if that example for sso with Django is available publicly? @bartv any links / more thoughts you could share on examples of sso between Django \<\> Discourse Thanks!

---

<div class="post-metadata">

### Author: ![shawnngtq](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/shawnngtq/32/182367_2.png) [@shawnngtq](https://meta.discourse.org/u/shawnngtq)
#### Post date: [October 24, 2021, 1:09am UTC](https://meta.discourse.org/t/connect-discourse-auth-with-my-django-user-db/147604/5 "2021-10-24T01:09:34Z")

</div>

@funfake

I am currently looking for a way to integrate Django allauth and discourse. Did you manage to find a way? Please share 🙂

---

<div class="post-metadata">

### Author: ![foobarbecue](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/foobarbecue/32/282722_2.png) [@foobarbecue](https://meta.discourse.org/u/foobarbecue)
#### Post date: [November 21, 2022, 4:37pm UTC](https://meta.discourse.org/t/connect-discourse-auth-with-my-django-user-db/147604/6 "2022-11-21T16:37:31Z")

</div>

Did you find a way to link django auth with discourse? I’m trying to do the same thing (using dj-rest-auth with allauth and django rest framework)

---

<div class="post-metadata">

### Author: ![alex.ehlke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alex.ehlke/32/187893_2.png) [@alex.ehlke](https://meta.discourse.org/u/alex.ehlke)
#### Post date: [February 12, 2026, 4:43am UTC](https://meta.discourse.org/t/connect-discourse-auth-with-my-django-user-db/147604/7 "2026-02-12T04:43:11Z")

</div>

Ever find a way? I considered building a sync…
