Skip to content
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

Can not view or download Service Provider Metadata #842

Open
DaS-hpolbb opened this issue Nov 7, 2024 · 0 comments
Open

Can not view or download Service Provider Metadata #842

DaS-hpolbb opened this issue Nov 7, 2024 · 0 comments

Comments

@DaS-hpolbb
Copy link

What happened?

Our Moodle Version is 4.4.3
SAML2 auth_saml2 version 2024071101

When trying to display the service provider metadata (View Service Provider Metadata) we get the following error:

Website Administration > plugins (authentication) > SAML2
URL: https://moodle.example.de/auth/saml2/sp/metadata.php

ERROR: authsources['moodle.example.de']: Could not retrieve the required option 'description'.

Please provide as many of the following as applies:

  • stacktrace of the error
Stack trace: 
line 363 of /auth/saml2/.extlib/simplesamlphp/vendor/simplesamlphp/assert/src/Assert.php: SimpleSAML\Assert\AssertionFailedException thrown
line 381 of /auth/saml2/.extlib/simplesamlphp/src/SimpleSAML/Configuration.php: call to SimpleSAML\Assert\Assert::__callStatic()
line 900 of /auth/saml2/.extlib/simplesamlphp/src/SimpleSAML/Configuration.php: call to SimpleSAML\Configuration->getValue()
line 161 of /auth/saml2/locallib.php: call to SimpleSAML\Configuration->getArray()
line 51 of /auth/saml2/sp/metadata.php: call to auth_saml2_get_sp_metadata()
  • a dump of the error log with both moodle debugging on full and saml debugging on as well
    NGINX error.log
2024/11/07 13:15:44 [error] 973#973: *6597 FastCGI sent in stderr: "PHP message: Default exception handler: Fehler: authsources['moodle.example.de']: Could not retrieve the required option 'description'. Debug:
Error code: generalexceptionmessage
* line 363 of /auth/saml2/.extlib/simplesamlphp/vendor/simplesamlphp/assert/src/Assert.php: SimpleSAML\Assert\AssertionFailedException thrown
* line 381 of /auth/saml2/.extlib/simplesamlphp/src/SimpleSAML/Configuration.php: call to SimpleSAML\Assert\Assert::__callStatic()
* line 900 of /auth/saml2/.extlib/simplesamlphp/src/SimpleSAML/Configuration.php: call to SimpleSAML\Configuration->getValue()
* line 161 of /auth/saml2/locallib.php: call to SimpleSAML\Configuration->getArray()
* line 51 of /auth/saml2/sp/metadata.php: call to auth_saml2_get_sp_metadata()" while reading response header from upstream, client: x.x.x.x, server: moodle.example.de, request: "GET /auth/saml2/sp/metadata.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9081", host: "moodle.example.de", referrer: "https://moodle.example.de/admin/settings.php?section=authsettingsaml2"

The attempt to download the service provider metadata also ends in an error:

https://moodle.example.com/auth/saml2/sp/metadata.php?download=1

HTTP ERROR 404 > ERR_INVALID_RESPONSE

What you expected:

That we can see the service provider metadata.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant