Skip to content

Commit 69e7704

Browse files
committed
update exp time of assertion as access token CAN'T be longer that it
Signed-off-by: Jorge Turrado <[email protected]>
1 parent 7215ab5 commit 69e7704

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/clients/key_flow.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ func (c *KeyFlow) generateSelfSignedJWT() (string, error) {
295295
"jti": uuid.New(),
296296
"aud": c.key.Credentials.Aud,
297297
"iat": jwt.NewNumericDate(time.Now()),
298-
"exp": jwt.NewNumericDate(time.Now().Add(10 * time.Minute)),
298+
"exp": jwt.NewNumericDate(time.Now().Add(1 * time.Hour)),
299299
}
300300
token := jwt.NewWithClaims(jwt.SigningMethodRS512, claims)
301301
token.Header["kid"] = c.key.Credentials.Kid

0 commit comments

Comments
 (0)