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

Saml2 logout error message rising from AssertionConsumerService #818

Open
paulortman opened this issue May 21, 2024 · 2 comments
Open

Saml2 logout error message rising from AssertionConsumerService #818

paulortman opened this issue May 21, 2024 · 2 comments

Comments

@paulortman
Copy link

When explicitly logging out an error message is generated:

SAML2 exception: BADREQUEST('%REASON%' => 'Invalid message received at AssertionConsumerService endpoint.')
Debug info: #0 [dirroot]/auth/saml2/sp/saml2-acs.php(37): SimpleSAML\Module\saml\Controller\ServiceProvider->assertionConsumerService()
#1 {main}
Error code: exception
Stack trace:
line 40 of /auth/saml2/sp/saml2-acs.php: saml2_exception thrown

The account appears to be logged out, but the error message is a bit unsettling.

Running:
Moodle 4.4+ (Build: 20240516)
PHP 8.3.7
auth_saml2 2024051700

@gturetchi
Copy link

When explicitly logging out an error message is generated:

SAML2 exception: BADREQUEST('%REASON%' => 'Invalid message received at AssertionConsumerService endpoint.')
Debug info: #0 [dirroot]/auth/saml2/sp/saml2-acs.php(37): SimpleSAML\Module\saml\Controller\ServiceProvider->assertionConsumerService()
#1 {main}
Error code: exception
Stack trace:
line 40 of /auth/saml2/sp/saml2-acs.php: saml2_exception thrown

The account appears to be logged out, but the error message is a bit unsettling.

Running: Moodle 4.4+ (Build: 20240516) PHP 8.3.7 auth_saml2 2024051700

You managed to run this plugin for latest moodle ?
After I recive the saml response and redirected to auth/saml2/login.php?wants&idp=.... I recive 500, internal server error

@jcmoodle
Copy link

I am receiving a similar error on logout and a different error on login.

Running:
Moodle 4.1.14
PHP 7.4.33
auth_saml2 (2024090900)

Logout:

SAML2 exception: BADREQUEST('%REASON%' => 'Invalid message received at AssertionConsumerService endpoint.')

More information about this error

Debug info: #0 [dirroot]/auth/saml2/sp/saml2-acs.php(37): SimpleSAML\Module\saml\Controller\ServiceProvider->assertionConsumerService('moodle.domain.com')
#1 {main}
Error code: exception×Dismiss this notification
Stack trace:
line 40 of /auth/saml2/sp/saml2-acs.php: saml2_exception thrown

Login:

SAML2 exception: ACSPARAMS

More information about this error

Debug info: #0 [dirroot]/auth/saml2/sp/saml2-acs.php(37): SimpleSAML\Module\saml\Controller\ServiceProvider->assertionConsumerService('moodle.domain.com')
#1 {main}
Error code: exception×Dismiss this notification
Stack trace:
line 40 of /auth/saml2/sp/saml2-acs.php: saml2_exception thrown

In our case the account does login and logout, but the errors are still present.

Please advise.

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

3 participants