SAML SSO fails when SAML response elements inherit a parent's default namespace #1925
Open
2 tasks done
Labels
bug
Something isn't working
Bug report
Describe the bug
The Supabase auth library uses the crewjam/saml library for SAML SSO support.
This library has a documented bug that prevents it from correctly propagating a default namespace applied at a parent element (such as
<Response>
) that does not use a prefix.saml:Assertion
is not found without a namespace crewjam/saml#578For example:
As a result, identity providers that return a (valid) SAML response in this format cause a Supabase SSO authentication request to fail with the following type of error:
There is an active pull request from November 2024 with a fix for this issue in the referenced library, but outside of a lone cryptography update from July 2024, the library has not seen master branch updates since October 2023.
Open PR to fix: crewjam/saml#580
A specific commercial IdAM platform impacted by this issue and relevant to an active use case is FusionAuth, which the above response sample is sourced from.
To Reproduce
Expected behavior
Supabase (via the crewjam/saml library) should interpret the valid SAML response correctly and complete the login flow.
System information
The text was updated successfully, but these errors were encountered: