developer-delphi-horse-basic-auth

Provide HTTP Basic Authentication middleware for Horse with callback credential validation.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Middleware de autenticação HTTP Basic (header Authorization) para Horse, simplificando a validação de credenciais e a proteção de rotas.

Core Features & Use Cases

  • Suporta callback de validação de credenciais
  • Configuração avançada com THorseBasicAuthenticationConfig (Header, RealmMessage, SkipRoutes)
  • Proteção de rotas em APIs Horse, incluindo casos de integração servidor-a-servidor

Quick Start

Call THorse.Use(HorseBasicAuthentication(...)) with a validation callback to start protecting routes.

Frequently Asked Questions about developer-delphi-horse-basic-auth

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

FAQPage Schema
How do I add HTTP Basic authentication to Horse routes in Delphi?▼

To add HTTP Basic authentication to Horse routes, apply the middleware using THorse.Use(HorseBasicAuthentication(...)) with a validation callback to protect endpoints and validate credentials.

Can I skip authentication for specific Horse routes?▼

Yes, you can skip authentication for specific Horse routes by configuring the SkipRoutes property within the THorseBasicAuthenticationConfig object during middleware setup.

How does HTTP Basic authentication validate user credentials in a Horse application?▼

HTTP Basic authentication validates user credentials in a Horse application by extracting the Authorization header and passing the decoded username and password to a custom validation callback.

What is the best way to secure internal Delphi APIs and microservices?▼

To secure internal Delphi APIs and microservices, use Horse Basic authentication middleware with a configurable realm message and credential validation callback to restrict server-to-server access.

Do I need the Horse package to use HTTP Basic authentication middleware?▼

Yes, you need the Horse package and the Horse.BasicAuthentication module installed in your Delphi environment to implement and compile the HTTP Basic authentication middleware.

How do I customize the realm message for HTTP Basic authentication in Horse?▼

You customize the realm message for HTTP Basic authentication in Horse by assigning a string to the RealmMessage property inside the THorseBasicAuthenticationConfig configuration object.