Is it possible to create user accounts in Discourse, then authenticate to Drupal using those accounts? I want Discourse to be where accounts live.
While searching, I seem to only find results talking about the opposite. Using Drupal as the authentication source.
My specific situation is that I have an instance of Discourse running for family members. I’d like to set up a recipe sharing site using Drupal 8, but I’d really rather not have to get my family to sign up for yet another thing. I’m already having very little luck getting them into Discourse…
Discourse can function as an SSO provider. It would be possible to set this up with Drupal, but I’m not aware of any existing Drupal modules for it. For details about what would be required see Using Discourse as a SSO provider.
If you’re not committed to using Drupal, the Discourse WordPress plugin allows you to use Discourse as the SSO provider for a WordPress site.
What kind of authentication is that, anyway? OAuth, OpenID Connect? I feel like I should be able to tell from the description of how it works, but it just isn’t clicking.
Using the right tool for the right job is the short answer. Discourse is an amazing forum community software. Drupal, well, its forum module is really kind of sad.
Drupal is amazing at relating pieces of content together, trying to twist Discourse around to do what I can in Drupal would be insane. For example, Drupal’s Recipe module creates ingredients as their own individual entities. That means I can list ingredients I like on my profile, and then generate a list of recipes that I might like based on ingredients.
All that said, I also enjoy this kind of thing. It’s my day job, and my hobby. And, while the Discourse integration would be nice, ultimately the recipe site is mostly for myself. So it is useful even if I can’t get friends and family on it.