C# 클래스 Microsoft.Alm.Authentication.AzureAuthority

Interfaces with Azure to perform authentication and identity services.
상속: IAzureAuthority
파일 보기 프로젝트 열기: Microsoft/Git-Credential-Manager-for-Windows 1 사용 예제들

공개 메소드들

메소드 설명
AzureAuthority ( string authorityHostUrl = DefaultAuthorityHostUrl ) : System

Creates a new AzureAuthority with an optional authority host url.

GetAuthorityUrl ( System.Guid tenantId ) : string
InteractiveAcquireToken ( TargetUri targetUri, string clientId, string resource, Uri redirectUri, string queryParameters = null ) : Task

acquires a Token from the authority via an interactive user logon prompt.

NoninteractiveAcquireToken ( TargetUri targetUri, string clientId, string resource, Uri redirectUri, string queryParameters = null ) : Task

Acquires a Token from the authority via an non-interactive user logon.

메소드 상세

AzureAuthority() 공개 메소드

Creates a new AzureAuthority with an optional authority host url.
public AzureAuthority ( string authorityHostUrl = DefaultAuthorityHostUrl ) : System
authorityHostUrl string Optional: sets a non-default authority host url.
리턴 System

GetAuthorityUrl() 공개 정적인 메소드

public static GetAuthorityUrl ( System.Guid tenantId ) : string
tenantId System.Guid
리턴 string

InteractiveAcquireToken() 공개 메소드

acquires a Token from the authority via an interactive user logon prompt.
public InteractiveAcquireToken ( TargetUri targetUri, string clientId, string resource, Uri redirectUri, string queryParameters = null ) : Task
targetUri TargetUri /// The uniform resource indicator of the resource access tokens are being requested for. ///
clientId string Identifier of the client requesting the token.
resource string /// Identifier of the target resource that is the recipient of the requested token. ///
redirectUri System.Uri /// Address to return to upon receiving a response from the authority. ///
queryParameters string /// Optional: appended as-is to the query string in the HTTP authentication request to the /// authority. ///
리턴 Task

NoninteractiveAcquireToken() 공개 메소드

Acquires a Token from the authority via an non-interactive user logon.
public NoninteractiveAcquireToken ( TargetUri targetUri, string clientId, string resource, Uri redirectUri, string queryParameters = null ) : Task
targetUri TargetUri /// The uniform resource indicator of the resource access tokens are being requested for. ///
clientId string Identifier of the client requesting the token.
resource string /// Identifier of the target resource that is the recipient of the requested token. ///
redirectUri System.Uri /// Address to return to upon receiving a response from the authority. ///
queryParameters string /// Optional: appended as-is to the query string in the HTTP authentication request to the /// authority. ///
리턴 Task