Microsoft.Identity.Client.AuthenticationParameters.CreateFromUnauthorizedResponseAsync C# (CSharp) Method

CreateFromUnauthorizedResponseAsync() public static method

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.
public static CreateFromUnauthorizedResponseAsync ( HttpResponseMessage responseMessage ) : Task
responseMessage System.Net.Http.HttpResponseMessage Response received from the resource (e.g. via an http call using HttpClient).
return Task
        public static async Task<AuthenticationParameters> CreateFromUnauthorizedResponseAsync(HttpResponseMessage responseMessage)
        {
            return CreateFromUnauthorizedResponseCommon(await HttpClientWrapper.CreateResponseAsync(responseMessage).ConfigureAwait(false));
        }