oauth21-security

Enforce OAuth 2.1 security requirements for TLS, redirects, and token handling.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/maronnjapan/maronn-openid-provider --skill oauth21-security
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: oauth21-security
Source: https://github.com/maronnjapan/maronn-openid-provider/tree/main/.claude/skills/oauth21-security
Command: npx skills add https://github.com/maronnjapan/maronn-openid-provider --skill oauth21-security

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Implementing OAuth 2.1 securely is complex and error-prone, leading to token leakage, insecure redirects, and weak client/server protections. This Skill consolidates the security requirements to guide TLS, redirect handling, and token-binding practices for modern OAuth deployments.

Core Features & Use Cases

  • TLS enforcement across all endpoints (with loopback exceptions for native apps) and TLS version guidance.
  • PKCE is mandatory for public clients and strongly recommended for confidential clients.
  • Removal of Implicit and Resource Owner Password Credentials grants; encourage Authorization Code with PKCE.
  • Secure redirect handling using exact redirect_uri matching and recommended status codes (e.g., 303 See Other).
  • Token binding options including DPoP and Mutual TLS to prevent token replay.

Quick Start

Apply OAuth 2.1 security guidelines by enforcing TLS on all endpoints, enabling PKCE for public clients, and adhering to safe redirect practices.

Frequently Asked Questions about oauth21-security

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

FAQPage Schema
How do I enforce OAuth 2.1 security requirements for token flows and redirects?

To enforce OAuth 2.1 security, apply strict TLS across all endpoints, mandate PKCE for public clients, use exact redirect_uri matching with 303 redirects, and implement sender-constrained tokens like DPoP or Mutual TLS to prevent token replay.

Why does OAuth 2.1 require PKCE and what grants are removed?

OAuth 2.1 requires PKCE to prevent authorization code interception, making it mandatory for public clients and strongly recommended for confidential ones. The Implicit and Resource Owner Password Credentials grants are removed, encouraging Authorization Code with PKCE.

What is the correct TLS configuration for OAuth 2.1 native and mobile apps?

OAuth 2.1 TLS configuration requires enforcing TLS on all endpoints with specific loopback exceptions for native apps. It provides strict TLS version guidance to ensure secure token flows and protect against downgraded connection vulnerabilities.

How do I prevent token replay attacks in OAuth 2.1?

Prevent token replay in OAuth 2.1 by implementing sender-constrained tokens. This involves applying token binding options including DPoP (Demonstrating Proof-of-Possession) and Mutual TLS to bind tokens to a specific client, preventing unauthorized token usage.

Can I use loopback redirects with 303 See Other status codes for OAuth 2.1?

Yes, OAuth 2.1 supports loopback redirects for native apps with TLS exceptions. Secure redirect handling requires exact redirect_uri matching and recommends using specific status codes like 303 See Other to ensure proper and safe navigation during the authorization flow.

Does OAuth 2.1 work with confidential clients or is it only for public clients?

OAuth 2.1 works with both confidential and public clients. PKCE is mandatory for public clients and strongly recommended for confidential clients, ensuring secure authorization code flows across web, native, and mobile scenarios that demand robust server and client protections.