Oauth Implementation
Secure OAuth 2.0, OIDC, and JWT authentication guide with reference implementations for Node.js, Python, and Java.
- CCM score
- 35 of 100
- skills.sh installs
- 561
- GitHub stars
- 396
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers OAuth 2.0 and OpenID Connect flows, JWT access and refresh tokens, and SSO integration for web and mobile apps
- Includes a Node.js OAuth 2.0 server sketch plus Python OpenID Connect and Java Spring Security OAuth reference guides
- Enforces practices such as PKCE for public clients, token rotation, validated redirect URIs, and avoiding the implicit flow
- Designed for teams building login systems, third-party API access, social login, or microservice authentication
Install
$ npx -y skills add aj-geddes/useful-ai-prompts --skill oauth-implementation -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
OAuth Implementation
Table of Contents
Overview
Implement industry-standard OAuth 2.0 and OpenID Connect authentication flows with JWT tokens, refresh tokens, and secure session management.
When to Use
- User authentication systems
- Third-party API integration
- Single Sign-On (SSO) implementation
- Mobile app authentication
- Microservices security
- Social login integration
Quick Start
Minimal working example:
// oauth-server.js - Complete OAuth 2.0 implementation
const express = require("express");
const jwt = require("jsonwebtoken");
const crypto = require("crypto");
const bcrypt = require("bcrypt");
class OAuthServer {
constructor() {
this.app = express();
this.clients = new Map();
this.authorizationCodes = new Map();
this.refreshTokens = new Map();
this.accessTokens = new Map();
// JWT signing keys
this.privateKey = process.env.JWT_PRIVATE_KEY;
this.publicKey = process.env.JWT_PUBLIC_KEY;
this.setupRoutes();
}
Details
- Repository
- github.com/aj-geddes/useful-ai-prompts
- Categories
- Backend & APIs, Security
- First seen
- Jun 3, 2026
More from aj-geddes/useful-ai-prompts
All 258- Memory Optimization557
- Semantic Versioning556
- Caching Strategy553
- Web Performance Audit551
- Real Time Features550
- Browser Debugging548
- Mobile Offline Support548
- Causal Inference546
- Design System Creation546
- Gcp Cloud Run546
- Code Generation Template540
- Sql Injection Prevention539
- Anomaly Detection536
- Gap Analysis535
- Grpc Service Development534
- Network Debugging534
- Kpi Dashboard Design532
- Microservices Architecture532
- Payment Gateway Integration532
- Progressive Web App532
- Sql Query Optimization530
- ML Model Training526
- Neural Network Design525
- Security Headers Configuration524
Similar to Oauth Implementation
More Backend & APIsoauth2-authenticationmanutej/luxor-claude-marketplace604 installsComprehensive OAuth2 and OpenID Connect guide covering grant flows, PKCE, token handling, and security practices.
api-authenticationaj-geddes/useful-ai-prompts614 installsSecure API authentication guide covering JWT, OAuth 2.0, API keys, and session management with best practices.
oauth2-oidc-implementerpatricio0312rev/skills371 installsImplements OAuth 2.0 and OpenID Connect login with PKCE, state checks, and ID token verification.
oauthmcollina/skills1.5K installsFastify OAuth 2.0/2.1 setup covering PKCE login, token validation, refresh rotation, and route protection.
session-managementaj-geddes/useful-ai-prompts470 installsSecure session management with JWT tokens, refresh cycles, session storage, logout handling, and CSRF protection.
auth-implementation-patternswshobson/agents21.7K installsCatalog-style summary of authentication and authorization patterns covering JWT, OAuth2, sessions, and RBAC.