fix(oidc): set client ID to access token JWT (#650)

* fix(oidc): set client ID to access token JWT

* fix test
This commit is contained in:
Tim Möhlmann 2024-09-10 12:50:54 +03:00 committed by GitHub
parent 98c1ab755d
commit b555396744
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View file

@ -117,6 +117,7 @@ func NewAccessTokenClaims(issuer, subject string, audience []string, expiration
Expiration: FromTime(expiration),
IssuedAt: FromTime(now),
NotBefore: FromTime(now),
ClientID: clientID,
JWTID: jwtid,
},
}

View file

@ -145,6 +145,7 @@ func TestNewAccessTokenClaims(t *testing.T) {
Subject: "hello@me.com",
Audience: Audience{"foo"},
Expiration: 12345,
ClientID: "foo",
JWTID: "900",
},
}