PowerPlatformToken
- Namespace:
PPDS.Auth.Credentials - Assembly:
PPDS.Auth - Kind: Class
Summary
Represents an access token for Power Platform APIs.
Members
Methods
IsExpired
bool IsExpired(int bufferMinutes)
Returns true if the token is expired or will expire within the buffer period.
- Param
bufferMinutes: Buffer time before expiration to consider expired.
Properties
AccessToken
string AccessToken { get; set; }
Gets the access token string.
ExpiresOn
DateTimeOffset ExpiresOn { get; set; }
Gets the token expiration time.
Identity
string Identity { get; set; }
Gets the identity that acquired the token (username or app ID).
Resource
string Resource { get; set; }
Gets the resource the token is valid for.