From a6845e7b681def643354296aa572a0437c15c06e Mon Sep 17 00:00:00 2001 From: James Batt Date: Wed, 20 Apr 2022 17:03:19 +1000 Subject: [PATCH] Update pkg/op/token_client_credentials.go Co-authored-by: Livio Amstutz --- pkg/op/token_client_credentials.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/op/token_client_credentials.go b/pkg/op/token_client_credentials.go index 66553c2..dc914e5 100644 --- a/pkg/op/token_client_credentials.go +++ b/pkg/op/token_client_credentials.go @@ -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)