From 7e3bf9662cd6829982f3198d3049f4012df17395 Mon Sep 17 00:00:00 2001 From: Josh Cummings <3627351+jzheaux@users.noreply.github.com> Date: Sat, 30 Aug 2025 10:00:24 -0600 Subject: [PATCH 1/2] Polish InteractiveAuthenticationSuccessEvent Sample The sample better matches a value that would be used in the constructor Issue gh-16276 --- .../security/SerializationSamples.java | 3 ++- ...ractiveAuthenticationSuccessEvent.serialized | Bin 414 -> 434 bytes 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config/src/test/java/org/springframework/security/SerializationSamples.java b/config/src/test/java/org/springframework/security/SerializationSamples.java index 223624b166..6a4061fce1 100644 --- a/config/src/test/java/org/springframework/security/SerializationSamples.java +++ b/config/src/test/java/org/springframework/security/SerializationSamples.java @@ -182,6 +182,7 @@ import org.springframework.security.saml2.provider.service.registration.OpenSaml import org.springframework.security.saml2.provider.service.registration.RelyingPartyRegistration; import org.springframework.security.saml2.provider.service.registration.TestRelyingPartyRegistrations; import org.springframework.security.web.PortResolverImpl; +import org.springframework.security.web.authentication.AuthenticationFilter; import org.springframework.security.web.authentication.WebAuthenticationDetails; import org.springframework.security.web.authentication.preauth.PreAuthenticatedAuthenticationToken; import org.springframework.security.web.authentication.preauth.PreAuthenticatedCredentialsNotFoundException; @@ -442,7 +443,7 @@ final class SerializationSamples { generatorByClassName.put(AuthenticationSuccessEvent.class, (r) -> new AuthenticationSuccessEvent(authentication)); generatorByClassName.put(InteractiveAuthenticationSuccessEvent.class, - (r) -> new InteractiveAuthenticationSuccessEvent(authentication, Authentication.class)); + (r) -> new InteractiveAuthenticationSuccessEvent(authentication, AuthenticationFilter.class)); generatorByClassName.put(LogoutSuccessEvent.class, (r) -> new LogoutSuccessEvent(authentication)); generatorByClassName.put(JaasAuthenticationFailedEvent.class, (r) -> new JaasAuthenticationFailedEvent(authentication, new RuntimeException("message"))); diff --git a/config/src/test/resources/serialized/6.4.x/org.springframework.security.authentication.event.InteractiveAuthenticationSuccessEvent.serialized b/config/src/test/resources/serialized/6.4.x/org.springframework.security.authentication.event.InteractiveAuthenticationSuccessEvent.serialized index 49143cf81885e7b75fc7e83f06b7a6961f800163..fe43f04666616c2d7a1090093ff7d6e9dcbca955 100644 GIT binary patch delta 74 zcmbQoyoq^31S98+- Date: Tue, 2 Sep 2025 14:14:10 -0600 Subject: [PATCH 2/2] Replace InteractiveAuthenticationSuccessEvent 6.5.x Sample Given that 7e3bf9662cd6829982f3198d3049f4012df17395 changes the InteractiveAuthenticationSuccessEvent serialization sample, this commit syncs up the 6.5.x version to match. Issue gh-16276 --- ...ractiveAuthenticationSuccessEvent.serialized | Bin 414 -> 434 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/config/src/test/resources/serialized/6.5.x/org.springframework.security.authentication.event.InteractiveAuthenticationSuccessEvent.serialized b/config/src/test/resources/serialized/6.5.x/org.springframework.security.authentication.event.InteractiveAuthenticationSuccessEvent.serialized index 945c17dd9916a57f8bbfdd367d8cc7a1453defa4..0858afbd7c870a035d202e42f68ee3becad5a46d 100644 GIT binary patch delta 74 zcmbQoyoq^31S9869=>luWkn1wlM@+bP0CY~^b$);GE(zOGLsWaGV}BF98tJ#nK>n? KMGOc~Q2+qCFc)3` delta 54 zcmdnQJdb%p1S99PMIrV}%ZeBbCMPn=DkSF@rRq7BmSm*nm1HI-mSpDVof5zOWZv|k KawZ0biUI%`qZC2_