Skip to content

EventsPresenceStep Class

Requires the "events" claim to be a JSON object holding at least one statement: "The 'events' claim value MUST be a JSON object that contains at least one member" (RFC 8417 Section 2). A JWT without it is not a SET at all - which doubles as the confusion detector RFC 8417 Section 4.3 recommends, "reject JWTs containing an 'events' claim unless the JWT is intended to be a SET" read from the receiving side.

C#
public sealed class EventsPresenceStep : Abblix.SecurityEvents.Validation.ISecurityEventTokenValidator

Inheritance System.Object → EventsPresenceStep

Implements ISecurityEventTokenValidator

Methods

EventsPresenceStep.ValidateAsync(SecurityEventTokenValidationContext, CancellationToken) Method

Checks the token in flight.

C#
public System.Threading.Tasks.ValueTask<Abblix.SecurityEvents.Validation.SecurityEventTokenValidationError?> ValidateAsync(Abblix.SecurityEvents.Validation.SecurityEventTokenValidationContext context, System.Threading.CancellationToken cancellationToken);

Parameters

context SecurityEventTokenValidationContext

The state accumulated by earlier steps.

cancellationToken System.Threading.CancellationToken

Cancels I/O the step performs, such as key retrieval.

Implements ValidateAsync(SecurityEventTokenValidationContext, CancellationToken)

Returns

System.Threading.Tasks.ValueTask<SecurityEventTokenValidationError>
Null to pass the token on; an error to stop the pipeline with that verdict.