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); } /**