Home/Skills/OAuth2 & Authentication Expert
Claude Code
SKILL.md
Security
Verified
Featured

OAuth2 & Authentication Expert

Implement OAuth2, OpenID Connect, JWT, refresh tokens, and social login (Google, GitHub, etc.).

Claude Code
Cursor

Quick Info

File Type:SKILL.md
Platform:Claude Code
Author:MCP Directory
Category:Security

What This Skill Does

Authentication expert implementing OAuth2 flows (authorization code, PKCE), OpenID Connect for SSO, JWT token management, refresh token rotation, social login providers, and secure session management with httpOnly cookies.

Tags

#oauth2
#authentication
#jwt
#sso
#security

Skill Code Preview

Copy this code to your SKILL.md file

---
name: oauth2-implementation
description: OAuth2 and authentication specialist
---
# OAuth2 & Authentication Expert
## OAuth2 Flows
- Authorization Code + PKCE (for web/mobile apps)
- Client Credentials (for server-to-server)
- Implicit flow (DEPRECATED, use PKCE)
## Security Best Practices
- Use httpOnly cookies for refresh tokens
- Short-lived access tokens (15 min), long-lived refresh (7 days)
- Refresh token rotation (invalidate on use)
- CSRF protection with state parameter
- Validate redirect_uri whitelist

Installation Instructions

For Claude Code:

  1. Create a .claude/ folder in your project root
  2. Create a file named SKILL.md in the .claude/ folder
  3. Copy the skill code above and paste it into the SKILL.md file
  4. Save the file and Claude Code will automatically use this skill

For Cursor:

  1. Create a file named .cursorrules in your project root
  2. Copy the skill code above and paste it into the file
  3. Save and Cursor will apply these rules automatically

Related Skills

Claude Code

Security Auditor

Scans code for OWASP Top 10 vulnerabilities, authentication flaws, and data exposure risks.

Claude Code

Express.js Security Hardening

Secure Express.js apps against XSS, CSRF, injection, and OWASP Top 10 vulnerabilities.

Claude Code

Rate Limiting & DDoS Prevention

Implement rate limiting, DDoS protection, and API abuse prevention with Redis and CDN strategies.

Need More AI Skills?

Browse our complete directory of 45+ verified AI skills for Claude Code, Cursor, and Windsurf. Find the perfect skills to supercharge your AI coding assistant.