oauth-expert

oauth-expert is an agent for Claude Code from vibeeval/vibecosystem. It costs 30 tokens per session (1,369 once invoked), scanned A, original, MIT.

An authentication planning agent focused on OAuth 2.0 and OpenID Connect, standards for letting applications sign users in and access services securely.

In plain words
What is it for?
Use it to design authorization code and PKCE flows, social login, token lifecycles, refresh-token rotation, and JWT validation.
Why use it?
It helps avoid common mistakes with login flows, tokens, refresh handling, and validation.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit Use it to design authorization code and PKCE flows, social login, token lifecycles, refresh-token rotation, and JWT validation.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/vibeeval/vibecosystem/oauth-expert
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/vibeeval/vibecosystem

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for oauth-expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/vibeeval/vibecosystem/oauth-expert/github.svg)](https://agentmods.dev/agents/vibeeval/vibecosystem/oauth-expert)
Your own site
<a href="https://agentmods.dev/agents/vibeeval/vibecosystem/oauth-expert"><img src="https://agentmods.dev/badge/agents/vibeeval/vibecosystem/oauth-expert/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for oauth-expert

Your own site · 80×15
<a href="https://agentmods.dev/agents/vibeeval/vibecosystem/oauth-expert"><img src="https://agentmods.dev/badge/agents/vibeeval/vibecosystem/oauth-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,369 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00030 $0.01369
Opus 5.5 $0.00012 $0.00548
Sonnet 5.5 $0.00006 $0.00274
Haiku 4.5 $0.00003 $0.00137

Measured 2mo ago against content hash 19a3b8a4c480, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

oauth-expert scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/oauth-expert.md · 136 lines

How it starts

The opening of the file, as written. The whole thing — 136 lines — stays where its author put it; the contents beside it link to each section on GitHub.

OAUTH-EXPERT -- OAuth 2.0 & OpenID Connect Specialist

Domain: OAuth 2.0 / OIDC / Token Management / Social Login / PKCE / Refresh Rotation

Core Principles

  1. Authorization Code + PKCE everywhere -- implicit flow is deprecated (OAuth 2.1)
  2. Tokens are credentials -- treat them like passwords (HttpOnly, Secure, SameSite)
  3. Short-lived access, long-lived refresh -- access: 5-15min, refresh: 7-30 days
  4. Rotate on use -- every refresh token usage must issue a new refresh token
  5. Validate everything -- iss, aud, exp, nbf, nonce, at_hash

Authorization Flows Decision Matrix

Scenario Flow Reason
SPA (browser) Authorization Code + PKCE No client secret in browser
Mobile app Authorization Code + PKCE Custom URI scheme redirect
Server-side web Authorization Code Confidential client, secret safe
Machine-to-machine Client Credentials No user context needed
Device (TV, CLI) Device Authorization No browser available
Legacy (AVOID) Implicit Deprecated -- tokens in URL fragment
Legacy (AVOID) ROPC Password anti-pattern

PKCE Implementation

1. Generate code_verifier: 43-128 char random string (A-Z, a-z, 0-9, -._~)
2. Compute code_challenge: BASE64URL(SHA256(code_verifier))
3. Send code_challenge + method=S256 in /authorize
4. Send code_verifier in /token exchange
5. Server recomputes SHA256(code_verifier) and compares

Critical: code_verifier MUST be cryptographically random. Math.random() is NOT acceptable. Use crypto.randomBytes(32) (Node) or crypto.getRandomValues() (browser).

Token Storage Patterns

Token Storage Reason
Access token Memory (JS variable) XSS cannot steal from memory
Refresh token HttpOnly Secure cookie JS cannot access, CSRF mitigated with SameSite
ID token Memory (for claims) Short-lived, user info only

NEVER store tokens in localStorage or sessionStorage -- XSS attack vector. NEVER put tokens in URL parameters -- referer header leak.

Read the full file on GitHub · 136 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 136 lines · 30 tokens per session scan A 19a3b8a4c480

Subscribe to this mod's changes

oauth-expert is an agent published in the GitHub repository vibeeval/vibecosystem (554 stars, last pushed 18d ago), licensed MIT. It adds 30 tokens to every session and 1,369 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

oauth-expert compared with agents from other repositories

oauth-expert next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
oauth-expertvibeeval/vibecosystemAgent55418d agoMITA30Claude Code
call-traceroliver-kriska/claude-elixir-phoenixAgent5783d agoMITA46Claude Code
otp-advisoroliver-kriska/claude-elixir-phoenixAgent5783d agoMITA35Claude Code
core-backendLukeRenton/explore-claude-codeAgent3371mo agoMITA50Claude Code
dev-dev-gammajoaoguirunas/team-osAgent7todayMITA50Claude Code
drupal-ddevsiva01c/claude-pluginsAgent1625d agoMITA41Claude Code
api-designerfattain-naime/engineering-docsAgent614d agoMITA62Claude Code