Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Release: ServiceM8 Webform Integration 1.2.1 — Minor update available for module servicem8_webform (1.2.1). Release: PostfixAdmin 1.0.0 — Initial release available for module postfix_admin (1.0.0)! Release: ip_analyser 1.0.3 — Minor update available for module ip_analyser (1.0.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

Discourse is an open source Internet forum software application built by the team behind the Stack Exchange and Stack Overflow networks.

This module provides a Single Sign On integration for a Discourse forum. It means that users that are logged in to your Drupal site are automatically logged in to your Discourse site/forum when they access it. If the user is not logged in to your Drupal site (s)he will redirected to Drupal login page. After successfully logging in the automatic authentication and redirection to Discourse site is performed.

Features

  • SSO (Single Sign On) integration for Discourse forum software with your Drupal site. Drupal users are automatically logged in the Discourse forum when they are logged in to your Drupal site.
  • Provides "Discourse forum link" block with link to your Discourse site/forum (the link is in format: "[discourse url]/session/sso" so it causes automatic authentication if needed).

Requirements

  • A running instance of a Discourse forum.
  • Configuration of SSO settings (one checkbox and two text fields) in the Discourse admin section.

Installation

  • Download and enable this module.
  • Set the Discourse site/forum url and SSO secret (will be used for safe communication, the same must be set in Discourse site/forum administration) at /admin/config/services/discourse-sso .
  • Log into the Discourse site/forum as an admin and enable SSO, set the SSO url (sso_url) and SSO secret (sso_secret) according to Official Single-Sign-On for Discourse guide, all necessary instructions and illustration images are present there.
    sso_url: the offsite URL users will be sent to when attempting to log on.
    sso_secret: a secret string used to hash SSO payloads. Ensures payloads are authentic.
  • Move the "Discourse forum link" block to some region or create your own link to Discourse site/forum. If the link is in format: "[discourse url]/session/sso" then it will automatically auto-login the user or redirect them to the Drupal login page. [The link is of course just OPTIONAL.]
  • Your Single Sign On authentication integration between Discourse and Drupal should be configured and functional now.

Discourse version

Tested with Discourse Version: 1.9.0
Drupal 8 Version tested with Discourse 2.2.0-beta2

Discourse Sync

The Drupal 8 version includes a submodule for synchronizing Drupal user roles to Discourse.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Mar 2023
Latest release
3 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core Release date
2.0.0-rc7 Pre-release Mar 1, 2023