SAML2 Authentication using exists SimpleSAMLphp Service Provider

You'll need the following pre-requirement:

There are a couple of related SAML plugins for Moodle. Below are the main diferences between this plugin, named as saml2_auth, and the others

The key for this plugin is that you can use your exists Service Provider (SP) without needed to exchange the metadata with the Identity Provider (IdP) for every new Moodle instances. (for instances in the same host name)

There are two other SAML plugins that can/or use SimpleSAMLphp

The following options can be set in config:

To override the authentication and login directly in Moodle (ex.: using admin account), add the saml=off parameter in the URL (ex.: https://my.moodle/login/index.php?saml=off)