secure-oauth-oidc
БесплатноБез исполняемых скриптовНе проверенDesign, implement, audit, test, troubleshoot, or migrate secure OAuth 2.0 and OpenID Connect (OIDC) systems using RFC 9700 / BCP 240. Use for authorization…
от citypaul★ 764 звезды на GitHubОб этом скилле
Secure OAuth and OpenID Connect
Treat OAuth security as a set of end-to-end protocol invariants, not a checklist of parameters. Use RFC 9700 / BCP 240 as the baseline, then add the requirements of the selected OAuth extension, OpenID Connect, platform profile, and deployment.
OAuth delegates access. OpenID Connect adds authentication. Never infer a login identity from OAuth alone, and never use an access token as an ID Token.
This skill owns the OAuth/OIDC protocol layer. For the application session that results in a browser-facing BFF — session cookies, CSRF and browser-request policy, public/protected endpoint classification, and keeping tokens out of the browser — load the bff-entry-points skill.
Bring the flow you touch up to baseline
Any change that adds, extends, reroutes, or re-points part of an authorization-code flow brings that flow's whole transaction to the RFC 9700 baseline in the same change: S256 PKCE with a per-transaction verifier, a fresh one-time state and, for OIDC, a nonce, both bound to the browser that started the sign-in, exact redirect-URI matching, issuer and audience validated on every token you consume, and no token in a URL, a log, or anything the browser can read.
A narrowly worded request, a to-do list or handover note in the repository, an existing test that pins the current shape, or the fact that a defect predates you is not permission to leave that flow short of the baseline. Do not build a new flow to match an insecure one beside it, and do not leave an exposure sitting in a file or function you are already editing. List as residual risk only what this change did not touch.
Load the right references
| Reference | Load when |
|---|---|
references/rfc9700-control-catalog.md |
Always for a security design or review; it preserves requirement strength, applicability, and section provenance |
references/attack-and-test-catalog.md |
Threat-modeling, incident analysis, adversarial review, or writing negative tests |
references/oidc-validation.md |
Any OIDC, ID Token, UserInfo, Discovery, multi-issuer, or federated-login work |
references/review-and-delivery.md |
Auditing an implementation, reporting findings, planning remediation, or defining completion evidence |
references/standards-map.md |
Selecting extensions/profiles, resolving source precedence, or checking whether a standard is stable and current |
Read only the references needed for the task. Do not rely on memory for exact normative language when the control catalog provides it.
Establish the security profile first
Before recommending code or configuration, identify:
- Goal — delegated API access, user authentication, both, machine-to-machine access, device authorization, or token exchange.
- Parties — authorization server / OpenID Provider, client / relying party, resource server, resource owner / end-user, browser or system user agent, and TLS-terminating intermediaries.
- Client type and execution context — confidential or public; server-side web app, browser app, native app, service, CLI, or device. Classify by whether credentials can actually remain confidential, not by a registration label.
- Flows and response modes — enumerate every grant, response type, response mode, callback, token exchange, refresh path, logout path, and back-channel call that is enabled, including legacy paths.
- Trust topology — single issuer or multiple; static or dynamic discovery/registration; one or many resource servers; same-party or third-party components; proxies and service meshes.
- Applicable profile — RFC 9700 baseline plus OIDC Core, native-app BCP, DPoP, mTLS, PAR/JAR/JARM, FAPI, or another deployment profile. A stricter profile adds requirements; it does not erase the baseline.
- Evidence — exact code, config, metadata, library and version, tests, and runtime behavior. Mark anything not inspected as unknown.
If the task is underspecified, inspect the repository and deployed metadata first. Ask only for choices that materially change the profile and cannot be discovered safely.
Build a transaction ledger
Trace each flow from initiation through callback, token use, refresh, revocation, and logout. Record who creates, stores, transmits, validates, consumes, expires, and invalidates each artifact:
| Artifact | Required binding or validation |
|---|---|
| Authorization request | intended issuer, client, exact redirect URI, response type/mode, requested resource and privilege |
state |
high-entropy, one-time, securely bound to the initiating user-agent session; integrity-protected when it carries application state |
| PKCE verifier/challenge | transaction-specific; verifier secret retained by the initiating client instance; S256; authorization server records whether a challenge was present |
OIDC nonce |
transaction-specific and bound to the initiating session; validated in the correct ID Token before any returned token is used |
Установить secure-oauth-oidc в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл secure-oauth-oidc?
Design, implement, audit, test, troubleshoot, or migrate secure OAuth 2.0 and OpenID Connect (OIDC) systems using RFC 9700 / BCP 240. Use for authorization servers and OpenID Providers, OAuth clients and OIDC relying parties, resource servers, native apps, browser-based apps, multi-issuer login, redirect URIs, authorization code and PKCE flows, state and nonce handling, ID Token validation, token storage and replay, refresh-token rotation, sender-constrained tokens (DPoP or mTLS), mix-up and injection attacks, discovery and metadata, reverse proxies, or migration away from implicit and resource-owner-password grants.
Как установить скилл secure-oauth-oidc?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл secure-oauth-oidc запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic