-
Notifications
You must be signed in to change notification settings - Fork 50
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
secure_satis: true does not work with BasicAuth #84
Comments
If you change the username/password to something extremely basic such as You could also do the classic |
Config is correct, $security contains the username and password from the config.yml. |
Hello Tyler, could you until the implementation of the feature (#77) add a second user? For me, the Basic Auth currently does not work as expected. Many thanks, Bjoern |
Hello Tyler, i think I have found the mistake. The password_hash() function use with the PASSWORD_DEFAULT algo a bcrypt-Algorithmus Password. But in the config.yml File is the passwort in plain-text saved. Regards, |
good catch @strausmann so the fix is to use an encrypted password hash (which the best idea) but will the login still works? will check it in the evening. |
so, on my local system the BasicAuth for /packages.json work with a plaintext password., on my web server it does not work. on both system an encrypted password does not work. |
The password is hashed during application boot, though I agree the password should be hashed in the config file itself. This would be considered a BC break, however, so I want to avoid it if possible on the 3.x line. The password entered during authentication is also hashed before comparison, so you should enter the plaintext password when authenticating. I admit, though, I'm at a loss at what could be causing your issue, especially given it working locally. What does your setup look like, in both environments-- how are they different? Could it be a webserver configuration causing the problem? |
It must not be a breaking change, an encrypted password (and the algorithm) can be detected by the prefix. example: plain: password check the possible prefixes: sure, the local setup is different from the server, but the server "normal" debian webserver. I will attach a PHPInfo output |
Excellent suggestion, @NeoBlack, I think that's a great way forward. There is already a utility in I've opened #91 to track that feature. However, this doesn't address your issues with authenticating. Is that still an issue? |
yes it is still an issue, I had not the time yet to debug it on the server or have a deeper look into the code. Will try to check it the next days. |
I have set secure_satis: true, the packages.json is now protected by a BasicAuth but entering the credentials does not enable the access to the files.
not in browser and also not by composer
The text was updated successfully, but these errors were encountered: