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

SAML federation bug: First occurence of NameID is always chosen #263

Open
MichaelTran262 opened this issue Feb 17, 2023 · 0 comments
Open

Comments

@MichaelTran262
Copy link

Description

When an Identity Provider has multiple NameID formats available, for example:

<ns0:NameIDFormat>urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified</ns0:NameIDFormat>
<ns0:NameIDFormat>urn:oasis:names:tc:SAML:2.0:nameid-format:transient</ns0:NameIDFormat>
<ns0:NameIDFormat>urn:oasis:names:tc:SAML:2.0:nameid-format:persistent</ns0:NameIDFormat>

And we configure SAML federation with NameID Policy Format to Persistent, it will take the Unpsecified option, because it is the first one.


If Transient would be first and we chose Persistent

<ns0:NameIDFormat>urn:oasis:names:tc:SAML:2.0:nameid-format:transient</ns0:NameIDFormat>
<ns0:NameIDFormat>urn:oasis:names:tc:SAML:2.0:nameid-format:persistent</ns0:NameIDFormat>

Then Keycloak would throw an error:
Can not have Transient NameID Policy Format together with SUBJECT Principal Type
And the IDP would not have been added even if it has Persistent as a second option.

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