developer-delphi-horse-jwt

Community

Secure JWT Bearer middleware for Horse routes.

Authorcslsoftwares
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Middleware that validates JWT Bearer tokens in the Authorization header before executing the route handler for Delphi Horse-based applications. It enables seamless protection of API endpoints by enforcing token validation, subject/audience/issued-at/expiration checks, and optional per-route configuration.

Core Features & Use Cases

  • Global middleware availability via HorseJWT(secret) that protects all routes
  • THorseJWTConfig supports SkipRoutes, Header, IsRequiredSubject, IsRequiredIssuedAt, IsRequiredNotBefore, IsRequiredExpirationTime, IsRequireAudience, ExpectedAudience, and SessionClass
  • Read claims in handlers via Req.Session<TJWT> to access subject, expiration, and other claims
  • Integration with delphi-jose-jwt / JOSE.Core.JWT dependencies; supports per-route and global protection

Quick Start

Use HorseJWT with a secret to protect an endpoint by applying THorseJWTConfig with required claims and (optional) public routes.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: developer-delphi-horse-jwt
Download link: https://github.com/cslsoftwares/ParamentersORM/archive/main.zip#developer-delphi-horse-jwt

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.