oauth2-and-oidc-from-scratch - Skill Dossier
oauth2-and-oidc-from-scratch

oauth2-and-oidc-from-scratch

Use when implementing or reviewing OAuth 2.0 / OAuth 2.1 / OpenID Connect from scratch in a real codebase, choosing a flow (authorization code + PKCE, client credentials, BFF), validating ID tokens, storing tokens safely in browsers, sizing refresh-token rotation, or migrating off implicit / ROPC. Triggers: "should I use a JWT or session cookie", PKCE code_challenge/code_verifier, exact redirect_uri match, state vs nonce confusion, ID-token replay, refresh-token rotation, BFF (backend-for-frontend) pattern, token in localStorage warning. NOT for SAML / WS-Federation, building an authorization server (use a battle-tested IdP), passwordless-only flows (passkeys/WebAuthn), or session-cookie auth without a third-party IdP.

Backend & Infrastructure
#oauth#oauth2#oidc#openid-connect#pkce#authentication#authorization

Allowed Tools

ReadGrepGlobEditWriteBash

Share this skill

Skills use the open SKILL.md standard — the same file works across all platforms.

Install all 547 skills as a plugin
claude plugin marketplace add curiositech/windags-skills claude plugin install windags-skills

Claude activates oauth2-and-oidc-from-scratch automatically when your task matches its description.

View on GitHub