question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

browsertime basic authentication not working through Apache 2.4

See original GitHub issue

Hello!

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:closed
  • Created 5 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
soulgalorecommented, Sep 21, 2018

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

0reactions
soulgalorecommented, Oct 11, 2018

This is released in 7.5.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Basic Authentication not working on Apache 2.4.6 <Location ...>
Centos7, Apache 2.4.6. I have one location that I was using basic authentication and working fine, here is the directive in httpd.conf
Read more >
Authentication and Authorization - Apache HTTP Server
Possible problems. Because of the way that Basic authentication is specified, your username and password must be verified every time you request a...
Read more >
Apache basic authentication not working in Chrome but ...
I am not able to access a protected directory in Chrome anymore. I could however access the directory in other browsers (Firefox and...
Read more >
Apache 2.4 basic auth don't work - Unix & Linux Stack Exchange
I have a problem with basic auth in apache 2.4. ... DirectoryIndex index.php AuthType Basic AuthName "Authentication Required" AuthUserFile ...
Read more >
Access authorization in Apache 2.4 < System | The Art of Web
Apache 2.4 has changed it's authorization configuration from previous versions. Satisfy, Order, Deny and Allow have all been deprecated and replaced with ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found