From f75cb17f35e31a3125df4fdaf4666b3e086aa519 Mon Sep 17 00:00:00 2001 From: Josh Cummings Date: Tue, 6 Aug 2024 17:51:25 -0600 Subject: [PATCH] Add Missing Delegate Call Issue gh-11658 --- .../OpenSaml4AuthenticationRequestResolver.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/saml2/saml2-service-provider/src/opensaml4Main/java/org/springframework/security/saml2/provider/service/web/authentication/OpenSaml4AuthenticationRequestResolver.java b/saml2/saml2-service-provider/src/opensaml4Main/java/org/springframework/security/saml2/provider/service/web/authentication/OpenSaml4AuthenticationRequestResolver.java index 9d9cb41215..60be569e3a 100644 --- a/saml2/saml2-service-provider/src/opensaml4Main/java/org/springframework/security/saml2/provider/service/web/authentication/OpenSaml4AuthenticationRequestResolver.java +++ b/saml2/saml2-service-provider/src/opensaml4Main/java/org/springframework/security/saml2/provider/service/web/authentication/OpenSaml4AuthenticationRequestResolver.java @@ -42,11 +42,6 @@ public final class OpenSaml4AuthenticationRequestResolver implements Saml2Authen private final BaseOpenSamlAuthenticationRequestResolver delegate; - private Consumer contextConsumer = (parameters) -> { - }; - - private Clock clock = Clock.systemUTC(); - /** * Construct an {@link OpenSaml4AuthenticationRequestResolver} * @param registrations a repository for relying and asserting party configuration @@ -104,7 +99,7 @@ public final class OpenSaml4AuthenticationRequestResolver implements Saml2Authen */ public void setClock(Clock clock) { Assert.notNull(clock, "clock must not be null"); - this.clock = clock; + this.delegate.setClock(clock); } /**