Set up auto login to Moodle from external site

96 Views Asked by At

We are having a external site where customer can select their preferred authentication method(SSO, username/password). Customer's can have multiple users on their account and if they already have IDP provider, they can integrate with our external site.

Now we have added Moodle and currently adding users manually. Is there a way where I can add a button/link on the site which takes to moodle and auto login to their account. As new user can be added on the external site, Can we also create new users on moodle in this way or API call?

2

There are 2 best solutions below

1
On

I'd recommend installing the SAML2 plugin

https://moodle.org/plugins/auth_saml2

New users can be created at login and it can handle multiple IDPs

It's developed and maintained by Catalyst NZ who are a big contributor to Moodle

0
On

Answering own question for how we have integrated in case anyone has same issue.

Figured out there is a plugin which allows login based on the single use token. It also helps creating the accounts for the user if it doesn't exist. Plugin Link - https://moodle.org/plugins/auth_userkey