TokenAcquirerTokenCredential 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.
Caution
Use MicrosoftIdentityTokenCredential (registered via AddMicrosoftIdentityAzureTokenCredential). See https://aka.ms/ms-id-web/v3-to-v4
Azure SDK token credential based on the ITokenAcquisition service. It's recommended to use MicrosoftIdentityTokenCredential. See Readme-Azure.md file.
[System.Obsolete("Use MicrosoftIdentityTokenCredential (registered via AddMicrosoftIdentityAzureTokenCredential). See https://aka.ms/ms-id-web/v3-to-v4", false)]
public class TokenAcquirerTokenCredential : Azure.Core.TokenCredential
[<System.Obsolete("Use MicrosoftIdentityTokenCredential (registered via AddMicrosoftIdentityAzureTokenCredential). See https://aka.ms/ms-id-web/v3-to-v4", false)>]
type TokenAcquirerTokenCredential = class
inherit TokenCredential
Public Class TokenAcquirerTokenCredential
Inherits TokenCredential
- Inheritance
-
TokenAcquirerTokenCredential
- Attributes
Constructors
| Name | Description |
|---|---|
| TokenAcquirerTokenCredential(ITokenAcquirer) |
Constructor from an ITokenAcquisition service. |
Methods
| Name | Description |
|---|---|
| GetToken(TokenRequestContext, CancellationToken) | Gets an AccessToken for the specified set of scopes. |
| GetTokenAsync(TokenRequestContext, CancellationToken) | Gets an AccessToken for the specified set of scopes. |