Skip to content

Commit 0e1474e

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 0e1474e

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

core/CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
## v0.18.0
88
- **New:** Added duration utils
9-
- **Chore:** Use `jwt-bearer` grant to get a fresh token instead of `refresh_token`
109

1110
## v0.17.3
1211
- **Dependencies:** Bump `github.com/golang-jwt/jwt/v5` from `v5.2.2` to `v5.2.3`

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)