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.
This abstract base class can be extended to implement additional token providers.
public abstract class TokenProvider
type TokenProvider = class
Public MustInherit Class TokenProvider
Initializes a new instance of the TokenProvider class.
Gets the synchronization object for the given instance.
|CreateAzureActiveDirectoryTokenProvider(TokenProvider+AuthenticationCallback, String, Object)||
Creates an Azure Active Directory token provider.
Creates a TokenProvider for a Azure managed identity with a default instance of ManagedIdentityCredential.
Creates a TokenProvider for a Azure managed or user-assigned identity with a provided instance of ManagedIdentityCredential.
Construct a TokenProvider based on a sharedAccessSignature.
Construct a TokenProvider based on the provided Key Name and Shared Access Key.
Gets a SecurityToken for the given audience and duration.
Implemented by derived TokenProvider types to generate their SecurityToken.