Class IssuedCapabilityToken
- Namespace
- ReferenceApplication.Web.Governance
- Assembly
- ReferenceApplication.Web.dll
An issued capability token and the values it is bound to.
public sealed record IssuedCapabilityToken : IEquatable<IssuedCapabilityToken>
- Inheritance
-
IssuedCapabilityToken
- Implements
- Inherited Members
Constructors
IssuedCapabilityToken(string, string, string, IReadOnlyList<string>, string, DateTimeOffset, DateTimeOffset)
An issued capability token and the values it is bound to.
public IssuedCapabilityToken(string TokenId, string Token, string OperationName, IReadOnlyList<string> Scopes, string ResourceBinding, DateTimeOffset IssuedUtc, DateTimeOffset ExpiresUtc)
Parameters
TokenIdstringThe unique token identifier recorded in decision evidence when the token is used.
TokenstringThe encoded token to send in the capability grant request header.
OperationNamestringThe governed operation the token is bound to.
ScopesIReadOnlyList<string>The granted capability scopes.
ResourceBindingstringThe form-field binding the token is bound to.
IssuedUtcDateTimeOffsetWhen the token was issued, and when it becomes valid.
ExpiresUtcDateTimeOffsetWhen the token expires.
Properties
ExpiresUtc
When the token expires.
public DateTimeOffset ExpiresUtc { get; init; }
Property Value
IssuedUtc
When the token was issued, and when it becomes valid.
public DateTimeOffset IssuedUtc { get; init; }
Property Value
OperationName
The governed operation the token is bound to.
public string OperationName { get; init; }
Property Value
ResourceBinding
The form-field binding the token is bound to.
public string ResourceBinding { get; init; }
Property Value
Scopes
The granted capability scopes.
public IReadOnlyList<string> Scopes { get; init; }
Property Value
Token
The encoded token to send in the capability grant request header.
public string Token { get; init; }
Property Value
TokenId
The unique token identifier recorded in decision evidence when the token is used.
public string TokenId { get; init; }