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

Ensure the NameID is correctly set #1319

Merged
merged 1 commit into from
Sep 4, 2024

Conversation

MKodde
Copy link
Member

@MKodde MKodde commented Sep 4, 2024

Due to the NameId juggling taking place during the Input filtering. There MUST be a point in time when we set the correct outgoing NameId value and format. And that is done in the AddIdentityAttributes filter.

During the optimization I moved the 'were done here' return statement to a block that seemed to make more sense to me. But that caused the NameId from not being set even though it was resolved.

So I moved that block back to the position where it is supposed to be.

It is meant as a guard from injustly overwriting the eduPersonTargettedId. Not for preventing the setting of the correct NameId in the subject.

Fixes: #1318

Due to the NameId juggling taking place during the Input filtering.
There MUST be a point in time when we set the correct outgoing NameId
value and format. And that is done in the AddIdentityAttributes filter.

During the optimization I moved the 'were done here' return statement to
a block that seemed to make more sense to me. But that caused the NameId
from not being set even though it was resolved.

So I moved that block back to the position where it is supposed to be.

It is meant as a guard from injustly overwriting the
eduPersonTargettedId. Not for preventing the setting of the correct
NameId in the subject.
@MKodde MKodde requested a review from johanib September 4, 2024 07:19
@MKodde MKodde merged commit 4828d21 into main Sep 4, 2024
2 checks passed
@MKodde MKodde deleted the bugfix/unjust-override-of-nameidformat branch September 4, 2024 12:22
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

Successfully merging this pull request may close these issues.

NameID unspecified released with format persistent
2 participants