pyjwt-fastapi-validation

Official

Secure FastAPI with server-side JWT validation for Azure AD M2M tokens.

Authorai-enhanced-engineer
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill addresses the challenge of server-side JWT validation in FastAPI for Azure AD–issued M2M tokens, ensuring secure and efficient authentication in your FastAPI services.

Core Features & Use Cases

  • JWT Validation: Server-side validation of Azure AD–issued JWTs in FastAPI services.
  • JWKS Caching: Utilizes PyJWKClient for caching JWKS to optimize performance.
  • Claim Checks: Mandatory checks for aud and iss claims for security.
  • Typed Claims: Pydantic AzureADClaims for typed claims handling.
  • Use Case: Protecting FastAPI endpoints, building auth dependencies, debugging 401s, and migrating from custom HMAC validation to PyJWKClient.

Quick Start

Install the pyjwt-fastapi-validation skill to secure your FastAPI endpoints that require Azure AD M2M tokens.

Dependency Matrix

Required Modules

fastapipyjwtpyjwkclient

Components

scriptsreferences

đŸ’» 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: pyjwt-fastapi-validation
Download link: https://github.com/ai-enhanced-engineer/aiee-skills/archive/main.zip#pyjwt-fastapi-validation

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 620,000+ vetted skills library on demand.