-
Notifications
You must be signed in to change notification settings - Fork 65
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
Slim Application Error: Basic auth not working properly #24
Comments
It is unclear from your report what is not working. Copy pasting the code you provided and running it works as expected.
|
I tried it on localhost too, and there it works for me aswell. Only on an external IP it's not working. Did I forget to enable something? When I try this on the ip then i get for the /close/test route a 500er error eventhough i don't see something being wrong with the code |
https://github.com/tuupola/slim-basic-auth#security If you are not using https you need to specifically set $app->add(new \Slim\Middleware\HttpBasicAuthentication([
"secure" => false,
"users" => [
"root" => "t00r",
"user" => "passw0rd"
]
])); |
thank you very much. this solved the problem. |
Great :) |
If it helps, I had a similar problem on a shaerd hosting, I solved by adding |
Why can't I authenticate with postman Basic Auth (username: root, password: t00r). The /open/test route works just fine
The text was updated successfully, but these errors were encountered: