S
SargeLY
Guest
Hi all,
I am hoping someone can help me. Basically I am unsure exactly how to provide windows authentication to a website.
Here is a sample of the code:
HttpWebRequest httpRequest = (HttpWebRequest)
WebRequest.Create("testWeb");
httpRequest.Credentials = CredentialCache.DefaultCredentials;
httpRequest.Method = WebRequestMethods.Http.Get;
HttpWebResponse httpResponse
= (HttpWebResponse)httpRequest.GetResponse();
Stream httpResponseStream = httpResponse.GetResponseStream();
So my company has an AD and the above works fine when using the VPN because it can cache the windows credentials. But this is only when using the VPN not all end users have access to this.
Is there another way I can do this? I am unsure of how to find a solution for this.
Please note I do have control over the website in question but I do not want to use basic authentication. IIS is currenctly configured to only use windows authentication.
If relevant all end users have Windows 10 and my company uses office 365 & Azure.
Thanks for the help.
Continue reading...
I am hoping someone can help me. Basically I am unsure exactly how to provide windows authentication to a website.
Here is a sample of the code:
HttpWebRequest httpRequest = (HttpWebRequest)
WebRequest.Create("testWeb");
httpRequest.Credentials = CredentialCache.DefaultCredentials;
httpRequest.Method = WebRequestMethods.Http.Get;
HttpWebResponse httpResponse
= (HttpWebResponse)httpRequest.GetResponse();
Stream httpResponseStream = httpResponse.GetResponseStream();
So my company has an AD and the above works fine when using the VPN because it can cache the windows credentials. But this is only when using the VPN not all end users have access to this.
Is there another way I can do this? I am unsure of how to find a solution for this.
Please note I do have control over the website in question but I do not want to use basic authentication. IIS is currenctly configured to only use windows authentication.
If relevant all end users have Windows 10 and my company uses office 365 & Azure.
Thanks for the help.
Continue reading...