Table of Contents

TForbidRequestProc Anonymous method

Callback invoked to decide whether the current request must be rejected, regardless of the token state.

Remarks

Context: The HTTP server context of the current request. Forbid: Set to True to reject the request with a 401 response, or False to allow it.

Syntax

Unit: Sparkle.Middleware.Jwt

TForbidRequestProc = reference to procedure(Context: THttpServerContext; var Forbid: Boolean);