The discussion explores whether Discourse can serve as an authentication source for Drupal, allowing users to log in to a Drupal 8 recipe site using their Discourse accounts. jerrac seeks to avoid requiring family members to create another account, but finds limited resources on using Discourse as an SSO provider for Drupal. simon confirms it’s possible via Discourse’s SSO mechanism, though no existing Drupal modules exist, and directs to documentation on setting up SSO. Remah suggests simplifying by using either Discourse or Drupal alone, but jerrac defends the use of Drupal for its content management strengths, especially with the Recipe module, and acknowledges the integration effort as a personal project. simon clarifies the SSO method is Discourse’s own implementation, not standard OAuth or OpenID Connect, and notes the WordPress plugin’s SSO client as a reference, encouraging contributions to Drupal integration.
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 Use Discourse as an identity provider (SSO, DiscourseConnect).
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.
Why create a dependency that you may not need for a small number of users that may not use either? Two very different interfaces is a further barrier to their participation.
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.