diff --git a/mujina-common/src/main/java/mujina/saml/SAMLBuilder.java b/mujina-common/src/main/java/mujina/saml/SAMLBuilder.java index 526aef55..01000e52 100644 --- a/mujina-common/src/main/java/mujina/saml/SAMLBuilder.java +++ b/mujina-common/src/main/java/mujina/saml/SAMLBuilder.java @@ -103,6 +103,8 @@ public static Assertion buildAssertion(SAMLPrincipal principal, Status status, S audienceRestriction.getAudiences().add(audience); Conditions conditions = buildSAMLObject(Conditions.class, Conditions.DEFAULT_ELEMENT_NAME); + conditions.setNotBefore(new DateTime().minusMinutes(3)); + conditions.setNotOnOrAfter(new DateTime().plusMinutes(3)); conditions.getAudienceRestrictions().add(audienceRestriction); assertion.setConditions(conditions);