From f1d66e9dc6028cbec638a0dbeaae681d48fe0d44 Mon Sep 17 00:00:00 2001 From: Shawn Neal Date: Thu, 23 Mar 2023 17:08:12 -0700 Subject: [PATCH] Add fix for issue #327 Client authentication was incorrectly using the login endpoint instead of UAA. --- internal/http/oauth_session_manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/http/oauth_session_manager.go b/internal/http/oauth_session_manager.go index a4ae183e..0b66e9bf 100644 --- a/internal/http/oauth_session_manager.go +++ b/internal/http/oauth_session_manager.go @@ -112,7 +112,7 @@ func (m *OAuthSessionManager) newTokenSource(ctx context.Context) error { case m.config.Token != "": m.userTokenAuth(oauthCtx, loginEndpoint, uaaEndpoint) case m.config.ClientID != "": - m.clientAuth(oauthCtx, loginEndpoint) + m.clientAuth(oauthCtx, uaaEndpoint) default: return m.userAuth(oauthCtx, loginEndpoint, uaaEndpoint) }