The saml_config.php file used to hold 3 properties: samllib, sp_source and dosinglelogout
|
{"samllib":"\/var\/www\/simplesamlphp\/lib","sp_source":"default-sp","dosinglelogout":"on"} |
But in settings.php only samllib is saved into the new file in the Moodle data dir.
|
$pluginconfig = get_config('auth_saml'); |
|
$param['samllib'] = $pluginconfig->samllib; |
|
|
|
// Save saml settings in a file. |
|
$encodedparam = json_encode($param); |
|
file_put_contents($samlconfigfile, $encodedparam); |
This leads to $samlparam->sp_source not being defined in index.php and that causes the error in the subject.
|
$as = new SimpleSAML_Auth_Simple($samlparam->sp_source); |
The saml_config.php file used to hold 3 properties: samllib, sp_source and dosinglelogout
auth/saml_config.php
Line 1 in 581955d
But in settings.php only samllib is saved into the new file in the Moodle data dir.
auth/settings.php
Lines 43 to 48 in 581955d
This leads to
$samlparam->sp_sourcenot being defined in index.php and that causes the error in the subject.auth/index.php
Line 61 in 581955d