-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Moodle SAML module:Error with authentication source '': Unknown authentication source. #20
Comments
I'm also experiencing this issue. While I'm not familiar enough yet with the plugin to diagnose it as erazorbg did, I found that hard-coding my sp_source in index.php resolved the issue, so it does appear as though that value isn't available. |
@chriss-ama Hello, I'm trying to bypass this bug like you did, would you mind sharing how you did it exactly ? I tried a few things into index.php without much success, the best I can get is "Error with authentication source '0': Unknown authentication source." Thank you |
This fixes issue moodle-saml#20
Checkout #24 for the fix I used, I hope it helps. |
Hi Paul,
In my implementation, I edited line 61 of index.php. This line looks to be looking for the sp_source attribute of the $samlparam object, but it seems that value is never set.
That value is supposed to correspond to the value of the SimpleSAMLphp SP source field of the module’s configuration page within Moodle.
[cid:[email protected]]
I modified line 61 of index.php to hard-code that value.
[cid:[email protected]]
Of course – I hope this little bit of info will help!
From: paul <[email protected]>
Sent: Wednesday, September 25, 2019 9:45 AM
To: moodle-saml/auth <[email protected]>
Cc: Chris Savage <[email protected]>; Mention <[email protected]>
Subject: Re: [moodle-saml/auth] Moodle SAML module:Error with authentication source '': Unknown authentication source. (#20)
@chriss-ama<https://github.com/chriss-ama> Hello,
I'm trying to bypass this bug like you did, would you mind sharing how you did it exactly ? I tried a few things into index.php without much success, the best I can get is "Error with authentication source '0': Unknown authentication source."
Thank you
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#20?email_source=notifications&email_token=ANADB6IQ3HA5PH6YEKR2H2TQLNTODA5CNFSM4HYMTOA2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7R6UWA#issuecomment-535030360>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ANADB6L4HJ4P54AE5P6PIUDQLNTODANCNFSM4HYMTOAQ>.
|
@chriss-ama thank you but your images didn't reach use, would you mind sharing a diff or the complete line ? thanks |
@erazorbg thank you for your commit, but in my case that didn't solve the problem, moodle 3.5 & 3.7, after modifying the file to add the 2 lines, restart apache, the bug is still present. something else I need to do ? |
@pcurie The code is called when you save the settings. You might need to go to the plugin settings page and re-save the settings. This should re-create the saml_config.php file with the proper contents. |
That was it thank you |
Hi Paul,
So sorry I missed this while I was away. It looks like you were able to get the information you were looking for – is there anything else I can help you with?
…-Chris
From: paul <[email protected]>
Sent: Thursday, October 3, 2019 7:58 AM
To: moodle-saml/auth <[email protected]>
Cc: Chris Savage <[email protected]>; Mention <[email protected]>
Subject: Re: [moodle-saml/auth] Moodle SAML module:Error with authentication source '': Unknown authentication source. (#20)
@pcurie<https://github.com/pcurie> The code is called when you save the settings. You might need to go to the plugin settings page and re-save the settings. This should re-create the saml_config.php file with the proper contents.
That was it thank you
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#20?email_source=notifications&email_token=ANADB6LEIVVOBBH4K2XAHG3QMXM43A5CNFSM4HYMTOA2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAH6V6A#issuecomment-537914104>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ANADB6OXLUFYYLSPXXY22M3QMXM43ANCNFSM4HYMTOAQ>.
|
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_source
not being defined in index.php and that causes the error in the subject.auth/index.php
Line 61 in 581955d
The text was updated successfully, but these errors were encountered: