mirror of
https://github.com/davidallendj/opaal.git
synced 2025-12-20 03:27:02 -07:00
Removed the client authorization for client credentials flow
This commit is contained in:
parent
a84fc1b4f1
commit
78e1120fdf
1 changed files with 7 additions and 0 deletions
|
|
@ -25,10 +25,17 @@ func NewClientCredentialsFlow(eps ClientCredentialsFlowEndpoints, params ClientC
|
||||||
}
|
}
|
||||||
|
|
||||||
// authorize the client
|
// authorize the client
|
||||||
|
<<<<<<< HEAD
|
||||||
res, err = params.Client.AuthorizeOAuthClient(eps.Authorize)
|
res, err = params.Client.AuthorizeOAuthClient(eps.Authorize)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", fmt.Errorf("failed to authorize client: %v", err)
|
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
|
// request a token from the authorization server
|
||||||
res, err = params.Client.PerformClientCredentialsTokenGrant(eps.Token)
|
res, err = params.Client.PerformClientCredentialsTokenGrant(eps.Token)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue