locked
Basic Auth is not working in IE RRS feed

  • Question

  • User430178104 posted

    Hi,

    I am using below code to login another website with credentials. Unfortunately this is working in Chrome and not in IE. Please let me know how this will work in IE

    window.open("https://UserName:Password@WebURL.COM");
    Saturday, July 8, 2017 5:15 PM

All replies

  • User475983607 posted

    Hi,

    I am using below code to login another website with credentials. Unfortunately this is working in Chrome and not in IE. Please let me know how this will work in IE

    window.open("https://UserName:Password@WebUR.COM

    Correct, IE does not support username and password in the URL.
    https://support.microsoft.com/en-us/help/834489/internet-explorer-does-not-support-user-names-and-passwords-in-web-sit

    Saturday, July 8, 2017 5:49 PM
  • User430178104 posted
    Hi,

    Is there any work around for IE?
    Sunday, July 9, 2017 2:25 AM
  • User475983607 posted

    Hi,

    Is there any work around for IE?

    The link provided in my previous post explains how to override the behavior.  However, you need to apply this to all machines that use the applications.  As suggested in the linked document, you should find a different solutions as placing the username and password in plain text is a security risk.

    Sunday, July 9, 2017 12:02 PM
  • User753101303 posted

    Hi,

    It seems to be disabled by default since IE7. You really have no other way than to pass explicitely a user name password as part the url? Else you could pass that as query string parameter and handle that yourself (or maybe a kind of token).

    Tuesday, July 11, 2017 10:02 AM
  • User430178104 posted
    Hi PatriceSc,

    The targeted website is windows authentication and developed by some one. Is there any other way to login and redirected to that site? Also targeted site is the different domain.

    Can you please help me on this?
    Tuesday, July 11, 2017 12:04 PM
  • User753101303 posted

    Ok so you have no control on this 3rd party site ? And you have to connect to this site using a hardcoded account rather than using the actual user identity ?

    The problem is that it seems deprecated for safety reasons...

    Tuesday, July 11, 2017 12:08 PM
  • User430178104 posted

    PatriceSc,

    I don't have any control on targeted URL. i just need to login and redirected dynamically based on the user login to my site. 

    Tuesday, July 11, 2017 12:13 PM
  • User-1838255255 posted

    Hi pathipati,

    According to your description, as far as I know, you could refer to the following tutorial about how to set window authentication in asp.net:

    How to implement Windows authentication and authorization in ASP.NET:

    https://support.microsoft.com/en-us/help/323176/how-to-implement-windows-authentication-and-authorization-in-asp-net 

     Implement Windows Authentication in ASP.Net:

    http://www.c-sharpcorner.com/UploadFile/dacca2/implement-windows-authentication-in-Asp-Net/ 

    Best Regards,

    Eric Du

    Wednesday, August 2, 2017 7:04 AM