identityserver-api-protection

Official

Protect APIs with IdentityServer tokens and PoP.

AuthorDuendeSoftware
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Protecting APIs with IdentityServer involves validating access tokens, supporting both JWTs and reference tokens, enforcing scopes, and applying PoP to guard against token theft across multi-audience deployments.

Core Features & Use Cases

  • JWT Bearer Authentication: Validate JWT access tokens with issuer authority and proper type filtering (at+jwt) to prevent token confusion.
  • Reference Token Introspection: Use OAuth2 introspection for opaque tokens and ensure ApiSecrets are configured for secure introspection.
  • Handling Both JWT and Reference Tokens: Unified API token handling by forwarding reference tokens to an introspection endpoint while validating JWTs locally.
  • Scope-Based Authorization: Implement policies based on token scopes to enforce fine-grained access control across resources.
  • Proof-of-Possession (PoP): Validate PoP tokens via mTLS cnf and DPoP proof to bind tokens to clients and requests.
  • Local API Authentication: Support co-hosted IdentityServer APIs with local API authentication for reduced latency.
  • Multi-Audience APIs: Support multiple API resources by validating multiple audiences.

Quick Start

Configure your API to validate JWTs, enable reference token introspection when using opaque tokens, and implement PoP (mTLS/DPoP) as described.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 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: identityserver-api-protection
Download link: https://github.com/DuendeSoftware/duende-skills/archive/main.zip#identityserver-api-protection

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