You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Missing support for HTTP authentication prompts #385
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
Reacted by AA, Aleksandar N. Kostadinov, Haroon Sheikh, Nicholas DiPiazza, Andrei Botalov, Saurav Kothari, Danny Althoff, Maryna Bortnyk, Ricardo Matsui, thiagoh and 41 more
Reacted by thiagoh, ashfp, Pavel Savchenko, Renkar, sbengo, Peter, Kamil Monicz and jerome provensal
@andreastt Any chance we can prioritise this please?
Reacted by Marj, Stuart C. Robinson, Scott O'Mary, leogcba, Serhii Shykor, TheDcoder, Bárbara Cabral, Timothée DAUTRÊME, Anton Smorodskyi, adamjw787 and 5 more
@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.
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.
Reacted by Aleksandar N. Kostadinov, Pankaj Dhapola, Nicholas DiPiazza, Danny Althoff, chimi and Bárbara Cabral
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.
Reacted by Marj, Chris Kenst, Scott O'Mary and mariomatejka
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.
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.
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.
Since I am not too familiar with the project - what would be required to get this to go forward? I am sure there are enough people on this bug report to collaborate on a pull request to move this forward.
Beste Regards,
Martin Häcker
On Thu, Mar 12, 2020 at 8:37 PM ***@***.***> wrote:
Hi David,
> 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.
>
Since I am not too familiar with the project - what would be required to
get this to go forward? I am sure there are enough people on this bug
report to collaborate on a pull request to move this forward.
Beste Regards,
Martin Häcker
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#385 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAA7MBU6EJK7S3XUK4FXWNTRHFBYLANCNFSM4CRWRMHA>
.
@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?
We are not documenting what Selenium does here, we need to document what
the browser needs to do in the case that it requires basic authentication.
As mentioned in a previous comment you will need to add in prose there that
describes what needs to happen
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?
Activity
Deprecate Alert#authenticate
Deprecate Alert#authenticate
Deprecate Alert#authenticate
haroon-sheikh commentedon Oct 5, 2017
@andreastt Any chance we can prioritise this please?
andreastt commentedon Oct 5, 2017
@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 commentedon Dec 31, 2017
dhapolapankaj commentedon Jan 1, 2018
andreastt commentedon Jan 2, 2018
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 commentedon Jan 6, 2018
DavidGangel commentedon Mar 14, 2018
shs96c commentedon 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 commentedon 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 commentedon 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.
12 remaining items
lmayorga1980 commentedon Jan 8, 2020
lkord commentedon Jan 17, 2020
any change in this matter?
vaibhavtripathi commentedon 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 commentedon Feb 12, 2020
@AutomatedTester who basically could take this up nowadays?
walter-hernandez commentedon Mar 12, 2020
What is the priority for this?
AutomatedTester commentedon Mar 12, 2020
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 commentedon Mar 12, 2020
AutomatedTester commentedon Mar 15, 2020
walter-hernandez commentedon Mar 17, 2020
@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 commentedon Mar 17, 2020
lukehamil55 commentedon Jun 28, 2022
Any priority for this?
dwt commentedon 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 commentedon Jul 13, 2022
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)?