Removed the client authorization for client credentials flow

This commit is contained in:
David Allen 2024-03-25 14:28:55 -06:00
parent a84fc1b4f1
commit 78e1120fdf
No known key found for this signature in database
GPG key ID: 1D2A29322FBB6FCB

View file

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