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:
parent
98c1ab755d
commit
b555396744
2 changed files with 2 additions and 0 deletions
|
@ -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,
|
||||
},
|
||||
}
|
||||
|
|
|
@ -145,6 +145,7 @@ func TestNewAccessTokenClaims(t *testing.T) {
|
|||
Subject: "hello@me.com",
|
||||
Audience: Audience{"foo"},
|
||||
Expiration: 12345,
|
||||
ClientID: "foo",
|
||||
JWTID: "900",
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue