Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: HeCAPTe 1.0.2 — Minor update available for module hecapte_captcha (1.0.2). Release: Attribution & Licensing 1.2.1 — Minor update available for module attribution (1.2.1). Release: MCP Sentinel 2.29.0 — Minor update available for module mcp_sentinel (2.29.0). Release: Audit Chain 1.10.9 — Minor update available for module audit_chain (1.10.9). Release: Menu Autopilot 1.4.7 — Minor update available for module menu_autopilot (1.4.7). Release: FileGate 1.11.3 — Minor update available for module file_gate (1.11.3). Release: Download Tracker 1.0.7 — Minor update available for module download_tracker (1.0.7). Release: Directory2Block Slideshow 1.0.8 — Minor update available for module directory2block_slideshow (1.0.8). 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.

This project enables shared user sessions between Drupal and the Moodle learning platform/course management system.

The Drupal 7 version (7.x-1.0) is still available but is not supported. The Drupal 7 and Drupal 9/10 versions of the module are very similar. However, the Drupal 7 version has some dependencies that the Drupal 9/10 version does not have, including:

  • Features
  • Services
  • Strongarm
  • Views

Requirements

The 3.0.x branch (compatible with Drupal 9/10) has been tested with Moodle 4.1.

Note: These requirements apply to the Drupal 9/10 version (3.0.x) as this is the only version that's been recently tested.

Installation

Install as you would normally install a contributed Drupal module. For further information, see Installing Drupal Modules.

Configuration

SSO can only happen between Drupal and Moodle installations that can share cookies. This means the following configurations will work:

Drupal 9/10

To configure the cookie domain, set the parameters / session.storage.options / cookie_domain value in your site's services.yml file to match the value used on your Moodle site. This value must match the value for your Moodle site.

If your sites use subdomains, the cookie_domain value should be set as follows:

cookie_domain: .example.com

If your sites use subdirectories, the cookie_domain value should be set as follows:

cookie_domain: www.example.com

Drupal 7

To configure the cookie domain, set the $cookie_domain value in your site's settings.php file to match the value used on your Moodle site. This value must match the value for your Moodle site.

If your sites use subdomains, the $cookie_domain value should be set as follows:

$cookie_domain = '.example.com';

If your sites use subdirectories, the $cookie_domain value should be set as follows:

$cookie_domain = 'www.example.com';

Moodle

Installation instructions for the cannod/moodle-drupalservices Moodle plugin can be found on the plugin's repository page.

Troubleshooting

If you experience any issues installing or configuring the module, please first check the module's issue queue. If no existing issues help you to resolve your issue, please create a new issue and tag it as a support request.

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
3
Tracked since
Jun 2024
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Release Timeline

Releases

Version Type Core Release date
3.0.0 Stable Jun 26, 2024
3.0.x-dev Dev Jun 26, 2024
3.x-dev Dev Jun 25, 2024