question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

samlp:LogoutResponse signature verification fails with ADFS

See original GitHub issue

Hello,

I have an issue with my ADFS infrastructure: When I try to use the Single Sign-Out functionality of the python-saml library, I get an error saying that 'Signature validation failed. Logout Response rejected'.

I don’t think it’s a certificate issue because the login ( samlp:AuthnRequest ) works well and stops working (as expected) if I set a wrong certificate.

The StatusCode I get from the server is <samlp:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Success"/> so my guess is that the issue is really on the SP side.

The binding is set to Redirect on both SP and IDP sides.

Here is a sample of a logout request/response:

<samlp:LogoutRequest ID="ONELOGIN_xyzxyz" Version="2.0" IssueInstant="2016-05-18T18:58:23Z" Destination="https://ad.corp.company.com/adfs/ls">
<saml:Issuer>https://app.sp.io/saml2/metadata/</saml:Issuer>
<saml:NameID Format="urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress">user@company.com</saml:NameID>
<samlp:SessionIndex>_xyz-xyz-xyz</samlp:SessionIndex>
</samlp:LogoutRequest>
<samlp:LogoutResponse ID="_xyz-xyz-xyz" Version="2.0" IssueInstant="2016-05-18T18:58:23.687Z" Destination="https://app.sp.io/saml2/sls/" Consent="urn:oasis:names:tc:SAML:2.0:consent:unspecified" InResponseTo="ONELOGIN_xyzxyz">
<Issuer>http://ad.corp.company.com/adfs/services/trust</Issuer>
<samlp:Status>
<samlp:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Success"/>
</samlp:Status>
</samlp:LogoutResponse>

With other query parameters:

*SAMLResponse:*fZLNasMwEIR...
*RelayState:*https://app.sp.io:8000/logout/
*Signature:*oAI7sHX6jdCio...
*SigAlg:*http://www.w3.org/2001/04/xmldsig-more#rsa-sha256

I also tried with http://www.w3.org/2000/09/xmldsig#sha1 without success. Any idea why the SLS signature verification would fail?

Thank you!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:19 (18 by maintainers)

github_iconTop GitHub Comments

1reaction
NejcZupeccommented, May 31, 2016

@m6a-UdS Great work! I have encountered the same issue. I pulled your pull request and tested it in my environment and it works 😃 👍

0reactions
pitbulkcommented, Jun 6, 2016

Great! thanks for contribute and for checking that, now you are part of the Python SAML Tookit 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

samlp:LogoutResponse signature verification fails with ADFS
Hello, I have an issue with my ADFS infrastructure: When I try to use the Single Sign-Out functionality of the python-saml library, ...
Read more >
Need to understand the flow of certificate (Failed to verify ...
Is the signature verification error occurring at ADFS or your application? The most likely cause is that the wrong certificate has been ......
Read more >
[IdP] "Signature Validation failed" error message - OutSystems
Anybody have any ideas why the below error is made "Signature validation Failed" in the Single-Sign-Out in ADFS using rsa-sha1.
Read more >
Signature validation for ADFS logout responses - Drupal
This simple patch exposes one-login/php-saml library option "retrieveParametersFromServer" in config form, and uses it in SLS. Comment, File ...
Read more >
SAML Response Assertion signature validation failed.
SAML Response Assertion signature validation failed. Hi. We was configured Azure how identity provider to GSuite accounts.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found