Skip to content

Missing support for HTTP authentication prompts #385

Open

Description

@andreastt

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

Activity

  1. added this to the Level 2 milestone on Oct 4, 2016
  2. added a commit that references this issue on Aug 17, 2017
  3. added a commit that references this issue on Sep 11, 2017
  4. added a commit that references this issue on Oct 4, 2017
  5. haroon-sheikh commented on Oct 5, 2017

    @haroon-sheikh

    @andreastt Any chance we can prioritise this please?

  6. andreastt commented on Oct 5, 2017

    @andreastt
    MemberAuthor

    @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.

  7. dhapolapankaj commented on Dec 31, 2017

    @dhapolapankaj
  8. dhapolapankaj commented on Jan 1, 2018

    @dhapolapankaj
  9. andreastt commented on Jan 2, 2018

    @andreastt
    MemberAuthor

    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.

  10. dhapolapankaj commented on Jan 6, 2018

    @dhapolapankaj
  11. DavidGangel commented on Mar 14, 2018

    @DavidGangel
  12. shs96c commented on Mar 15, 2018

    @shs96c
    Contributor

    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.

  13. DavidGangel commented on Mar 15, 2018

    @DavidGangel

    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.

  14. shs96c commented on Mar 15, 2018

    @shs96c
    Contributor

    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.

  15. 12 remaining items

  16. lmayorga1980 commented on Jan 8, 2020

    @lmayorga1980
  17. lkord commented on Jan 17, 2020

    @lkord

    any change in this matter?

  18. vaibhavtripathi commented on Jan 29, 2020

    @vaibhavtripathi

    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?

  19. whimboo commented on Feb 12, 2020

    @whimboo
    Contributor

    @AutomatedTester who basically could take this up nowadays?

  20. walter-hernandez commented on Mar 12, 2020

    @walter-hernandez

    What is the priority for this?

  21. AutomatedTester commented on Mar 12, 2020

    @AutomatedTester
    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.

  22. dwt commented on Mar 12, 2020

    @dwt
  23. AutomatedTester commented on Mar 15, 2020

    @AutomatedTester
    Contributor
  24. walter-hernandez commented on Mar 17, 2020

    @walter-hernandez

    @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?

  25. AutomatedTester commented on Mar 17, 2020

    @AutomatedTester
    Contributor
  26. lukehamil55 commented on Jun 28, 2022

    @lukehamil55

    Any priority for this?

  27. dwt commented on Jun 29, 2022

    @dwt

    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?

  28. lukehamil55 commented on Jul 13, 2022

    @lukehamil55

    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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions