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) }