Interface IEndpointCapabilityGrantFeature
- Namespace
- AsiBackbone.AspNetCore.Endpoints
- Assembly
- AsiBackbone.AspNetCore.dll
Request feature that records the capability grant an IEndpointCapabilityGrantValidator accepted for the current endpoint governance evaluation.
public interface IEndpointCapabilityGrantFeature
Remarks
DefaultEndpointGovernanceService clears this feature before it calls the validator and, when audit is requested, copies GrantId into the decision receipt's CapabilityGrantId. FromDecisionReceipt(IDecisionReceipt, string?, DateTimeOffset?, string?, string?, string?, string?, string?, string?, string?, string?, string?, string?, string?, DateTimeOffset?, IReadOnlyDictionary<string, string>?, string?) then records it as CapabilityTokenId. A validator should set the feature only after the grant was accepted, and never when it returns a denial.
Properties
GrantId
Gets the identifier of the accepted capability grant.
string GrantId { get; }