|
security
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Pls Help! Passing credential between two web sites on same machinHi,
On the same machine, I have created two web sites, the first site requires client cert and is mapped to a windows account. The second site is restricted to be called by the first site by limiting the IP address to localhost. If I enable windows authentication for the second site, I will get 401 (unauthorized). Can anyone tell me how to pass the windows credential of the first site when calling second site? Thanks. Hello FA,
How do you call the 2nd site?? --------------------------------------- Dominick Baier - DevelopMentor http://www.leastprivilege.com Show quoteHide quote > Hi, > > On the same machine, I have created two web sites, the first site > requires client cert and is mapped to a windows account. The second > site is restricted to be called by the first site by limiting the IP > address to localhost. If I enable windows authentication for the > second site, I will get 401 (unauthorized). Can anyone tell me how to > pass the windows credential of the first site when calling second > site? > > Thanks. > Http post
Show quoteHide quote "Dominick Baier [DevelopMentor]" wrote: > Hello FA, > > How do you call the 2nd site?? > > --------------------------------------- > Dominick Baier - DevelopMentor > http://www.leastprivilege.com > > > Hi, > > > > On the same machine, I have created two web sites, the first site > > requires client cert and is mapped to a windows account. The second > > site is restricted to be called by the first site by limiting the IP > > address to localhost. If I enable windows authentication for the > > second site, I will get 401 (unauthorized). Can anyone tell me how to > > pass the windows credential of the first site when calling second > > site? > > > > Thanks. > > > > > > Hello FA,
so you are using the HttpWebRequest classes? Requests are anonymous then - you have to attach credentials to the request - this is why you get the 401. Have a look at the Credential property of HttpWebRequest CredentialCache.DefaultCredentials is for Windows integrated auth, like: myHttpWebRequest.Credentials = CredentialCache.DefaultCredentials; HTH --------------------------------------- Dominick Baier - DevelopMentor http://www.leastprivilege.com Show quoteHide quote > Http post > > "Dominick Baier [DevelopMentor]" wrote: > >> Hello FA, >> >> How do you call the 2nd site?? >> >> --------------------------------------- >> Dominick Baier - DevelopMentor >> http://www.leastprivilege.com >>> Hi, >>> >>> On the same machine, I have created two web sites, the first site >>> requires client cert and is mapped to a windows account. The second >>> site is restricted to be called by the first site by limiting the IP >>> address to localhost. If I enable windows authentication for the >>> second site, I will get 401 (unauthorized). Can anyone tell me how >>> to pass the windows credential of the first site when calling second >>> site? >>> >>> Thanks. >>>
Form Authentication and new browser instance
System.ExecutionEngineException for certificate object creation sspi in c# Web Services and Access Control I keep receiving a file/path access error. RSA Encrypt/Decrypt with OAEP. OAEP Decryption Error NCrypto Encryption & Decryption Securty around .NET setup program .NET Server Authentication |
|||||||||||||||||||||||