C# Class Microsoft.Alm.Authentication.AzureAuthority

Interfaces with Azure to perform authentication and identity services.
Inheritance: IAzureAuthority
Exibir arquivo Open project: Microsoft/Git-Credential-Manager-for-Windows Class Usage Examples

Public Methods

Method Description
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.

Method Details

AzureAuthority() public method

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.
return System

GetAuthorityUrl() public static method

public static GetAuthorityUrl ( System.Guid tenantId ) : string
tenantId System.Guid
return string

InteractiveAcquireToken() public method

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. ///
return Task

NoninteractiveAcquireToken() public method

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. ///
return Task