C# 클래스 Microsoft.Identity.Client.AuthenticationParameters

Contains authentication parameters based on unauthorized response from resource server.
파일 보기 프로젝트 열기: AzureAD/microsoft-authentication-library-for-dotnet 1 사용 예제들

공개 메소드들

메소드 설명
CreateFromResourceUrlAsync ( Uri resourceUrl ) : Task

Creates authentication parameters from address of the resource. This method expects the resource server to return unauthorized response with WWW-Authenticate header containing authentication parameters.

CreateFromResponseAuthenticateHeader ( string authenticateHeader ) : AuthenticationParameters

Creates authentication parameters from the WWW-Authenticate header in response received from resource. This method expects the header to contain authentication parameters.

CreateFromUnauthorizedResponseAsync ( HttpResponseMessage responseMessage ) : Task

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.

비공개 메소드들

메소드 설명
CreateFromResourceUrlCommonAsync ( Uri resourceUrl ) : Task
CreateFromUnauthorizedResponseCommon ( IHttpWebResponse response ) : AuthenticationParameters

메소드 상세

CreateFromResourceUrlAsync() 공개 정적인 메소드

Creates authentication parameters from address of the resource. This method expects the resource server to return unauthorized response with WWW-Authenticate header containing authentication parameters.
public static CreateFromResourceUrlAsync ( Uri resourceUrl ) : Task
resourceUrl System.Uri Address of the resource
리턴 Task

CreateFromResponseAuthenticateHeader() 공개 정적인 메소드

Creates authentication parameters from the WWW-Authenticate header in response received from resource. This method expects the header to contain authentication parameters.
public static CreateFromResponseAuthenticateHeader ( string authenticateHeader ) : AuthenticationParameters
authenticateHeader string Content of header WWW-Authenticate header
리턴 AuthenticationParameters

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