Closed azrek closed 6 years ago
This need 3 unit tests:
I don't think we should worry about whether the plugin is enabled or not, because it's nice to be able to configure the plugin while it is off and then turn it on. But happy to adopt how all other auth plugins work in this request in core, I think this changed in 3.3 (previously the settings could not be accessed, but now they can be)
It now accepts empty, XML or URLs (with multi idp support)
Moodle version: 2017051500.10 DB: psql (PostgreSQL) 9.5.7 OS: Linux 16.04 Plugin version: 2017051800 (MOODLE_33PLUS branch)
Post update of the plugin, it insists on having a value in the field IdP metadata xml OR public xml URL (auth_saml2 | idpmetadata). The default value of blank is not accepted. It comes up with the error:
'The IdP XML isn't valid'
The problem is that the plugin is not even enabled.