From 78e1120fdf2daaf89878522e9ea11cb1f0d8dd77 Mon Sep 17 00:00:00 2001 From: "David J. Allen" Date: Mon, 25 Mar 2024 14:28:55 -0600 Subject: [PATCH] Removed the client authorization for client credentials flow --- internal/flows/client_credentials.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/internal/flows/client_credentials.go b/internal/flows/client_credentials.go index 1a70199..9db6a26 100644 --- a/internal/flows/client_credentials.go +++ b/internal/flows/client_credentials.go @@ -25,10 +25,17 @@ func NewClientCredentialsFlow(eps ClientCredentialsFlowEndpoints, params ClientC } // authorize the client +<<<<<<< HEAD res, err = params.Client.AuthorizeOAuthClient(eps.Authorize) if err != nil { return "", fmt.Errorf("failed to authorize client: %v", err) } +======= + // _, err = client.AuthorizeOAuthClient(eps.Authorize) + // if err != nil { + // return fmt.Errorf("failed to authorize client: %v", err) + // } +>>>>>>> f49f3c8 (Removed the client authorization for client credentials flow) // request a token from the authorization server res, err = params.Client.PerformClientCredentialsTokenGrant(eps.Token)