/// <summary> /// Creates authentication parameters from the response received from the response received from the resource. This method expects the response to have unauthorized status and /// WWW-Authenticate header containing authentication parameters.</summary> /// <param name="responseMessage">Response received from the resource (e.g. via an http call using HttpClient).</param> /// <returns>AuthenticationParameters object containing authentication parameters</returns> public static async Task <AuthenticationParameters> CreateFromUnauthorizedResponseAsync(HttpResponseMessage responseMessage) { return(CreateFromUnauthorizedResponseCommon(await HttpClientWrapper.CreateResponseAsync(responseMessage).ConfigureAwait(false))); }