Udostępnij za pośrednictwem


TokenProvider.CreateAzureActiveDirectoryTokenProvider Method

Definition

public static Microsoft.Azure.ServiceBus.Primitives.TokenProvider CreateAzureActiveDirectoryTokenProvider (Microsoft.Azure.ServiceBus.Primitives.AzureActiveDirectoryTokenProvider.AuthenticationCallback authCallback, string authority, object state = default);
static member CreateAzureActiveDirectoryTokenProvider : Microsoft.Azure.ServiceBus.Primitives.AzureActiveDirectoryTokenProvider.AuthenticationCallback * string * obj -> Microsoft.Azure.ServiceBus.Primitives.TokenProvider
Public Shared Function CreateAzureActiveDirectoryTokenProvider (authCallback As AzureActiveDirectoryTokenProvider.AuthenticationCallback, authority As String, Optional state As Object = Nothing) As TokenProvider

Parameters

authCallback
AzureActiveDirectoryTokenProvider.AuthenticationCallback

The user defined authentication delegate to provide access token.

authority
String

URL of the Azure Active Directory instance to issue token.

state
Object

Custom parameters that may be passed into the authentication delegate.

Returns

The TokenProvider for returning Json web token.

Applies to