We are using Moodle 3.8 and the Microsoft 365 authentication plugin for user authentication. Our data are on the cloud. Sometimes we have issues connecting to the 365 due to internet issues.
We are going to make a local replica and local authentication using the LDAP so that if we have an internet issue, the users inside the college still can connect to Moodle.
We will use SSO to decide if we don't have an issue with 365 then the users can use 365 authentication, if we have an issue, then the authentication will happen using the LDAP
Is this option applicable in Moodle to have a customized authentication plugin that communicates with the SSO and then allows the users to log in?