# Können zwei Discourse-Instanzen eine Datenbank teilen und verwenden?

**URL:** https://meta.discourse.org/t/can-two-discourse-instances-share-and-use-one-database/320974
**Category:** Support
**Created:** [9. August 2024 um 19:51 UTC](https://meta.discourse.org/t/can-two-discourse-instances-share-and-use-one-database/320974 "2024-08-09T19:51:10Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [9. August 2024 um 20:15 UTC](https://meta.discourse.org/t/can-two-discourse-instances-share-and-use-one-database/320974/2 "2024-08-09T20:15:53Z")

</div>

Dies wurde bereits oft gefragt. Bitte versuchen Sie, die Suche zu verwenden, bevor Sie neue Support-Themen posten. Danke 🙏 🙂

> [@Use the same user database and login credentials in multiple discourse instances](https://meta.discourse.org/t/use-the-same-user-database-and-login-credentials-in-multiple-discourse-instances/45584/):
>
> I know that it is possible to run multiple instances of discourse on the same server using a multisite setup. I’m wondering if it would be possible for multiple instances of discourse to make use of the same user database? So that a user could sign-up on any one of several different forums and use those same credentials to log in to all of the others. If a user’s whole profile (trust level, profile detail, pictures, etc) could be synced across each instance, this would be ideal for our use-case. …

> [@Question: Different forums same users?](https://meta.discourse.org/t/question-different-forums-same-users/133757):
>
> Would it be possible to use the same SQL and same cookies across domains? For example, having the same users for [example.com](http://example.com) and [example.org](http://example.org) but different discourse installation?

Thema zu SSO [Discourse Connect](https://meta.discourse.org/t/13045?silent=true):

> [@Use Discourse as an identity provider (SSO, DiscourseConnect)](https://meta.discourse.org/t/using-discourse-as-a-sso-provider/32974):
>
> So you want to use Discourse as an identity provider for your own web app? Great! Let’s get started. Enable [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) provider setting Under Discourse admin site settings (/admin/site\_settings) enable setting enable discourse connect provider and add a secret string to discourse connect provider secrets (used to hash SSO payloads). Implement [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) in your web app: Generate a random [nonce](https://en.wikipedia.org/wiki/Cryptographic_nonce). Let’s call this value NONCE. Save it temporarily so that you can verify it with the …

---

_[View the full topic](https://meta.discourse.org/t/can-two-discourse-instances-share-and-use-one-database/320974)._
