Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Moodle SSO

Security covered Maintenance fixes only 39 sites

This module allows users to share sessions between Drupal and Moodle. It enables a single login for both platforms, providing a seamless user experience.

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.

Drupal 9–10 · not 11 PHP >=8.1

Ask your assistant about Moodle SSO

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

  • rest Drupal core
  • user Drupal core

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 PHP Release date
3.0.0 Stable 9–10 PHP >=8.1 Jun 26, 2024
3.0.x-dev Dev 9–10 PHP >=8.1 Jun 26, 2024
3.x-dev Dev 9–10 PHP >=8.1 Jun 25, 2024