Update pkg/op/token_client_credentials.go

Co-authored-by: Livio Amstutz <livio.a@gmail.com>
This commit is contained in:
James Batt 2022-04-20 17:03:19 +10:00 committed by James Batt
parent 2140cbf33c
commit a6845e7b68

View file

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