Skip to content

Commit 2024933

Browse files
committed
chore: Address copilot nitpicks
1 parent 5e16e19 commit 2024933

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

auth_providers/auth_oauth.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,8 @@ func (b *CommandConfigOauth) GetAccessToken() (*oauth2.Token, error) {
446446
return nil, fmt.Errorf("CommandConfigOauth is nil")
447447
}
448448

449-
b.ValidateAuthConfig()
449+
_ = b.ValidateAuthConfig() // sets client config if not already set but eats the error so that we can return and
450+
// error fetching the token
450451

451452
if b.AccessToken != "" && (b.ClientID == "" || b.ClientSecret == "" || b.TokenURL == "") {
452453
log.Printf("[DEBUG] Access token is explicitly set, and no client credentials are provided. Using static token source.")

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
module github.com/Keyfactor/keyfactor-auth-client-go
1616

17-
go 1.24.0
17+
go 1.24
1818

1919
toolchain go1.24.3
2020

0 commit comments

Comments
 (0)