Skip to content

Commit 7bd5786

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 e319d99 commit 7bd5786

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
@@ -12,7 +12,6 @@
1212

1313
## v0.18.0
1414
- **New:** Added duration utils
15-
- **Chore:** Use `jwt-bearer` grant to get a fresh token instead of `refresh_token`
1615

1716
## v0.17.3
1817
- **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)