developer-delphi-horse-security

Generate and validate JWT tokens for Delphi Horse APIs with gbSwagger documentation.

Updated Jan 6, 2026
One-click install
npx skills add https://github.com/cslsoftwares/ParamentersORM --skill developer-delphi-horse-security
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: developer-delphi-horse-security
Source: https://github.com/cslsoftwares/ParamentersORM/tree/main/.cursor/skills/developer-delphi-horse-security_V1.0.0
Command: npx skills add https://github.com/cslsoftwares/ParamentersORM --skill developer-delphi-horse-security

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This module provides secure JWT/JOSE handling for Delphi Horse APIs, enabling token generation, validation and OpenAPI documentation integration.

Core Features & Use Cases

  • Generate and validate JWTs using delphi-jose-jwt (TJWT, TJOSE, TJWTClaims, TJOSEConsumerBuilder)
  • Expose API documentation automatically with gbSwagger (HorseSwagger, Swagger.Info, Swagger.Path)
  • Manage claims and authentication workflows for secure API access in Delphi services

Quick Start

Configure a simple Horse API to issue a HS256 JWT using TJOSE, then validate it with a consumer builder and expose Swagger docs via gbSwagger.

Frequently Asked Questions about developer-delphi-horse-security

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement JWT authentication in a Delphi Horse API?

Implement JWT authentication in a Delphi Horse API by generating and validating tokens with delphi-jose-jwt classes like TJWT, TJOSE, and TJOSEConsumerBuilder. This module handles token creation, validation, and claims management to secure your API endpoints.

How do I generate and validate JWT claims using delphi-jose-jwt?

Generate and validate JWT claims using delphi-jose-jwt by leveraging TJWTClaims to structure payload data and TJOSEConsumerBuilder to verify token integrity. This ensures secure authentication workflows and proper claims handling for Delphi services.

Can I automatically expose OpenAPI documentation for a Delphi Horse API?

Yes, you can automatically expose OpenAPI documentation for a Delphi Horse API using gbSwagger. By configuring Swagger.Info and Swagger.Path, the module generates and publishes interactive API documentation for your secured endpoints.

Does this module support HS256 token creation and verification for Delphi services?

Yes, this module supports HS256 token creation and verification for Delphi services. You can configure a simple Horse API to issue an HS256 JWT using TJOSE and subsequently validate it using a consumer builder.

What is the best way to secure Delphi Horse endpoints with JOSE?

The best way to secure Delphi Horse endpoints with JOSE is applying TJOSE and TJOSEConsumerBuilder for token generation and validation. This approach provides end-to-end authentication by managing claims and verifying token signatures.

When should I use TJOSEConsumerBuilder for JWT validation in Delphi?

Use TJOSEConsumerBuilder for JWT validation in Delphi when you need to verify token signatures and enforce claims for secure API access. It provides end-to-end authentication by validating tokens issued through TJOSE in your Horse services.