verifiable-token-based-authentication-pattern

Installation
SKILL.md

Verifiable Token-Based Authentication Security Pattern

A subject is authenticated using a token that itself contains the necessary information to determine the principal. The system verifies the token is valid (not tampered, not expired) without needing to look up stored evidence.

Core Components

Role Type Responsibility
Subject Entity Provides token with action requests
Enforcer Enforcement Point Ensures token verification before processing
Verifier Decision Point Manages token validity verification
Cryptographer Cryptographic Primitive Verifies token integrity
Key Manager Entity Manages cryptographic keys
Registrar Entity Issues tokens after initial authentication

Data Elements

  • token: Self-contained credential with principal and metadata
  • principal: Identity extracted from valid token
Related skills
Installs
7
GitHub Stars
4
First Seen
Feb 19, 2026