Table of Contents

TGetSecretProc Anonymous method

Callback invoked to provide the secret (key) used to validate the signature of a JSON Web Token.

Remarks

JWT: The token being validated, already deserialized so its header and claims can be inspected. Context: The HTTP server context of the current request. Secret: Set this parameter to the key that must be used to validate the token signature.

Syntax

Unit: Sparkle.Middleware.Jwt

TGetSecretProc = reference to procedure(const JWT: TJWT; Context: THttpServerContext; var Secret: TBytes);