TokenProvider.CreateAzureActiveDirectoryTokenProvider Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET