Drupal Services

Authentication ::: auth_drupalservices
Maintained by chris porter
Provides session based SSO (Single Sign On) service between Moodle and Drupal. As well as user synchronization capability to import and update users from the Drupal user database. This work is based off the original work of Scott Schaffter and Arsham Skrenes and their module from moodle 1.9 https://moodle.org/mod/data/view.php?d=13&rid=4240&filter=1
Latest release:
48 sites
7 downloads
12 fans
Current versions available: 1

Provides session based SSO (Single Sign On) service between Moodle and Drupal. As well as user synchronization capability to import and update users from the Drupal user database. This work is based off the original work of Scott Schaffter and Arsham Skrenes and their module from moodle 1.9

https://moodle.org/mod/data/view.php?d=13&rid=4240&filter=1



Contributors

chris porter (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Şərhləri göstər
  • chris porter
    Thu, 11 Dec 2014, 6:07 AM
    Sweet! thanks guys. re sync_users() yeah thats for some old cohort sync stuff that is being refactored / removed right now. It's sort of in there more as a reminder/ prompt for the other contributors to jump on.
  • Ade Oduye
    Tue, 11 Aug 2015, 6:38 AM
    Hey guys, I hope someone can help me.

    Using this plugin, I've followed this tutorial at https://github.com/cannod/moodle-drupalservices/wiki.

    It all seems to work except that moodle loads to the edit-profile page expecting firstname, lastname etc input from the user who just logged in to drupal.

    I explain it with images at http://stackoverflow.com/questions/31895966/moodle-drupal-sso.

    Please help. Desperation levels steadily increasing.
  • John Anderson
    Fri, 14 Aug 2015, 10:21 PM
    Hi, is there a version for 2.9 in the works? Or is there a way I could edit the version to get it installed for 2.9?
  • Benjamin Young
    Fri, 15 Jan 2016, 6:07 AM
    I did a test installing the plugin on Moodle version 3.0.1 running PHP 7 and after the install completed the site just stalls. Sorry I was not able to capture more information about the error with debugging as I had to remove it to get the site running again. Hope this information helps to bring the plugin up to Moodle version 3.0.x.
  • Max Paultre
    Fri, 11 Mar 2016, 8:13 PM
    I also installed the plugin for Moodle 3.0 on the same server as a OpenAtrium 2 on Drupal 7 and having some trouble getting the SSO to work properly. SSO is an integral feature in our setup, has anyone got it working with Moodle 3 and Drupal 7? Should we downgrade to an older version of Moodle?
  • Aaron Bookvich
    Thu, 3 Nov 2016, 11:29 PM
    Is there a way to get this plugin to work with Moodle 3.1?
  • Amruta Jamale
    Wed, 7 Mar 2018, 7:38 PM
    Hi Chris,

    Is there any upgraded version of drupal services which will work on moodle 3.2?
    I want to integrate moodle 3.2 with drupal 7.0, but didn't find any upgraded plugin.
    So can you please guide me to achieve this integration. Is there any other way to integrate instead of drupal services plugin?
    Currently I am being able to see the moodle course list in drupal but when the student clicks on the course he must login to see the course content, whereas I want to see the course directly(SSO).
  • chris porter
    Wed, 7 Mar 2018, 10:32 PM
    @Amruta Jamale There is. Checkout our github repository for the latest version(s) and file any issues there!
  • Zigma Zig
    Mon, 18 Jun 2018, 2:12 PM
    I managed to make a fork of the code and fix a php 7.1 issue and made it work in Drupal 7 and moodle 3.2
    https://github.com/ZigmaZigmax/moodle-drupalservices

    to make the login and logout "in-sync" when drupal login happens,

    1.) I simply wrote an JavaScript AJAX in drupal to invoke "http://localhost/moodle/my/" , this made the session auto initiate
    2.) I simply wrote another JavaScript AJAX in drupal to invoke POST to "http://localhost/moodle/login/logout.php?sesskey="
    3.) I modified the moodle logout URL to drupal logout url "http://localhost/user/logout" which will auto trigger the AJAX
    4.) I have disabled the normal login authentication method in moodle so that no one can register or do explicit authentication with moodle.

    Then it works
  • chris porter
    Tue, 26 Jun 2018, 12:16 AM
    @Zigma Zig, Thanks for contributing! If possible, lets try to avoid promoting forks though. It would be great if this issue could be opened in the github system and we coordinate how to make this work. FWIW, this sounds a lot like the functionality in the 3.x line of the module.
  • Jack Few
    Sat, 19 Oct 2019, 4:47 PM
    Hello, I couldn't get this to work between Moodle 3.7 and Drupal 8. Please advise!
  • Peter G
    Mon, 23 Mar 2020, 7:06 PM
    Any ideas about how to uninstall this plugin? It doesn't appear to implement the standard moodle process (no uninstall option on the Moodle plugins page), and simply deleting it produces a slew of errors.
  • Charlie Villa
    Thu, 22 Apr 2021, 1:47 AM
    Hi Chris.

    What are your plans for future updates. At the moment the drupal plugin and moodle are working fine. However, I don't know if these will work for moodle v4 and drupal v8/9.

    We currently have a very important sites and this plugin is a critical piece for us.
  • Charlie Villa
    Sat, 24 Apr 2021, 12:19 AM
    Hi @Jack Few, Did you find a solution? I'm planning to update to Drupal 8/9
  • chris porter
    Sat, 24 Apr 2021, 12:33 PM
    Hi Charlie, we do have a corresponding D8 version that should be working (big thanks to a company that hired me to build this upgrade!). It's important that you pair that with the right auth_drupalservices version too. you can see that information in the drupal plugin's release notes: https://www.drupal.org/project/moodle_sso/releases/8.x-2.x-dev

    I can do my best to help you get this running (and am happy to help!), but fair warning, I don't do anything with moodle anymore, so at this point I'm really just in maintenance mode for updating this from here on out.
1 2
Please login to post comments