Skip to content

Commit 5c27bd4

Browse files
committed
fix: restore AccessToken, Audience, Scopes to buildHttpClientV2 OAuth config
Commit 2b88eb2 (2026-03-18) accidentally stripped AccessToken, Audience, and Scopes from the CommandConfigOauth struct literal in buildHttpClientV2 in both v1/client.go and v2/client.go. This broke pre-fetched access_token authentication mode where users supply only hostname + access_token without client_id/client_secret/token_url. Restore all three fields so the auth client receives the caller-provided token, audience, and scopes.
1 parent af6340b commit 5c27bd4

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

v24/api/keyfactor/v1/client.go

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

v24/api/keyfactor/v2/client.go

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)