oauth
Installation
SKILL.md
OAuth Domain Skill
Purpose
OAuth 2.0 is the industry standard for delegated authorization. Most "Login with Google/GitHub" flows use OAuth + OpenID Connect. This skill covers implementing OAuth correctly and securely -- the protocol has many subtle pitfalls that create real security vulnerabilities when done wrong.
When to Use What
| Flow | Use Case | PKCE? | Client Secret? |
|---|---|---|---|
| Authorization Code + PKCE | SPAs, mobile apps, any public client | Yes | No |
| Authorization Code | Server-side apps with secret storage | Optional | Yes |
| Client Credentials | Machine-to-machine, no user involved | No | Yes |
| Device Code | CLI tools, smart TVs, no browser | No | Yes |
Always use PKCE -- even for server-side apps, PKCE adds defense-in-depth at zero cost.
Never use: Implicit flow (deprecated), Resource Owner Password (deprecated).