C# Класс Microsoft.Alm.Authentication.AzureAuthority

Interfaces with Azure to perform authentication and identity services.
Наследование: IAzureAuthority
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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