CachedTokenInfo
- Namespace:
PPDS.Auth.Credentials - Assembly:
PPDS.Auth - Kind: Record
- Implements:
IEquatable<CachedTokenInfo>
Summary
Information about a cached token, retrieved without triggering authentication.
Members
Constructors
CachedTokenInfo(DateTimeOffset ExpiresOn, string Username, bool IsExpired)
CachedTokenInfo(DateTimeOffset ExpiresOn, string Username, bool IsExpired)
Information about a cached token, retrieved without triggering authentication.
-
Param
ExpiresOn: When the cached token expires. -
Param
Username: The username/identity associated with the token. -
Param
IsExpired: Whether the token is expired or will expire within 5 minutes.
Methods
Create
CachedTokenInfo Create(DateTimeOffset expiresOn, string username)
Creates token info, automatically calculating IsExpired based on a 5-minute buffer.
Properties
ExpiresOn
DateTimeOffset ExpiresOn { get; set; }
When the cached token expires.
IsExpired
bool IsExpired { get; set; }
Whether the token is expired or will expire within 5 minutes.
Username
string Username { get; set; }
The username/identity associated with the token.