Table of Contents

TBeforeValidationProc Anonymous method

Callback invoked just before the token is validated, allowing custom validation rules to be added.

Remarks

JWT: The token about to be validated. Context: The HTTP server context of the current request. Builder: The consumer builder, prefilled with the default validations, that runs the validation.

Syntax

Unit: Sparkle.Middleware.Jwt

TBeforeValidationProc = reference to procedure(const JWT: TJWT; Context: THttpServerContext; const Builder: IJOSEConsumerBuilder);