browsertime basic authentication not working through Apache 2.4
See original GitHub issueHello!
I am having trouble getting basic auth to work with our setup. We have a couple applications sitting behind HTTPD (Apache 2.4) that we are tying to run sitespeed against. Here is the command I am running:
docker run --shm-size=1g --rm -v "$(pwd)":/sitespeed.io sitespeedio/sitespeed.io:7.4.0 --basicAuth XXX@XXX https://mytestingurl
The result of running this is always sitespeed being pushed back to the login page. I can confirm basic auth works with our site by using curl:
curl -vv -u XXX:XXX https://mytestingurl
I also tried using a selenium prescript to do a login. That seemed to work, but would just hang/timeout after the prescript was done and would not transition to the actual sitespeed browsertime test. The prescript login I’m using is the exact script fogin example from this tutorial:
https://www.sitespeed.io/documentation/sitespeed.io/prepostscript/#login-example
Please let me know any additional information you may need.
Thanks!
Issue Analytics
- State:
- Created 5 years ago
- Comments:13 (7 by maintainers)
Hey @capearlman if you check the video/sceenshot what do you see (do you get a video)?
I’ve tested basic auth at httpbin and that seems to work for me:
docker run --shm-size=1g --rm -v "$(pwd)":/sitespeed.io sitespeedio/sitespeed.io:7.4.0 --basicAuth user@passwd https://httpbin.org/basic-auth/user/passwd
I can see in the screenshot that I get to the final page.
Best Peter
This is released in 7.5.