Skip to content

Commit 7d6b52e

Browse files
Copilotvharseko
andauthored
Fix SLO sending stale transient NameID when SP re-authenticates within same IdP session (#984)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: vharseko <6818498+vharseko@users.noreply.github.com> Co-authored-by: Valery Kharseko <vharseko@3a-systems.ru>
1 parent 50f325b commit 7d6b52e

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

  • openam-federation/openam-federation-library/src/main/java/com/sun/identity/saml2/profile

openam-federation/openam-federation-library/src/main/java/com/sun/identity/saml2/profile/IDPSSOUtil.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
*
2727
* Portions Copyrighted 2010-2016 ForgeRock AS.
2828
* Portions Copyrighted 2013 Nomura Research Institute, Ltd
29-
* Portions Copyrighted 2025 3A Systems LLC.
29+
* Portions Copyrighted 2025-2026 3A Systems LLC.
3030
* Portions Copyrighted 2025 OSSTech Corporation
3131
*/
3232

@@ -1031,9 +1031,10 @@ private static Assertion getAssertion(
10311031
id = spEntityID;
10321032
}
10331033
boolean found = false;
1034-
for (NameIDandSPpair nameIDandSPpair : list) {
1035-
if (nameIDandSPpair.getSPEntityID().equals(id)) {
1034+
for (int i = 0; i < list.size(); i++) {
1035+
if (list.get(i).getSPEntityID().equals(id)) {
10361036
found = true;
1037+
list.set(i, pair);
10371038
break;
10381039
}
10391040
}

0 commit comments

Comments
 (0)