Class CapabilityTokenResponse
- Namespace
- ReferenceApplication.Web.Controllers.Api
- Assembly
- ReferenceApplication.Web.dll
An issued capability token and the values it is bound to.
public sealed record CapabilityTokenResponse : IEquatable<CapabilityTokenResponse>
- Inheritance
-
CapabilityTokenResponse
- Implements
- Inherited Members
Constructors
CapabilityTokenResponse(string, string, string, string, IReadOnlyList<string>, string, DateTimeOffset, DateTimeOffset)
An issued capability token and the values it is bound to.
public CapabilityTokenResponse(string TokenId, string Token, string HeaderName, string OperationName, IReadOnlyList<string> Scopes, string ResourceBinding, DateTimeOffset IssuedUtc, DateTimeOffset ExpiresUtc)
Parameters
TokenIdstringThe token identifier recorded in decision evidence when the token is used.
TokenstringThe encoded token.
HeaderNamestringThe request header that must carry the token.
OperationNamestringThe governed operation the token is bound to.
ScopesIReadOnlyList<string>The granted capability scopes.
ResourceBindingstringThe request payload binding.
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
HeaderName
The request header that must carry the token.
public string HeaderName { 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 request payload binding.
public string ResourceBinding { get; init; }
Property Value
Scopes
The granted capability scopes.
public IReadOnlyList<string> Scopes { get; init; }
Property Value
Token
The encoded token.
public string Token { get; init; }
Property Value
TokenId
The token identifier recorded in decision evidence when the token is used.
public string TokenId { get; init; }