Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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:

  1. Goal — delegated API access, user authentication, both, machine-to-machine access, device authorization, or token exchange.
  2. Parties — authorization server / OpenID Provider, client / relying party, resource server, resource owner / end-user, browser or system user agent, and TLS-terminating intermediaries.
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. 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
Полный SKILL.md на GitHub

Установить secure-oauth-oidc в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

agents/openai.yamlreferences/attack-and-test-catalog.mdreferences/oidc-validation.mdreferences/review-and-delivery.mdreferences/rfc9700-control-catalog.mdreferences/standards-map.md

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), без исполняемых скриптов.

Похожие скиллы

Сравнить secure-oauth-oidc с