Microsoft.Identity.Client.AuthenticationParameters.CreateFromUnauthorizedResponseAsync C# (CSharp) 메소드

CreateFromUnauthorizedResponseAsync() 공개 정적인 메소드

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).
리턴 Task
        public static async Task<AuthenticationParameters> CreateFromUnauthorizedResponseAsync(HttpResponseMessage responseMessage)
        {
            return CreateFromUnauthorizedResponseCommon(await HttpClientWrapper.CreateResponseAsync(responseMessage).ConfigureAwait(false));
        }