feat: make oauth access tokens RFC 9068 compliant

This commit is contained in:
Elias Schneider
2026-08-02 15:59:21 +02:00
parent b08ac7bf7d
commit 7c55bdf115
10 changed files with 70 additions and 24 deletions
@@ -39,6 +39,7 @@ func isReservedClaim(key string) bool {
"acr",
"amr",
"azp",
"client_id",
"nbf",
"jti":
return true
+1 -1
View File
@@ -864,7 +864,7 @@ func (s *TestService) SignAccessToken(ctx context.Context, userID, clientID stri
keyGetter := func(context.Context) (interface{}, error) {
return oidc.SigningKeyFromSigner(s.jwtService)
}
strategy := compose.NewOAuth2JWTStrategy(keyGetter, coreStrategy, fositeConfig)
strategy := oidc.NewAccessTokenStrategy(compose.NewOAuth2RFC9068JWTStrategy(keyGetter, coreStrategy, fositeConfig), common.EnvConfig.AppURL)
expiresAt := time.Now().UTC().Add(AccessTokenDuration)
if expired {