Authentication: User key authentication

Maintained by Picture of Catalyst ITCatalyst IT, Picture of Dmitrii MetelkinDmitrii Metelkin, Picture of Brendan HeywoodBrendan Heywood, Picture of Marcus BoonMarcus Boon, Picture of Adam RiddellAdam Riddell
Log in to Moodle using one time user key based login URL. Auth plugin for organising simple SSO (single sign on) between moodle and your external web application.
543 sites
32 fans
Current versions available: 2

Log in to Moodle using one time user key.

Auth plugin for organising simple one way SSO(single sign on) between moodle and your external web application. The main idea is to make a web call to moodle and provide one of the possible matching fields to find required user and generate one time login URL. A user can be redirected to this URL to be log in to Moodle without typing username and password.

The plugin supports user provisioning.


Read plugin documentation.


Screenshot #0


Picture of Catalyst IT
Catalyst IT (Lead maintainer)
Picture of Dmitrii Metelkin
Dmitrii Metelkin
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Catalyst IT
    Mon, Aug 27, 2018, 8:31 AM
    Hi deva m ,
    I'm not sure what sort of support you are trying to get here, but If you have any questions about the plugin code please use github and raise a new issue with your question(s) We will try to ask all your questions if possible. Also if you are looking for a way to connect two Moodle instances without writing any code, you would probably want to have a look at MNet or LTI set up.

  • Picture of deva m
    Mon, Aug 27, 2018, 4:42 PM
    thanks dmitrii !
    as new to PHP coding, i don't know where to write the code in external web application to make a web call, can you suggest me where do I write it ?

    Best Regards
  • Picture of Dan Marsden
    Tue, Aug 28, 2018, 7:50 AM
    Hi Deva, this is the wrong place to ask for that sort of help. please create a new post in the community forums here on - Good luck!
  • Picture of Steve Maher
    Mon, May 13, 2019, 9:12 PM
    We are using auth_userkey on moodle 3.5 Linux (ubuntu) and it is working great. One issue that we are facing is that when a user on our site clicks on a link to the moodle site, the site successfully gets a token and logs in but when the user account is then created on that moodle site, "auth_forcepasswordchange" is set as a user preference which then results in an error message: "You cannot proceed without changing your password, however there is no available page for changing it.". Have you had other reports of this issue? Any recommendations on resolving ? One way to kind of hack past the issue is to edit several file on the moodle server that have "set_user_preference(‘auth_forcepasswordchange', 1, $user)" and hard code that to "set_user_preference(‘auth_forcepasswordchange', 0, $user)". I cannot find a moodle setting that turns off setting "auth_forcepasswordchange" to true in the mdl_user_preferences table.

    Ideas/recommendations would be super helpful and thank you so much in advance for any help you might be able to provide.
  • Picture of Nilesh Pathade
    Sun, May 26, 2019, 7:33 PM
    HI I am using same plugin, but after getting loginurl, I am unable to redirect.


    It's not working please help me
  • Picture of AMC Academic Moodle Cooperation
    Tue, Jun 4, 2019, 4:14 PM
    Hey Steve, have you resolved your issue or did you get any response from the developers of the plugin. We would like to use the plugin for our newest 3.6 Moodle version.
    Any recommendations on how to proceed?
    Thanks - Kasia
  • Picture of Promise Ogechi Izuagbala
    Sun, Jun 9, 2019, 8:12 AM
    Hello Team. Thanks for the wonderful plugin. I made a mistake of installing the plugin on my production server and my moodle site stopped working. As a debugging step I want to uninstall the plugin but I can find any instruction online that shows how to uninstall the plugin. Please urgent help will be appreciated.
  • Picture of Upendra M
    Mon, Jun 17, 2019, 8:09 PM
    I am not able to update user key plugin config data. during plugin installation it saves the data but next time during config data update it never update the data.
  • Picture of Marini Marini
    Tue, Jul 9, 2019, 7:43 PM
    Hi good morning,
    It is posible pass the field city or a custom field?
  • Picture of Dmitrii Metelkin
    Wed, Jul 10, 2019, 5:39 AM
    Hi Marini,
    In the current implementation it's not possible to pass the field city or a custom field. But feel free to submit a feature request in github
  • Picture of Pär Brink
    Fri, Dec 13, 2019, 10:31 PM
    We are using auth_userkey on Moodle 3.5.2+. However, our users are promted to forced change of password.
    I saw some previous comments with the same issue, but no solution.
    Is this a known issue and is there a solution for it?

  • Picture of Dmitrii Metelkin
    Mon, Dec 16, 2019, 5:59 AM
    Hi Pär Brink
    Please make sure you use the latest version of the plugin. The best way to get this looked at is to raise an issue in github Make sure provide full steps to replicate it the issue.
  • Picture of Juan Duque
    Sat, May 23, 2020, 5:17 AM
    From this plugin can you update the extra fields?
  • Picture of Catalyst IT
    Mon, May 25, 2020, 7:47 AM
    Hi Juan!
    You can't do it currently, but there is a pull request currently in progress that potentially can bring this features. See
  • Picture of Juan Duque
    Fri, May 29, 2020, 5:31 AM

    Ok, I'll be waiting for when this update is released.

    Thanks for the reply.
1 2 3
Please login to post comments