@@ -, +, @@ RESTOAuth2ClientCredentials - Run: $ kshell k$ prove t/db_dependent/api/v1/oauth.t - Apply this patch - Run: k$ prove t/db_dependent/api/v1/oauth.t - Sign off :-D --- Koha/REST/V1/OAuth.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/Koha/REST/V1/OAuth.pm +++ a/Koha/REST/V1/OAuth.pm @@ -13,7 +13,7 @@ sub token { my $c = shift->openapi->valid_input or return; my $grant_type = $c->validation->param('grant_type'); - unless ($grant_type eq 'client_credentials') { + unless ( $grant_type eq 'client_credentials' and C4::Context->preference('RESTOAuth2ClientCredentials') ) { return $c->render(status => 400, openapi => {error => 'Unimplemented grant type'}); } --