Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always returns Authentication failed #69

Closed
josepsj opened this issue Jun 2, 2018 · 2 comments
Closed

Always returns Authentication failed #69

josepsj opened this issue Jun 2, 2018 · 2 comments

Comments

@josepsj
Copy link

josepsj commented Jun 2, 2018

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?

@tuupola
Copy link
Owner

tuupola commented Jul 2, 2018

What is the returned error message?

@tuupola
Copy link
Owner

tuupola commented Aug 14, 2018

Closing due no feedback.

@tuupola tuupola closed this as completed Aug 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants