C# Class Tailspin.Surveys.TokenStorage.DistributedTokenCache

Inheritance: Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCache
ファイルを表示 Open project: Azure-Samples/guidance-identity-management-for-multitenant-apps Class Usage Examples

Public Methods

Method Description
AfterAccessNotification ( Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCacheNotificationArgs args ) : void

Handles the AfterAccessNotification event, which is triggered right after ADAL accesses the cache.

DistributedTokenCache ( ClaimsPrincipal claimsPrincipal, IDistributedCache distributedCache, ILoggerFactory loggerFactory, IDataProtectionProvider dataProtectionProvider ) : System

Initializes a new instance of Tailspin.Surveys.TokenStorage.DistributedTokenCache

Private Methods

Method Description
BuildCacheKey ( ClaimsPrincipal claimsPrincipal ) : string

Builds the cache key to use for this item in the distributed cache.

LoadFromCache ( ) : void

Attempts to load tokens from distributed cache.

Method Details

AfterAccessNotification() public method

Handles the AfterAccessNotification event, which is triggered right after ADAL accesses the cache.
public AfterAccessNotification ( Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCacheNotificationArgs args ) : void
args Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCacheNotificationArgs An instance of containing information for this event.
return void

DistributedTokenCache() public method

Initializes a new instance of Tailspin.Surveys.TokenStorage.DistributedTokenCache
public DistributedTokenCache ( ClaimsPrincipal claimsPrincipal, IDistributedCache distributedCache, ILoggerFactory loggerFactory, IDataProtectionProvider dataProtectionProvider ) : System
claimsPrincipal System.Security.Claims.ClaimsPrincipal A for the signed in user
distributedCache IDistributedCache An implementation of in which to store the access tokens.
loggerFactory ILoggerFactory used to create type-specific instances.
dataProtectionProvider IDataProtectionProvider An for creating a data protector.
return System