tuupola/slim-basic-auth

Always returns Authentication failed

Closed this issue · 2 comments

Hi, I used the middleware for a time and it's works ok, an in a time to here always return error in the authentication when I try to insert another user. I return to the old status but don't work.

$app->add(new Tuupola\Middleware\HttpBasicAuthentication([ "secure" => false, "users" => [ "test" => "secret", "test-2" => "secret2" ], "error" => function ($response, $arguments) { $data["status"] = "error"; $data["message"] = $arguments["message"]; return $response ->withHeader("Content-Type", "application/json") ->getBody()->write(json_encode($data, JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT)); } ]));

I'm using version 3 and have php 7.1. What can do the problem?

What is the returned error message?

Closing due no feedback.