Метод | Описание | |
---|---|---|
AzureAuthority ( string authorityHostUrl = DefaultAuthorityHostUrl ) : System |
Creates a new AzureAuthority with an optional authority host url.
|
|
GetAuthorityUrl ( System.Guid tenantId ) : string | ||
InteractiveAcquireToken ( |
acquires a Token from the authority via an interactive user logon prompt.
|
|
NoninteractiveAcquireToken ( |
Acquires a Token from the authority via an non-interactive user logon.
|
public AzureAuthority ( string authorityHostUrl = DefaultAuthorityHostUrl ) : System | ||
authorityHostUrl | string | Optional: sets a non-default authority host url. |
Результат | System |
public static GetAuthorityUrl ( System.Guid tenantId ) : string | ||
tenantId | System.Guid | |
Результат | string |
public InteractiveAcquireToken ( |
||
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 | /// 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 |
public NoninteractiveAcquireToken ( |
||
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 | /// 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 |