@@ -, +, @@ - Having the rest of the patches applied and plack restarted, run: [1] $ curl -X POST -H 'Authorization: Basic ZGQ2NjlmNGUtZmI1NS00Y2YzLWE4ZmYtYmFiYzJiNDIwNWY1OmM0ZDJmYmYzLWYwOWMtNGJkZi1iNWE4LTgxMDJmNjcwYTI1Mw' -i 'http://kohadev.myDNSname.org:8081/api/v1/oauth/token' --data grant_type=client_credentials - Run: $ kshell k$ prove t/db_dependent/api/v1/oauth.t - Apply this patch - Replicate your curl/postman test - Run: k$ prove t/db_dependent/api/v1/oauth.t - Sign off :-D --- Koha/REST/V1/Auth.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/Koha/REST/V1/Auth.pm +++ a/Koha/REST/V1/Auth.pm @@ -71,7 +71,7 @@ sub under { "Configuration prevents the usage of this endpoint by unprivileged users"); } - if ( $c->req->url->to_string eq '/api/v1/oauth/token' ) { + if ( $c->req->url->to_abs->path eq '/api/v1/oauth/token' ) { # Requesting a token shouldn't go through the API authenticaction chain $status = 1; } --