TokenProvider Class

Definition

This abstract base class can be extended to implement additional token providers.

public abstract class TokenProvider
type TokenProvider = class
Public MustInherit Class TokenProvider
Inheritance
TokenProvider

Constructors

TokenProvider()

Initializes a new instance of the TokenProvider class.

Properties

ThisLock

Gets the synchronization object for the given instance.

Methods

CreateAzureActiveDirectoryTokenProvider(TokenProvider+AuthenticationCallback, String, Object)

Creates an Azure Active Directory token provider.

CreateManagedIdentityTokenProvider()

Creates a TokenProvider for a Azure managed identity with a default instance of ManagedIdentityCredential.

CreateManagedIdentityTokenProvider(ManagedIdentityCredential)

Creates a TokenProvider for a Azure managed or user-assigned identity with a provided instance of ManagedIdentityCredential.

CreateSharedAccessSignatureTokenProvider(String, String)

Construct a TokenProvider based on the provided Key Name and Shared Access Key.

CreateSharedAccessSignatureTokenProvider(String)

Construct a TokenProvider based on a sharedAccessSignature.

GetTokenAsync(String, TimeSpan)

Gets a SecurityToken for the given audience and duration.

OnGetTokenAsync(String, TimeSpan)

Implemented by derived TokenProvider types to generate their SecurityToken.

Applies to