你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

SharedTokenCacheProvider Class

Definition

public class SharedTokenCacheProvider : Microsoft.Azure.Commands.Common.Authentication.PowerShellTokenCacheProvider
type SharedTokenCacheProvider = class
    inherit PowerShellTokenCacheProvider
Public Class SharedTokenCacheProvider
Inherits PowerShellTokenCacheProvider
Inheritance
SharedTokenCacheProvider

Constructors

SharedTokenCacheProvider(Byte[])

Fields

_tokenCacheDataToFlush (Inherited from PowerShellTokenCacheProvider)
PowerShellTokenCacheProviderKey (Inherited from PowerShellTokenCacheProvider)

Methods

ClearCache()
CreatePublicClient(String, String)

Creates a public client app with tenantId. This method is not meant for authentication purpose. Use APIs from Azure.Identity instead.

(Inherited from PowerShellTokenCacheProvider)
CreatePublicClient(String)

Creates a public client app. This method is not meant for authentication purpose. Use APIs from Azure.Identity instead.

(Inherited from PowerShellTokenCacheProvider)
FlushTokenData()
GetSubscriptionsFromTenantToken(IAccount, IAzureEnvironment, IAccessToken, Action<String>) (Inherited from PowerShellTokenCacheProvider)
GetTenantTokensForAccount(IAccount, IAzureEnvironment, Action<String>) (Inherited from PowerShellTokenCacheProvider)
GetTokenCachePersistenceOptions()
ListAccounts(String) (Inherited from PowerShellTokenCacheProvider)
ReadTokenData()
RegisterCache(IPublicClientApplication)
SupportCachePersistence(String)

Check if current environment support token cache persistence

TryRemoveAccount(String) (Inherited from PowerShellTokenCacheProvider)
UpdateTokenDataWithoutFlush(Byte[]) (Inherited from PowerShellTokenCacheProvider)

Applies to