-
-
Notifications
You must be signed in to change notification settings - Fork 192
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
Logging in on sites with basic http auth impossible #597
Comments
This is a very interesting case. Maybe a quick solution could be to set the basic auth credentials in the mink base URL? e.g. You can also override the But I think your suggestion to handle this in the Mink session is probably the best approach. Basic auth is not handled by Drupal but by the webserver (Apache or Nginx), so this is something that is ideally handled inside Mink. |
The also causes problems for other things, like the big pipe cookie, currently we check that inside an |
as discussed at minkphp/Mink#810 this is best fixed here |
The issue appeared after upgrading from 3.4.1 to 4.1.
Function for logging in a user does a fast logout - which resets the session and removes all the headers set.
This practically makes this step (I am logged in as a user with the "example" role) unusable with sites that have basic auth setup.
Our workaround is not a change to drupal-extension itself, but an addition to the Mink Session where we adapted it to apply basic auth after each session starts & reset.
another way to go could be to somehow acquire credentials and set the basic auth after fast logout, or remember the Authorization header and re-add it after logout (but getting headers is not supported by session/drivers).
Suggestions, remarks & explanations are welcome!
The text was updated successfully, but these errors were encountered: