oauth-oidc

Provides OAuth 2.0 and OpenID Connect guidance for token management, authentication flows, and JWT verification.

Updated Jun 5, 2026
One-click install
npx skills add https://github.com/hung-phan/system-skills --skill oauth-oidc-hung-phan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: oauth-oidc
Source: https://github.com/hung-phan/system-skills/tree/main/skills/system-review/references/security/oauth-oidc
Command: npx skills add https://github.com/hung-phan/system-skills --skill oauth-oidc-hung-phan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides guidance on secure OAuth 2.0 and OpenID Connect implementations, addressing common vulnerabilities and best practices for token management and user authentication.

Core Features & Use Cases

  • Secure Token Management: Covers token lifecycle, refresh token rotation, and reuse detection.
  • Authentication Flows: Offers detailed explanations and diagrams for various authentication flows, including Authorization Code + PKCE.
  • Token Verification: Includes code examples for verifying JWT tokens and handling common pitfalls.
  • Use Case: For developers building applications that require secure user authentication and authorization, this Skill helps ensure that OAuth 2.0 and OpenID Connect are implemented correctly.

Quick Start

Analyze your OAuth 2.0 and OpenID Connect implementation using the oauth-oidc skill.

Frequently Asked Questions about oauth-oidc

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement secure OAuth 2.0 authentication flows?

Secure OAuth 2.0 authentication flows are implemented using the Authorization Code flow with PKCE. This approach provides detailed guidance on token management, user authentication, and preventing common vulnerabilities during implementation.

What is the best way to manage OAuth 2.0 refresh token rotation?

Refresh token rotation is managed by implementing lifecycle controls and reuse detection. This ensures secure token management by automatically invalidating tokens if reuse is detected, following best practices for user authorization.

How do I verify JWT tokens for OpenID Connect authentication?

JWT tokens for OpenID Connect are verified using provided code examples that handle common pitfalls. Proper token verification ensures secure user authentication and prevents unauthorized access in OAuth 2.0 implementations.

What are common vulnerabilities in OAuth 2.0 and OpenID Connect implementations?

Common vulnerabilities in OAuth 2.0 and OpenID Connect implementations include improper token management and flawed authentication flows. Addressing these requires following best practices for secure token lifecycle handling and JWT verification.

When do I need OpenID Connect for user authentication?

OpenID Connect is needed for user authentication when your application requires secure identity verification on top of OAuth 2.0 authorization. It provides standardized flows and JWT token handling for secure user login.

Does this OAuth 2.0 guidance cover Authorization Code flow with PKCE?

Yes, this OAuth 2.0 guidance covers the Authorization Code flow with PKCE. It offers detailed explanations and diagrams for various authentication flows to ensure secure user authentication and authorization.