-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Add NameIdFormat support to RelyingPartyRegistration #9115
Comments
Thanks for reaching out, @Gayathri92. Would you please add some more detail about your use case? |
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue. |
@jzheaux I saw your mention, I will try to submit a PR for this |
We have some customers where specifying NameIdFormat is mandated by their IDP NameIdFormat is a part of NameIDPolicy which support others attributes
With some IDP, or the way it is configured, some Format value mandates the SPNameQualifier attributes to be set as well. (We saw that most of the time with PingFeredarate but with some others as well). So in the PR instead of adding support for Format only, I also added support to configure the whole NameIDPolicy, in order to ease interop with some IDP use case |
Good points, @amergey. I think I created some confusion by not first updating the description in this ticket. It's updated now. The reason I'd like to leave changes to Would you be able to update the PR to match the issue's description? |
@jzheaux Do you mean updating this PR by keeping only nameid format ? (so remove other part of nameid policy but keeping related work on metadata ?) . Also correct me if I am wrong but it seems to me NameID format is defined at SP level, there is no IDP metadatas related to NameID format. |
Sorry for the delay, @amergey, I was on holiday.
Yes, since that's the only one that appears in metadata.
I was drawing my thoughts from line 658 of the spec in the
which applies to both That said, I think it would be fine to only add it to the relying party for now. We can always add it to |
Sorry I was not clear enough, when I said "NameID format is defined at SP level, there is no IDP metadatas related to NameID format." I meant in OpenSAML implementation so it would be hard to support it on IDP anyway |
Hello all! Thank you for the discussion so far. I have an interest in this issue as well. Currently if a Relying Party wishes to request the NameID in a specific format the suggested way in the docs is to modify the AuthnRequest as specified here https://docs.spring.io/spring-security/site/docs/current/reference/html5/#servlet-saml2login-opensaml-customization It would be nice if the I imagine this would be used as follows:
|
Also it would be good to access it by Saml2AuthenticationRequestContext.getRelyingPartyRegistration().getAssertingPartyDetails().** |
Unfortunately the link @PHameete shared seems to have been removed from the Spring docs, but an older version is up at https://docs.spring.io/spring-security/site/docs/5.5.2/reference/html5/#servlet-saml2login-opensaml-customization |
Thank you @jzheaux! |
RelyingPartyRegistration
contains SAML 2.0 Metadata for both the relying party and its associated asserting party.It would be nice to include
NameIDFormat
support in bothRelyingPartyRegistration
andRelyingPartyRegistration.AssertingPartyDetails
. The application could then communicate a set of preferred formats to the asserting party (with #9297, for example) as well as lookup the asserting party's preferred formats.The text was updated successfully, but these errors were encountered: