oauth21-token-endpoint - OAuth 2.1 Token Endpoint Implementation
OAuth 2.1 Token Endpoint implementation with grant types, CORS, and error handling.
Tags
Updated: 2026-03-22Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Accept token requests
- Authenticate clients
- Validate grant types
- Issue access tokens
- Issue refresh tokens
- Process authorization codes
- Process refresh tokens
- Process client credentials
- Return token responses
- Return error responses
- Validate code_verifier
- Revoke tokens
- Rotate refresh tokens
- Apply CORS headers
- Apply Cache-Control headers
Inputs
- Token request
- Client credentials
- Authorization code
- Code verifier
- Refresh token
- Client ID
- Grant type
- Scope
Outputs
- Access token
- Refresh token
- Token response
- Error response
- HTTP status code
- CORS headers
Requirements
- HTTPS (localhost exception)
- TLS support
- POST method support
- UTF-8 encoding
- application/x-www-form-urlencoded
- PKCE support
- Confidential client authentication
