TokenProvider Class
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.
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) |
Construct a TokenProvider based on a sharedAccessSignature. |
CreateSharedAccessSignatureTokenProvider(String, String) |
Construct a TokenProvider based on the provided Key Name and Shared Access Key. |
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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應