Table of Contents

Class OboTokenCacheIndex

Namespace
Arc4u.OAuth2.TokenProviders
Assembly
Arc4u.OAuth2.AspNetCore.Authentication.dll

The cache keys of the on-behalf-of tokens obtained for one user, with their expiration, stored by AzureADOboTokenProvider so they can be removed when the user signs out. When the cache serializer uses a JsonSerializerContext, add this type to it.

public record OboTokenCacheIndex : IEquatable<OboTokenCacheIndex>
Inheritance
OboTokenCacheIndex
Implements
Inherited Members

Constructors

OboTokenCacheIndex(Dictionary<string, DateTime>)

The cache keys of the on-behalf-of tokens obtained for one user, with their expiration, stored by AzureADOboTokenProvider so they can be removed when the user signs out. When the cache serializer uses a JsonSerializerContext, add this type to it.

public OboTokenCacheIndex(Dictionary<string, DateTime> Keys)

Parameters

Keys Dictionary<string, DateTime>

The cache keys of the tokens and their expiration date (UTC).

Properties

ExpiresOnUtc

Gets the expiration of the last token: the index is kept until then. An empty index is already expired.

[JsonIgnore]
public DateTime ExpiresOnUtc { get; }

Property Value

DateTime

Remarks

It is computed from Keys, so it is not stored in the cache.

Keys

The cache keys of the tokens and their expiration date (UTC).

public Dictionary<string, DateTime> Keys { get; init; }

Property Value

Dictionary<string, DateTime>