
Kurisu
Can I add Discourse as a forum feature to any website no matter its backend language?
Hello,
Please, let’s say I have a website with user authentication made with Elixir/Phoenix, and now want to add a forum to it (using a subdomain).
Is it possible for me to install discourse on my server and make it share the same users database as the main website?
So that users authenticated through the main website will be recognized on the forum too…
Or do you think it will be easier for me to build my own forum application as a child application of my website backend?
Thanks
Marked As Solved

AstonJ
Yes that’s entirely possible!
You can even go the other way, and have Discourse manage your users and then use it as a SSO provider (what we do here with our giveaways).
I’m actually currently wondering what to do with the forum and our homepage… right now feel the quickest route is to let Discourse deal with user sign-ups because it has some cool features (such as Twitter/GH auth, log in with email, 2FA etc). Can always swap after wards…
Also Liked

OvermindDL1
That’s what I’ve done on one of my domains a long while back. I setup an OpenID Connect server and built a backend for it that uses the discourse forum as the master login database and it’s worked exceptionally well as an SSO. I only wish discourse could be an OIDC server by itself or at least if some plugin already existed so I didn’t have to build my own a while back.

Kurisu
Oh really nice. I will check the documentation and see how I can implement this too.
Popular Backend topics










Other popular topics








Latest in Questions
Latest (all)
Categories:
Popular Portals
- /elixir
- /rust
- /wasm
- /ruby
- /erlang
- /phoenix
- /keyboards
- /js
- /rails
- /python
- /security
- /go
- /swift
- /vim
- /clojure
- /java
- /haskell
- /emacs
- /svelte
- /onivim
- /typescript
- /crystal
- /c-plus-plus
- /tailwind
- /kotlin
- /gleam
- /react
- /flutter
- /elm
- /ocaml
- /vscode
- /opensuse
- /ash
- /centos
- /php
- /deepseek
- /zig
- /scala
- /html
- /debian
- /nixos
- /lisp
- /agda
- /sublime-text
- /textmate
- /react-native
- /kubuntu
- /arch-linux
- /revery
- /ubuntu
- /manjaro
- /django
- /spring
- /diversity
- /nodejs
- /lua
- /c
- /julia
- /slackware
- /neovim