Update pkg/op/token_client_credentials.go
Co-authored-by: Livio Amstutz <livio.a@gmail.com>
This commit is contained in:
parent
2140cbf33c
commit
a6845e7b68
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ func ParseClientCredentialsRequest(r *http.Request, decoder httphelper.Decoder)
|
|||
func ValidateClientCredentialsRequest(ctx context.Context, request *oidc.ClientCredentialsRequest, exchanger Exchanger) (TokenRequest, Client, error) {
|
||||
storage, ok := exchanger.Storage().(ClientCredentialsXXX)
|
||||
if !ok {
|
||||
return nil, nil, oidc.ErrRequestNotSupported().WithDescription("client_credentials grant not supported")
|
||||
return nil, nil, oidc.ErrUnsupportedGrantType().WithDescription("client_credentials grant not supported")
|
||||
}
|
||||
|
||||
client, err := AuthorizeClientCredentialsClient(ctx, request, exchanger)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue