isster
08-14-2004, 12:25 AM
As many of you know, you are no longer able to access an https site with your username and password like this using internet explorer:
https://username:password@mysite.com
You will get a syntax error. The reason is because of microsoft new patch that disables this feature.
http://support.microsoft.com/default.aspx?scid=kb;%5Bln%5D;834489
------------------------------------------------------------------------
I have a link to a site with https://username:password@mysite.com that users clicked on to gain access to it. This way, users don't have to remember this sites username and password.
This is essential.
-------------------------------------------------------------------------
Is there a way to create a link using javascript to allow access to a site that uses this kind of authentication without the user having to enter a url?
-------------------------------------------------------------------------
Previously I thought this would work because it connected to the https site and created a cookie on my computer. Then I thought I would just redirect the user to the login page. But after WinHttpReq.Send() is called the cookie is destroyed. Is There a way for you to tell the ActiveXObject not to destroy the cookie?
<script language="JavaScript">
var WinHttpReq = new ActiveXObject("WinHttp.WinHttpRequest.5.1");
var temp = WinHttpReq.Open("GET", ="https://www.mysite.com/", false);
WinHttpReq.SetCredentials("username","password",0);
WinHttpReq.Send();
top.location.href="https://www.mysite.com/";
</script>
----------------------------------------------------------------------
Any help would be greatly appreciated. And I am sure many many people are looking for this solution. You would be a javascript god if you can solve it!
https://username:password@mysite.com
You will get a syntax error. The reason is because of microsoft new patch that disables this feature.
http://support.microsoft.com/default.aspx?scid=kb;%5Bln%5D;834489
------------------------------------------------------------------------
I have a link to a site with https://username:password@mysite.com that users clicked on to gain access to it. This way, users don't have to remember this sites username and password.
This is essential.
-------------------------------------------------------------------------
Is there a way to create a link using javascript to allow access to a site that uses this kind of authentication without the user having to enter a url?
-------------------------------------------------------------------------
Previously I thought this would work because it connected to the https site and created a cookie on my computer. Then I thought I would just redirect the user to the login page. But after WinHttpReq.Send() is called the cookie is destroyed. Is There a way for you to tell the ActiveXObject not to destroy the cookie?
<script language="JavaScript">
var WinHttpReq = new ActiveXObject("WinHttp.WinHttpRequest.5.1");
var temp = WinHttpReq.Open("GET", ="https://www.mysite.com/", false);
WinHttpReq.SetCredentials("username","password",0);
WinHttpReq.Send();
top.location.href="https://www.mysite.com/";
</script>
----------------------------------------------------------------------
Any help would be greatly appreciated. And I am sure many many people are looking for this solution. You would be a javascript god if you can solve it!