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
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
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.
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).
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.
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...
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Member
32 Points
458 Posts
Basic Auth is not working in IE
Jul 08, 2017 05:15 PM|pathipati|LINK
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
All-Star
53741 Points
24067 Posts
Re: Basic Auth is not Working in IE
Jul 08, 2017 05:49 PM|mgebhard|LINK
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
Member
32 Points
458 Posts
Re: Basic Auth is not Working in IE
Jul 09, 2017 02:25 AM|pathipati|LINK
Is there any work around for IE?
All-Star
53741 Points
24067 Posts
Re: Basic Auth is not Working in IE
Jul 09, 2017 12:02 PM|mgebhard|LINK
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.
All-Star
48740 Points
18193 Posts
Re: Basic Auth is not working in IE
Jul 11, 2017 10:02 AM|PatriceSc|LINK
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).
Member
32 Points
458 Posts
Re: Basic Auth is not working in IE
Jul 11, 2017 12:04 PM|pathipati|LINK
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?
All-Star
48740 Points
18193 Posts
Re: Basic Auth is not working in IE
Jul 11, 2017 12:08 PM|PatriceSc|LINK
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...
Member
32 Points
458 Posts
Re: Basic Auth is not working in IE
Jul 11, 2017 12:13 PM|pathipati|LINK
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.
Contributor
6730 Points
2715 Posts
Re: Basic Auth is not working in IE
Aug 02, 2017 07:04 AM|Eric Du|LINK
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
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.