Skip to content

Moodle SAML module:Error with authentication source '': Unknown authentication source. #20

@erazorbg

Description

@erazorbg

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.

auth/settings.php

Lines 43 to 48 in 581955d

$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.

auth/index.php

Line 61 in 581955d

$as = new SimpleSAML_Auth_Simple($samlparam->sp_source);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions