From 88c1475a3bb8489abf39dd88fd5f9dbec74db47c Mon Sep 17 00:00:00 2001 From: Josh Cummings Date: Tue, 30 Mar 2021 16:44:00 -0600 Subject: [PATCH] Polish OpenSAML 4 support Issue gh-9095 --- .../authentication/OpenSaml4AuthenticationProvider.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/saml2/saml2-service-provider/opensaml4/src/main/java/org/springframework/security/saml2/provider/service/authentication/OpenSaml4AuthenticationProvider.java b/saml2/saml2-service-provider/opensaml4/src/main/java/org/springframework/security/saml2/provider/service/authentication/OpenSaml4AuthenticationProvider.java index f66dbe8dc0..ef148ba6b7 100644 --- a/saml2/saml2-service-provider/opensaml4/src/main/java/org/springframework/security/saml2/provider/service/authentication/OpenSaml4AuthenticationProvider.java +++ b/saml2/saml2-service-provider/opensaml4/src/main/java/org/springframework/security/saml2/provider/service/authentication/OpenSaml4AuthenticationProvider.java @@ -334,8 +334,8 @@ public final class OpenSaml4AuthenticationProvider implements AuthenticationProv return createAssertionValidator(Saml2ErrorCodes.INVALID_ASSERTION, (assertionToken) -> SAML20AssertionValidators.attributeValidator, - (assertionToken) -> createValidationContext(assertionToken, (params) -> params - .put(SAML2AssertionValidationParameters.CLOCK_SKEW, Duration.ofMinutes(5).toMillis()))); + (assertionToken) -> createValidationContext(assertionToken, + (params) -> params.put(SAML2AssertionValidationParameters.CLOCK_SKEW, Duration.ofMinutes(5)))); } /**