Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ TryGetAuthenticationChallenge()

static bool System.Net.Http.AuthenticationHelper.TryGetAuthenticationChallenge ( HttpResponseMessage response,
bool isProxyAuth,
Uri authUri,
ICredentials credentials,
out AuthenticationChallenge challenge )
inlinestaticprivate

Definition at line 264 of file AuthenticationHelper.cs.

265 {
267 {
268 challenge = default(AuthenticationChallenge);
269 return false;
270 }
272 if (System.Net.NetEventSource.Log.IsEnabled())
273 {
274 System.Net.NetEventSource.AuthenticationInfo(authUri, $"{(isProxyAuth ? "Proxy" : "Server")} authentication requested with WWW-Authenticate header value '{responseAuthenticationHeaderValues}'");
275 }
277 {
279 }
280 return true;
281 }
static bool IsAuthenticationChallenge(HttpResponseMessage response, bool isProxyAuth)
static HttpHeaderValueCollection< AuthenticationHeaderValue > GetResponseAuthenticationHeaderValues(HttpResponseMessage response, bool isProxyAuth)
static bool TryGetValidAuthenticationChallengeForScheme(string scheme, AuthenticationType authenticationType, Uri uri, ICredentials credentials, HttpHeaderValueCollection< AuthenticationHeaderValue > authenticationHeaderValues, out AuthenticationChallenge challenge)
static readonly System.Net.NetEventSource Log
static void AuthenticationInfo(Uri uri, string message)

References System.Net.NetEventSource.AuthenticationInfo(), System.Net.Http.AuthenticationHelper.GetResponseAuthenticationHeaderValues(), System.Net.Http.AuthenticationHelper.IsAuthenticationChallenge(), System.Net.NetEventSource.Log, System.Net.Http.Proxy, and System.Net.Http.AuthenticationHelper.TryGetValidAuthenticationChallengeForScheme().

Referenced by System.Net.Http.AuthenticationHelper.SendWithAuthAsync(), and System.Net.Http.AuthenticationHelper.SendWithNtAuthAsync().