Skip to content

HTTP Basic Authentication support #1362

Closed

Description

@felicienfrancois

It seems atom shell does not support basic authentication, neither in BrowserWindow nor in webview.

It could be provided with an event in BrowserWindow and webview which defaults to a native dialog prompt.

Activity

  1. felicienfrancois commented on Apr 11, 2015

    @felicienfrancois
    Author

    This feature is important as there is no possible workaround.
    Also, in the webdev world, a lot of people uses basic authentication for development/test server and it may be blocking for some people.
    So Atom editor and other dev tools based on atom shell should be able to support that.

  2. steelbrain commented on Apr 11, 2015

    @steelbrain
    Contributor

    👍

  3. mark-hahn commented on Apr 15, 2015

    @mark-hahn

    I just had a user of the atom web-browser complain about this. mark-hahn/web-browser#49

  4. FLasH3r commented on May 2, 2015

    @FLasH3r

    +1

  5. MihaiValentin commented on May 19, 2015

    @MihaiValentin

    +1, this is a very important feature, which currently has no workaround

  6. clarkey commented on May 20, 2015

    @clarkey

    +1. Getting 401 when authenticating to IIS web servers. Fine in Chrome.
    Windows (not Basic) authentication is required in my case, and I predict a lot of other users cases too.

  7. MihaiValentin commented on May 22, 2015

    @MihaiValentin

    However, on the https://github.com/atom/electron/releases page, at release electron v0.25.3 is mentioned "Enable NTLM / Kerberos authentication.", though I can't find any commit regarding it.

    Any idea what has been done here?

  8. anaisbetts commented on May 22, 2015

    @anaisbetts
    Contributor

    electron-archive/brightray#104 is the fix to enable NTLM auth

  9. MihaiValentin commented on May 24, 2015

    @MihaiValentin

    @paulcbetts thanks, there was the confusion between taking the NTLM from the system and allowing the user to login through NTLM from a prompt, just like in Chrome

  10. MihaiValentin commented on May 24, 2015

    @MihaiValentin

    Would the answer from http://stackoverflow.com/a/16613116/1030269 help here (as a workaround of course)?

    chrome.webRequest.onAuthRequired.addListener(
                function(details, callbackFn) {
                    console.log("onAuthRequired!", details, callbackFn);
                    callbackFn({
                        authCredentials: {username: "1", password: "__TestUser"}
                    });
                },
                {urls: ["<all_urls>"]},
                ['asyncBlocking']
            );
    

    Is chrome.webRequest.* API available in atom shell?

  11. anaisbetts commented on May 25, 2015

    @anaisbetts
    Contributor

    thanks, there was the confusion between taking the NTLM from the system and allowing the user to login through NTLM from a prompt, just like in Chrome

    Aha, this is the disconnect. Yeah, so basically anything that requires us to ask a username/password will currently fail at the moment. This is On My List for some point soon

  12. dataich commented on Jul 21, 2015

    @dataich
    Contributor

    +1

  13. reinpk commented on Sep 13, 2015

    @reinpk

    +1

  14. vai commented on Sep 16, 2015

    @vai

    Any movement on this? Latest release from electron home page still fails on even the simple windows authentication scenario. Opening up electron to the intranet app space (and killing 15yo legacy browsers) would be fantastic.

  15. mkozakov commented on Oct 5, 2015

    @mkozakov

    +1

  16. mcasperson commented on Oct 7, 2015

    @mcasperson

    +1

  17. chrisdewar commented on Oct 21, 2015

    @chrisdewar

    +1

  18. kirillrogovoy commented on Oct 23, 2015

    @kirillrogovoy

    +1

  19. petrfelzmann commented on Oct 23, 2015

    @petrfelzmann
    Contributor

    +1

  20. Kikketer commented on Oct 23, 2015

    @Kikketer

    +1

  21. self-assigned this
    on Oct 28, 2015
  22. Anduin2017 commented on Mar 30, 2018

    @Anduin2017

    +1

  23. harryi3t commented on Jun 29, 2018

    @harryi3t

    I can see that support for basic auth was added. What about windows (NTLM) and digest auth which also results in a pop-up in a browser? Any workaround for these other auths?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions