Skip to content

Commit

Permalink
Merge pull request #53 from bolatov/patch-1
Browse files Browse the repository at this point in the history
Add attributes to `Conditions`
  • Loading branch information
oharsta authored Jun 10, 2019
2 parents 5724078 + 87d95e0 commit 79e1a12
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mujina-common/src/main/java/mujina/saml/SAMLBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 79e1a12

Please sign in to comment.