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