From ecfd74aac02e58b3483c91a39059b69aff1c750a Mon Sep 17 00:00:00 2001 From: Ethan Lam Date: Sat, 2 May 2026 01:33:05 +0000 Subject: [PATCH] fix: use basic auth header for OAuth2 token exchange --- auth/auth.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/auth/auth.go b/auth/auth.go index 33bfe68..b0e2c9c 100644 --- a/auth/auth.go +++ b/auth/auth.go @@ -195,8 +195,9 @@ func (a *Auth) OAuth2Flow(username string) (string, error) { ClientID: a.clientID, ClientSecret: a.clientSecret, Endpoint: oauth2.Endpoint{ - AuthURL: a.authURL, - TokenURL: a.tokenURL, + AuthURL: a.authURL, + TokenURL: a.tokenURL, + AuthStyle: oauth2.AuthStyleInHeader, }, RedirectURL: a.redirectURI, Scopes: getOAuth2Scopes(),