oauth-oidc-protocols

Implement and debug OAuth 2.0 and OpenID Connect flows with PKCE, JWKS, and token management.

10|2|Updated Mar 16, 2026
One-click install
npx skills add https://github.com/DuendeSoftware/duende-skills --skill oauth-oidc-protocols
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: oauth-oidc-protocols
Source: https://github.com/DuendeSoftware/duende-skills/tree/main/skills/oauth-oidc-protocols
Command: npx skills add https://github.com/DuendeSoftware/duende-skills --skill oauth-oidc-protocols

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

OAuth 2.0 and OpenID Connect protocols are complex; this Skill provides structured guidance, best practices, and troubleshooting content to help developers design, implement, and debug these flows.

Core Features & Use Cases

  • Comprehensive coverage of OAuth 2.0 and OIDC concepts, flows (Authorization Code with PKCE, Client Credentials, Refresh Token), and discovery.
  • Guidance on JWKS, token introspection, and token lifecycles, including refresh token rotation and security extensions like PAR and DPoP.
  • Use cases for web apps, native clients, SPAs, APIs, and service-to-service scenarios with practical troubleshooting steps.

Quick Start

Describe the OAuth 2.0 / OpenID Connect flow you are implementing and I will outline the exact steps to complete it.

Frequently Asked Questions about oauth-oidc-protocols

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

FAQPage Schema
How do I implement the OAuth 2.0 Authorization Code flow with PKCE for a native client?

To implement the OAuth 2.0 Authorization Code flow with PKCE for a native client, you must generate a code verifier and challenge, redirect the user for authorization, and exchange the resulting code plus verifier for access tokens. This Skill outlines the exact steps to complete this flow securely.

What is the difference between OAuth 2.0 and OpenID Connect protocols?

OAuth 2.0 and OpenID Connect protocols differ fundamentally in purpose; OAuth 2.0 provides authorization for API access delegation, while OpenID Connect builds upon it to deliver identity verification through ID tokens. This Skill provides structured guidance on designing and debugging both protocols.

How do I troubleshoot token introspection and refresh token rotation failures?

To troubleshoot token introspection and refresh token rotation failures, you need to validate the token lifecycle states and verify the secure exchange of refresh tokens. This Skill provides practical troubleshooting steps to debug token management and resolve security extension issues.

How does JWKS discovery work when securing APIs with OpenID Connect?

JWKS discovery works by allowing your API to dynamically fetch the public keys required to validate OpenID Connect ID tokens from a well-known endpoint. This Skill guides you through configuring discovery endpoints and verifying token signatures using JWKS for your APIs.

Do I need PKCE and DPoP security extensions for service-to-service OAuth 2.0 scenarios?

You need PKCE for native and SPA clients, while DPoP provides sender-constrained tokens for service-to-service OAuth 2.0 scenarios to prevent token replay. This Skill enforces best practices for applying security extensions across web apps, APIs, and native clients.

What is the best way to debug OAuth 2.0 flows for Single Page Applications?

The best way to debug OAuth 2.0 flows for Single Page Applications is to analyze the redirect URIs, validate token lifecycles, and ensure proper PKCE implementation. This Skill provides structured troubleshooting content to resolve protocol issues in SPA architectures.