C# Class Tailspin.Surveys.TokenStorage.DistributedTokenCacheService

Inheritance: TokenCacheService
Show file Open project: Azure-Samples/guidance-identity-management-for-multitenant-apps

Public Methods

Method Description
DistributedTokenCacheService ( IDistributedCache distributedCache, IHttpContextAccessor contextAccessor, ILoggerFactory loggerFactory, IDataProtectionProvider dataProtectionProvider ) : System

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

GetCacheAsync ( ClaimsPrincipal claimsPrincipal ) : Task

Returns an instance of Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCache.

Method Details

DistributedTokenCacheService() public method

Initializes a new instance of Tailspin.Surveys.TokenStorage.DistributedTokenCacheService
public DistributedTokenCacheService ( IDistributedCache distributedCache, IHttpContextAccessor contextAccessor, ILoggerFactory loggerFactory, IDataProtectionProvider dataProtectionProvider ) : System
distributedCache IDistributedCache
contextAccessor IHttpContextAccessor An instance of used to get access to the current HTTP context.
loggerFactory ILoggerFactory used to create type-specific instances.
dataProtectionProvider IDataProtectionProvider An for creating a data protector.
return System

GetCacheAsync() public method

Returns an instance of Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCache.
public GetCacheAsync ( ClaimsPrincipal claimsPrincipal ) : Task
claimsPrincipal System.Security.Claims.ClaimsPrincipal Current user's .
return Task