SharedTokenCacheCredential Class

Definition

Authenticates using tokens in the local cache shared between Microsoft applications.

public class SharedTokenCacheCredential : Azure.Core.TokenCredential
type SharedTokenCacheCredential = class
    inherit TokenCredential
Public Class SharedTokenCacheCredential
Inherits TokenCredential
Inheritance
SharedTokenCacheCredential

Constructors

SharedTokenCacheCredential()

Creates a new SharedTokenCacheCredential which will authenticate users signed in through developer tools supporting Azure single sign on.

SharedTokenCacheCredential(SharedTokenCacheCredentialOptions)

Creates a new SharedTokenCacheCredential which will authenticate users signed in through developer tools supporting Azure single sign on.

SharedTokenCacheCredential(String, TokenCredentialOptions)

Creates a new SharedTokenCacheCredential which will authenticate users signed in through developer tools supporting Azure single sign on.

Methods

GetToken(TokenRequestContext, CancellationToken)

Obtains an AccessToken token for a user account silently if the user has already authenticated to another Microsoft application participating in SSO through a shared MSAL cache. This method is called automatically by Azure SDK client libraries. You may call this method directly, but you must also handle token caching and token refreshing.

GetTokenAsync(TokenRequestContext, CancellationToken)

Obtains an AccessToken token for a user account silently if the user has already authenticated to another Microsoft application participating in SSO through a shared MSAL cache. This method is called automatically by Azure SDK client libraries. You may call this method directly, but you must also handle token caching and token refreshing.

Applies to