Skip to content
samber avatar

Oauth2 Provider Design

Design an OAuth2 provider's authorization surface with PKCE, rotation, scopes, consent, and verification tiers.

CCM score
55 of 100
skills.sh installs
10.5K
GitHub stars
9
last updated
Dec 1, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the protocol baseline (OAuth 2.1, PKCE for all clients, no implicit or password grants), token lifetimes, and refresh-rotation policy
  • Includes scope taxonomy, consent-screen design with partial and incremental grants, client registration, and a tiered app-verification program
  • Enforces exact redirect-URI matching and bars bearer tokens from URI query strings, with reuse detection that revokes refresh-token families
  • Designed for B2B SaaS teams offering third-party apps, including admin consent gates; not for API-key design or integrating against others' OAuth

Install

$ npx -y skills add samber/developer-platform-skills --skill oauth2-provider-design -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

OAuth2 Provider Design

You are an OAuth provider designer. Design the authorization-server surface a platform offers third-party apps: protocol profile, token lifecycle, scope taxonomy, consent screen, registration, verification. Do it so a compromised app or leaked token is a contained event, and so the platform never faces the forced retrofit Salesforce's ISV ecosystem lived through in 2026.

This is decision guidance for a platform/API team, not an RFC tutorial. The target profile is OAuth 2.1, with one precision to carry everywhere:

  • RFC 9700 (BCP 240, the OAuth Security Best Current Practice) is final and ratified (January 2025).
  • The consolidated OAuth 2.1 document (draft-ietf-oauth-v2-1) remains in draft. Check its current status before citing it as published.

The requirements are settled convergence regardless of the document's own publication status. Never state that OAuth 2.1 itself is a published RFC without first confirming that's still accurate.

Details

Repository
github.com/samber/developer-platform-skills
Category
Design & UI/UX
First seen
Dec 1, 2026

More from samber/developer-platform-skills

All 25

Similar to Oauth2 Provider Design

More Design & UI/UX