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

◆ TrySetDigestAuthToken()

static async ValueTask< bool > System.Net.Http.AuthenticationHelper.TrySetDigestAuthToken ( HttpRequestMessage request,
NetworkCredential credential,
DigestResponse digestResponse,
bool isProxyAuth )
inlinestaticprivate

Definition at line 334 of file AuthenticationHelper.cs.

335 {
337 if (string.IsNullOrEmpty(text))
338 {
339 if (System.Net.NetEventSource.Log.IsEnabled())
340 {
341 System.Net.NetEventSource.AuthenticationError(request.RequestUri, "Unable to find 'Digest' authentication token when authenticating with " + (isProxyAuth ? "proxy" : "server"));
342 }
343 return false;
344 }
347 return true;
348 }
static async Task< string > GetDigestTokenForCredential(NetworkCredential credential, HttpRequestMessage request, DigestResponse digestResponse)
static void SetRequestAuthenticationHeaderValue(HttpRequestMessage request, AuthenticationHeaderValue headerValue, bool isProxyAuth)
static readonly System.Net.NetEventSource Log
static void AuthenticationError(Uri uri, string message)

References System.Net.NetEventSource.AuthenticationError(), System.Net.Http.AuthenticationHelper.GetDigestTokenForCredential(), System.Net.NetEventSource.Log, System.Net.Http.AuthenticationHelper.SetRequestAuthenticationHeaderValue(), and System.text.

Referenced by System.Net.Http.AuthenticationHelper.SendWithAuthAsync().