Skip to content

Commit 4d3657d

Browse files
committed
feat: add logging to capture when oauth token source is instantiated
Signed-off-by: Matthew H. Irby <matt.irby@keyfactor.com>
1 parent a56d1fd commit 4d3657d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

auth_providers/auth_oauth.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ func (b *CommandConfigOauth) GetHttpClient() (*http.Client, error) {
231231
// Lazily initialize the token source and cache it
232232
b.tsMu.Lock()
233233
if b.tokenSource == nil {
234+
log.Printf("[DEBUG] Initializing OAuth2 token source for client ID: %s", b.ClientID)
234235
b.tokenSource = config.TokenSource(ctx)
235236
}
236237
tokenSource := b.tokenSource

0 commit comments

Comments
 (0)