Skip to content

Commit

Permalink
Make it reasonable to provide time for expiration
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Crawford <[email protected]>
  • Loading branch information
stephen-crawford committed Oct 17, 2023
1 parent dd63559 commit ca57018
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class OnBehalfOfClaims {
* Constructor for OnBehalfOfClaims
* @param aud the Audience for the token
* @param subject the subject of the token
* @param expiration the expiration time in seconds for the token
* @param expiration the length of time in seconds the token is valid
* @param not_before the not_before time in seconds for the token
* @param issued_at the issued_at time in seconds for the token
*/
Expand Down Expand Up @@ -62,7 +62,7 @@ public OnBehalfOfClaims(String aud, String subject, Long expiration) {
* @param subject the subject of the token
*/
public OnBehalfOfClaims(String aud, String subject) {
this(aud, subject, System.currentTimeMillis() / 1000 + 300);
this(aud, subject, 300L);
}

public String getAudience() {
Expand Down

0 comments on commit ca57018

Please sign in to comment.