1 write to CurrentAuthenticationState
System (1)
net\System\Net\_AuthenticationState.cs (1)
109httpWebRequest.CurrentAuthenticationState = this;
70 references to CurrentAuthenticationState
System (70)
net\System\Net\_AuthenticationManager2.cs (5)
65if (httpWebRequest != null && httpWebRequest.CurrentAuthenticationState.Module != null) 68httpWebRequest.CurrentAuthenticationState.Module.Authenticate(challenge, request, credentials); 83httpWebRequest.CurrentAuthenticationState.Module = authenticationModule; 165httpWebRequest.CurrentAuthenticationState.TransportContext = 176httpWebRequest.CurrentAuthenticationState.Module = authenticationModule;
net\System\Net\_AuthenticationManagerDefault.cs (5)
187if (httpWebRequest != null && httpWebRequest.CurrentAuthenticationState.Module != null) 189response = httpWebRequest.CurrentAuthenticationState.Module.Authenticate(challenge, request, credentials); 210httpWebRequest.CurrentAuthenticationState.Module = authenticationModule; 295httpWebRequest.CurrentAuthenticationState.TransportContext = 305httpWebRequest.CurrentAuthenticationState.Module = authenticationModule;
net\System\Net\_AuthenticationState.cs (3)
374(httpWebRequest.CurrentAuthenticationState == null || httpWebRequest.CurrentAuthenticationState.Authorization == null || !httpWebRequest.CurrentAuthenticationState.Authorization.MutuallyAuthenticated))
net\System\Net\_Connection.cs (2)
2262&& (request.CurrentAuthenticationState == null || request.CurrentAuthenticationState.Module == null)))
net\System\Net\_DigestClient.cs (19)
113SpnToken spnToken = httpWebRequest.CurrentAuthenticationState.GetComputeSpn(httpWebRequest); 116if (httpWebRequest.CurrentAuthenticationState.TransportContext != null) 118binding = httpWebRequest.CurrentAuthenticationState.TransportContext.GetChannelBinding(ChannelBindingKind.Endpoint); 190if (httpWebRequest.CurrentAuthenticationState.GetSecurityContext(this) != null) { 200if (httpWebRequest.ResponseStatusCode!=httpWebRequest.CurrentAuthenticationState.StatusCodeMatch) { 204if (httpWebRequest.CurrentAuthenticationState.TransportContext != null) 206binding = httpWebRequest.CurrentAuthenticationState.TransportContext.GetChannelBinding(ChannelBindingKind.Endpoint); 266httpWebRequest.CurrentAuthenticationState.ClearSession(); 286authSession = httpWebRequest.CurrentAuthenticationState.GetSecurityContext(this); 287GlobalLog.Print("DigestClient::XPDoAuthenticate() key:" + ValidationHelper.HashString(httpWebRequest.CurrentAuthenticationState) + " retrieved authSession:" + ValidationHelper.HashString(authSession)); 339SpnToken spn = httpWebRequest.CurrentAuthenticationState.GetComputeSpn(httpWebRequest); 343if (httpWebRequest.CurrentAuthenticationState.TransportContext != null) 345binding = httpWebRequest.CurrentAuthenticationState.TransportContext.GetChannelBinding(ChannelBindingKind.Endpoint); 356GlobalLog.Print("DigestClient::XPDoAuthenticate() setting SecurityContext for:" + ValidationHelper.HashString(httpWebRequest.CurrentAuthenticationState) + " to authSession:" + ValidationHelper.HashString(authSession)); 357httpWebRequest.CurrentAuthenticationState.SetSecurityContext(authSession, this); 406NTAuthentication authSession = httpWebRequest.CurrentAuthenticationState.GetSecurityContext(this); 407GlobalLog.Print("DigestClient::XPUpdate() key:" + ValidationHelper.HashString(httpWebRequest.CurrentAuthenticationState) + " retrieved authSession:" + ValidationHelper.HashString(authSession)); 429if (httpWebRequest.ResponseStatusCode!=httpWebRequest.CurrentAuthenticationState.StatusCodeMatch) { 445httpWebRequest.CurrentAuthenticationState.Authorization.MutuallyAuthenticated = authSession.IsMutualAuthFlag;
net\System\Net\_KerberosClient.cs (12)
73authSession = httpWebRequest.CurrentAuthenticationState.GetSecurityContext(this); 74GlobalLog.Print("KerberosClient::DoAuthenticate() key:" + ValidationHelper.HashString(httpWebRequest.CurrentAuthenticationState) + " retrieved authSession:" + ValidationHelper.HashString(authSession)); 90SpnToken spn = httpWebRequest.CurrentAuthenticationState.GetComputeSpn(httpWebRequest); 94if (httpWebRequest.CurrentAuthenticationState.TransportContext != null) 96binding = httpWebRequest.CurrentAuthenticationState.TransportContext.GetChannelBinding(ChannelBindingKind.Endpoint); 108GlobalLog.Print("KerberosClient::DoAuthenticate() setting SecurityContext for:" + ValidationHelper.HashString(httpWebRequest.CurrentAuthenticationState) + " to authSession:" + ValidationHelper.HashString(authSession)); 109httpWebRequest.CurrentAuthenticationState.SetSecurityContext(authSession, this); 151NTAuthentication authSession = httpWebRequest.CurrentAuthenticationState.GetSecurityContext(this); 152GlobalLog.Print("KerberosClient::Update() key:" + ValidationHelper.HashString(httpWebRequest.CurrentAuthenticationState) + " retrieved authSession:" + ValidationHelper.HashString(authSession)); 161if (httpWebRequest.CurrentAuthenticationState.StatusCodeMatch==httpWebRequest.ResponseStatusCode) { 189httpWebRequest.CurrentAuthenticationState.Authorization.MutuallyAuthenticated = authSession.IsMutualAuthFlag; 204httpWebRequest.CurrentAuthenticationState.ClearSession();
net\System\Net\_NegotiateClient.cs (12)
72authSession = httpWebRequest.CurrentAuthenticationState.GetSecurityContext(this); 73GlobalLog.Print("NegotiateClient::DoAuthenticate() key:" + ValidationHelper.HashString(httpWebRequest.CurrentAuthenticationState) + " retrieved authSession:" + ValidationHelper.HashString(authSession)); 93SpnToken spn = httpWebRequest.CurrentAuthenticationState.GetComputeSpn(httpWebRequest); 97if (httpWebRequest.CurrentAuthenticationState.TransportContext != null) 99binding = httpWebRequest.CurrentAuthenticationState.TransportContext.GetChannelBinding(ChannelBindingKind.Endpoint); 110GlobalLog.Print("NegotiateClient::DoAuthenticate() setting SecurityContext for:" + ValidationHelper.HashString(httpWebRequest.CurrentAuthenticationState) + " to authSession:" + ValidationHelper.HashString(authSession)); 111httpWebRequest.CurrentAuthenticationState.SetSecurityContext(authSession, this); 167NTAuthentication authSession = httpWebRequest.CurrentAuthenticationState.GetSecurityContext(this); 168GlobalLog.Print("NegotiateClient::Update() key:" + ValidationHelper.HashString(httpWebRequest.CurrentAuthenticationState) + " retrieved authSession:" + ValidationHelper.HashString(authSession)); 177if (!authSession.IsCompleted && httpWebRequest.CurrentAuthenticationState.StatusCodeMatch==httpWebRequest.ResponseStatusCode) { 212httpWebRequest.CurrentAuthenticationState.Authorization.MutuallyAuthenticated = authSession.IsMutualAuthFlag; 227httpWebRequest.CurrentAuthenticationState.ClearSession();
net\System\Net\_NtlmClient.cs (11)
72authSession = httpWebRequest.CurrentAuthenticationState.GetSecurityContext(this); 73GlobalLog.Print("NtlmClient::DoAuthenticate() key:" + ValidationHelper.HashString(httpWebRequest.CurrentAuthenticationState) + " retrieved authSession:" + ValidationHelper.HashString(authSession)); 90SpnToken spn = httpWebRequest.CurrentAuthenticationState.GetComputeSpn(httpWebRequest); 94if (httpWebRequest.CurrentAuthenticationState.TransportContext != null) 96binding = httpWebRequest.CurrentAuthenticationState.TransportContext.GetChannelBinding(ChannelBindingKind.Endpoint); 107GlobalLog.Print("NtlmClient::DoAuthenticate() setting SecurityContext for:" + ValidationHelper.HashString(httpWebRequest.CurrentAuthenticationState) + " to authSession:" + ValidationHelper.HashString(authSession)); 108httpWebRequest.CurrentAuthenticationState.SetSecurityContext(authSession, this); 159NTAuthentication authSession = httpWebRequest.CurrentAuthenticationState.GetSecurityContext(this); 160GlobalLog.Print("NtlmClient::Update() key:" + ValidationHelper.HashString(httpWebRequest.CurrentAuthenticationState) + " retrieved authSession:" + ValidationHelper.HashString(authSession)); 169if (!authSession.IsCompleted && httpWebRequest.CurrentAuthenticationState.StatusCodeMatch==httpWebRequest.ResponseStatusCode) { 192httpWebRequest.CurrentAuthenticationState.ClearSession();
net\System\Net\HttpWebRequest.cs (1)
883return CurrentAuthenticationState.ChallengedUri;