diff options
Diffstat (limited to 'id/server')
2 files changed, 2 insertions, 2 deletions
diff --git a/id/server/stork2-saml-engine/src/main/java/eu/stork/peps/auth/engine/core/validator/CustomAttributeQueryValidator.java b/id/server/stork2-saml-engine/src/main/java/eu/stork/peps/auth/engine/core/validator/CustomAttributeQueryValidator.java index c602ad38a..4fce4df3f 100644 --- a/id/server/stork2-saml-engine/src/main/java/eu/stork/peps/auth/engine/core/validator/CustomAttributeQueryValidator.java +++ b/id/server/stork2-saml-engine/src/main/java/eu/stork/peps/auth/engine/core/validator/CustomAttributeQueryValidator.java @@ -62,7 +62,7 @@ public class CustomAttributeQueryValidator implements Validator<CustomAttributeQ * @throws ValidationException the validation exception */ protected void validateTime(CustomAttributeQuery query) throws ValidationException { - if (query.getIssueInstant().isAfterNow()) + if (query.getIssueInstant().minusMinutes(5).isAfterNow()) throw new ValidationException("Issue time is in the futue"); } diff --git a/id/server/stork2-saml-engine/src/main/java/eu/stork/peps/auth/engine/core/validator/MultipleAssertionResponseValidator.java b/id/server/stork2-saml-engine/src/main/java/eu/stork/peps/auth/engine/core/validator/MultipleAssertionResponseValidator.java index 72639c8ee..7e1242a88 100644 --- a/id/server/stork2-saml-engine/src/main/java/eu/stork/peps/auth/engine/core/validator/MultipleAssertionResponseValidator.java +++ b/id/server/stork2-saml-engine/src/main/java/eu/stork/peps/auth/engine/core/validator/MultipleAssertionResponseValidator.java @@ -63,7 +63,7 @@ public class MultipleAssertionResponseValidator implements Validator<Response> { * @throws ValidationException the validation exception */ protected void validateTime(Response response) throws ValidationException { - if (response.getIssueInstant().isAfterNow()) + if (response.getIssueInstant().minusMinutes(5).isAfterNow()) throw new ValidationException("Issue time is in the futue"); } |