Skip to content
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

Missing support for HTTP authentication prompts #385

Open
andreastt opened this issue Oct 4, 2016 · 34 comments
Open

Missing support for HTTP authentication prompts #385

andreastt opened this issue Oct 4, 2016 · 34 comments
Milestone

Comments

@andreastt
Copy link
Member

https://www.w3.org/Bugs/Public/show_bug.cgi?id=28802

csnover:

There is currently no way to handle HTTP authentication prompts when navigating to a page, only pre-authentication with username/password in the URL works (and, apparently, not without workarounds in some browsers like IE).

Related Selenium issue with links to more background and other information: SeleniumHQ/selenium#453

@andreastt andreastt added this to the Level 2 milestone Oct 4, 2016
p0deje added a commit to SeleniumHQ/selenium that referenced this issue Aug 17, 2017
It's not supported by any drivers anymore and is not spec-compliant.
Watch w3c/webdriver#385 for updates.
Tom-Trumper pushed a commit to Tom-Trumper/selenium that referenced this issue Sep 11, 2017
It's not supported by any drivers anymore and is not spec-compliant.
Watch w3c/webdriver#385 for updates.
topherbullock pushed a commit to topherbullock/selenium that referenced this issue Oct 4, 2017
It's not supported by any drivers anymore and is not spec-compliant.
Watch w3c/webdriver#385 for updates.
@haroon-sheikh
Copy link

@andreastt Any chance we can prioritise this please?

@andreastt
Copy link
Member Author

@haroon-sheikh It is scheduled for level 2 of the specification, so we will likely discuss this at the next F2F in November. However, implementors are currently focussing on level 1 conformance.

@dhapolapankaj

This comment has been minimized.

@dhapolapankaj

This comment has been minimized.

@andreastt
Copy link
Member Author

This is a discussion on how to handle HTTP basic access authentication in WebDriver, and not about how to circumvent or work around the current API’s shortcomings.

I alluded in an earlier comment that basic auth might be handled by a new permissions API in general, but this API wound up being tied closely to the Permissions API standard. They are now extending WebDriver which makes it possible to control permissions for a range of web APIs, but since basic auth isn’t part of this standard we still need to find a solution for how to handle this in WebDriver.

@dhapolapankaj

This comment has been minimized.

@DavidGangel

This comment has been minimized.

@shs96c
Copy link
Contributor

shs96c commented Mar 15, 2018

Authentication isn't always via a username and password. Other valid forms include OTPs, and security tokens. Any API for authentication added to webdriver should support those other mechanisms too.

@DavidGangel
Copy link

DavidGangel commented Mar 15, 2018

I would say OTP is out of the scope of this ticket. This is usually implemented by a 3rd party service which redirects you to a webpage. In turn a webpage can be handled by selenium.
Security token can not be used securely in a cloud environment like sauce, so that is kind is out of the scope as well.

@shs96c
Copy link
Contributor

shs96c commented Mar 15, 2018

NTLM and FaceID are both authentication mechanisms baked into browsers that we need to support. The idea isn't specifically about OTP, it's about the fact that browser-based authentication via modal dialogs owned by the browser aren't always just username and password. My apologies for not making that clearer.

@dwt

This comment has been minimized.

@gaboom

This comment has been minimized.

@haroon-sheikh
Copy link

@andreastt Do you know where does the priority sit now? When are we planning to make a start on Level 2 conformance?

@andreastt
Copy link
Member Author

I believe most vendors are hesitant to start new feature work before they are in complete conformance with the existing specification.

@whimboo
Copy link
Contributor

whimboo commented Feb 18, 2019

It's been a while since TPAC and I wonder if we can make a bit of progress on this issue given that it blocks a couple of people correctly implementing their tests.

Sadly the minutes don't mention someone who should take action on it, but in the final lines Simon asked Brian, if that is a sensible approach and he agreed. So @burg I would like to kindly ask if you would have the time to write down the spec changes?

@burg
Copy link
Contributor

burg commented Feb 21, 2019 via email

@alexnesteruk

This comment has been minimized.

@iamwaleed

This comment has been minimized.

@lmayorga1980

This comment has been minimized.

@lkord
Copy link

lkord commented Jan 17, 2020

any change in this matter?

@vaibhavtripathi
Copy link

vaibhavtripathi commented Jan 29, 2020

Since Chrome does not support in-URL auth (https://medium.com/@lmakarov/say-goodbye-to-urls-with-embedded-credentials-b051f6c7b6a3) since v59, are there plans of increasing the priority of this?

@whimboo
Copy link
Contributor

whimboo commented Feb 12, 2020

@AutomatedTester who basically could take this up nowadays?

@walter-hernandez
Copy link

What is the priority for this?

@AutomatedTester
Copy link
Contributor

At the moment this is not a priority for me. If someone wants to write the prose I will gladly edit it and get it merged.

@dwt
Copy link

dwt commented Mar 12, 2020 via email

@AutomatedTester
Copy link
Contributor

AutomatedTester commented Mar 15, 2020 via email

@walter-hernandez
Copy link

@AutomatedTester would something like what selenium-wire incorporated to handle requests and use proxies that require basic authentication be what could inspire the handling of basic authentication here?

@AutomatedTester
Copy link
Contributor

AutomatedTester commented Mar 17, 2020 via email

@lukehamil55
Copy link

Any priority for this?

@dwt
Copy link

dwt commented Jun 29, 2022

It seems that the current workaround is to use use selenium support for the BIDI API to solve this problem. AFAIK it currently only works with Chrome/Chromium.

I don't see any movement happening on this until we from the community create pull requests for the relevant specification in the webdriver spec, as the current maintainers seem to have moved on?

@lukehamil55
Copy link

Any workarounds in headless Python Chrome Selenium without spinning up XVFB display for extension cycling (unreliable on Lambda) and without using SeleniumWire (blocked due to TLS fingerprint)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests