Skip to content

Commit

Permalink
fix(oidc): set client ID to access token JWT (#650)
Browse files Browse the repository at this point in the history
* fix(oidc): set client ID to access token JWT

* fix test
  • Loading branch information
muhlemmer authored Sep 10, 2024
1 parent 98c1ab7 commit b555396
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/oidc/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
}
Expand Down
1 change: 1 addition & 0 deletions pkg/oidc/token_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ func TestNewAccessTokenClaims(t *testing.T) {
Subject: "hello@me.com",
Audience: Audience{"foo"},
Expiration: 12345,
ClientID: "foo",
JWTID: "900",
},
}
Expand Down

0 comments on commit b555396

Please sign in to comment.