oauth-implementation

Enforce strict JWT validation and redirect URI matching in OAuth/OIDC implementations.

20|Updated Feb 27, 2026
One-click install
npx skills add https://github.com/thejefflarson/soundcheck --skill oauth-implementation-thejefflarson
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: oauth-implementation
Source: https://github.com/thejefflarson/soundcheck/tree/main/.claude/skills/oauth-implementation
Command: npx skills add https://github.com/thejefflarson/soundcheck --skill oauth-implementation-thejefflarson

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

OAuth/OIDC authentication flows can be compromised by weak JWT validation, open redirects, and CSRF vulnerabilities. This Skill provides guidance to enforce strong verification and secure handling.

Core Features & Use Cases

  • Enforce explicit JWT algorithm pinning, including audience and required claims (exp, iat, sub).
  • Ensure redirect_uri exact matching against a trusted allowlist to prevent open redirects.
  • Generate and validate a cryptographically random state to protect against CSRF in OAuth flows.
  • Use case: A web service implementing login with an OAuth provider can rely on this Skill to validate tokens and secure redirects.

Quick Start

Audit your OAuth/OIDC implementation to pin allowed algorithms, validate required claims, and enforce exact redirect URIs.

Frequently Asked Questions about oauth-implementation

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

FAQPage Schema
How do I prevent open redirect vulnerabilities in OAuth redirect URI handling?

Prevent open redirect vulnerabilities in OAuth redirect URI handling by enforcing exact string matching against a trusted allowlist. This ensures user-supplied redirect parameters cannot be manipulated to hijack authorization codes to malicious endpoints.

Why does allowing the none algorithm in JWT validation create authentication bypasses?

Allowing the none algorithm in JWT validation creates authentication bypasses because it permits tokens to be accepted without a cryptographic signature. Pinning explicit algorithms and validating claims like exp and sub ensures tokens are strictly verified.

What is the best way to secure OAuth flows against CSRF attacks?

The best way to secure OAuth flows against CSRF attacks is by generating and validating a cryptographically random state parameter. This state must be securely managed and verified when the authorization server redirects back to your application.

How do I validate required claims in an OIDC token endpoint implementation?

Validate required claims in an OIDC token endpoint implementation by checking audience, expiration (exp), issued at (iat), and subject (sub). Enforcing these specific claims prevents session hijacking and ensures token integrity across web services.

Does this OAuth implementation guidance apply to web services handling OpenID Connect flows?

This OAuth implementation guidance applies directly to web services handling OpenID Connect flows, token endpoints, and redirect URI processing. It provides strict JWT validation and redirect rules applicable across various web applications and services.