api-authentication

Generate, validate, rotate, and revoke API keys with JWT and rate limiting.

Updated Feb 26, 2026
One-click install
npx skills add https://github.com/engineers-hub-ltd-in-house-project/eh-skills --skill api-authentication-engineers-hub-ltd-in-house-project
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-authentication
Source: https://github.com/engineers-hub-ltd-in-house-project/eh-skills/tree/main/skills/authentication/api-authentication
Command: npx skills add https://github.com/engineers-hub-ltd-in-house-project/eh-skills --skill api-authentication-engineers-hub-ltd-in-house-project

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires jwt-management, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides comprehensive patterns for designing and implementing secure API authentication, protecting your services from unauthorized access and abuse.

Core Features & Use Cases

  • API Key Management: Generate, validate, rotate, and revoke API keys securely.
  • Authentication Middleware: Implement robust middleware supporting Bearer Tokens (JWT) and API Keys.
  • Rate Limiting: Protect your APIs from abuse with configurable rate limiting based on client tiers.
  • Use Case: Secure a public API by implementing API key authentication with rate limiting, ensuring only authorized clients can access resources and preventing denial-of-service attacks.

Quick Start

Use the api-authentication skill to create a new API key for a user with 'read' and 'write' scopes.

Frequently Asked Questions about api-authentication

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

FAQPage Schema
How do I implement JWT and API key authentication middleware for my API?

API authentication middleware secures endpoints by validating Bearer Tokens (JWT) and API Keys. This Skill implements both methods, intercepting requests to verify credentials before granting access to protected resources.

What is the best way to generate and revoke API keys for user self-service?

Secure API key management involves generating, validating, rotating, and revoking credentials via a dedicated API. This Skill provides patterns for a self-service portal, allowing users to manage their own keys with specific read and write scopes.

How does sliding window rate limiting work for API security?

Sliding window rate limiting prevents API abuse by tracking requests over a rolling time frame rather than fixed intervals. This Skill enforces this approach with configurable tiers, throttling clients who exceed their designated request limits.

Can I configure different rate limiting tiers for API clients?

Yes, API rate limiting supports configurable client tiers. This Skill enforces a sliding window approach that applies distinct request limits based on the assigned tier, protecting APIs from denial-of-service attacks and abuse.

Do I need a jwt-management dependency to secure my APIs with Bearer Tokens?

Yes, implementing Bearer Token authentication requires the jwt-management dependency. This Skill integrates JWT validation within its middleware, relying on that prerequisite to handle token signing and verification securely.