Class TokenCacheHelper
Defines the token cache helper, which provides disk-based caching of access tokens (across multiple executions).
Inheritance
System.Object
TokenCacheHelper
Namespace: DNVGL.One.Compute.Platform.Client.Extensions
Assembly: DNVGL.One.Compute.Platform.Client.Extensions.dll
Syntax
public static class TokenCacheHelper : object
Methods
View SourceBind(ITokenCache, IDataProtector, String, String)
Binds methods to decrypt/encrypt and serialize access token with token cache.
Declaration
public static void Bind(ITokenCache tokenCache, IDataProtector dataProtector, string localPath, string applicationScope)
Parameters
| Type | Name | Description |
|---|---|---|
| ITokenCache | tokenCache | The token cache. |
| IDataProtector | dataProtector | The "data protector", used for encrypting and decrypting cashed tokens. |
| System.String | localPath | The path to the token cache directory. |
| System.String | applicationScope | Name of the app. scope required to differentiate various cashed tokens. |