oauth21-token-endpoint

Implement an OAuth 2.1 token endpoint with PKCE verification and compliant responses.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Guides developers in implementing a standards-compliant OAuth 2.1 token endpoint beyond OpenID Connect, including grant types, token response formats, Cache-Control headers, CORS support, and error handling.

Core Features & Use Cases

  • Detailed authorization_code, refresh_token, and client_credentials handling with proper client authentication, PKCE verification, and token issuance.
  • Security and interoperability considerations including TLS enforcement, no-store caching, and consistent error responses.
  • Use case examples demonstrating end-to-end token requests and responses in typical API integrations.

Quick Start

Configure and deploy a compliant OAuth 2.1 token endpoint using the guidance in this skill.

Frequently Asked Questions about oauth21-token-endpoint

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

FAQPage Schema
How do I implement an OAuth 2.1 token endpoint with PKCE verification?▼

To implement an OAuth 2.1 token endpoint with PKCE verification, you must enforce POST-only, form-encoded requests over HTTPS, verify the PKCE code challenge against the stored verifier, and return compliant token responses with no-store caching headers.

What grant types does an OAuth 2.1 token endpoint need to support?▼

An OAuth 2.1 token endpoint needs to support authorization_code, refresh_token, and client_credentials grant types, each requiring proper client authentication, specific request validation, and correctly formatted token response issuance.

How does CORS work with an OAuth 2.1 token endpoint?▼

CORS support for an OAuth 2.1 token endpoint involves configuring cross-origin headers to allow browser-based clients to securely POST form-encoded token requests while maintaining TLS enforcement and strict error handling.

What HTTP headers are required for a compliant OAuth 2.1 token response?▼

A compliant OAuth 2.1 token response requires Cache-Control no-store headers to prevent caching, must be transmitted exclusively over HTTPS with TLS enforcement, and formatted correctly per the standard.

Why does my OAuth 2.1 token endpoint require POST-only form-encoded requests?▼

An OAuth 2.1 token endpoint requires POST-only form-encoded requests to securely transmit client credentials and authorization codes, preventing sensitive data from being exposed in URL query parameters or cached logs.

Can I use client_credentials grant type without PKCE on an OAuth 2.1 token endpoint?▼

The client_credentials grant type on an OAuth 2.1 token endpoint focuses on machine-to-machine client authentication and does not utilize PKCE verification, which is specifically enforced for authorization_code grant requests.