Skip to content

Commit

Permalink
feat: TSYSTEMS-196
Browse files Browse the repository at this point in the history
fix failling tests
  • Loading branch information
Leandro13Silva13 committed Jan 28, 2025
1 parent 2fe252a commit b1cd63c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ private Jwt buildJwtWithRealmRole(String realmRole) {
headers.put("alg", "HS256"); // Signature algorithm
headers.put("typ", "JWT"); // Token type
return new Jwt(
"token", Instant.now(), Instant.now(), headers, givenClaimMapContainingRole(realmRole));
"token", Instant.now(), Instant.now().plusSeconds(1), headers, givenClaimMapContainingRole(realmRole));
}

private HashMap<String, Object> givenClaimMapContainingRole(String realmRole) {
Expand All @@ -95,4 +95,4 @@ private HashMap<String, Object> givenClaimMapContainingRole(String realmRole) {
claimMap.put("realm_access", realmAccess);
return claimMap;
}
}
}

0 comments on commit b1cd63c

Please sign in to comment.