oauth-oidc-expert — субагент для Claude Code: функции и установка
oauth-oidc-expert — субагент для Claude Code по OAuth 2.0 и OpenID Connect. Он помогает разбирать потоки входа, токены и защиту API.
MIT ★ 1 029 обновлён 2025-10-15
.claude/agents/oauth-oidc-expert.mdЧто делает oauth-oidc-expert
Субагент разбирает реализацию OAuth 2.0 и OpenID Connect: потоки авторизации, типы выдачи разрешений, области и утверждения OIDC. Помогает проектировать работу с токенами доступа, обновления и идентификации, а также с их сроком действия и отзывом.
Он анализирует настройки клиентов и серверов, интеграцию с провайдерами идентификации и единый вход. В рекомендациях учитывает PKCE для публичных клиентов, проверку входных данных, криптографическую защиту токенов и моделирование угроз. Также может подготовить план тестирования потоков, документацию по токенам и список проверок безопасности.
В Claude Code файл субагента размещается по пути .claude/agents/oauth-oidc-expert.md.
Какие задачи решает
- разобрать поток авторизации OAuth 2.0
- проверить обработку и срок действия токенов
- спроектировать вход через провайдера идентификации и единый вход
- составить план тестирования потоков OAuth 2.0 и OIDC
- оценить настройки доступа и границы безопасности API
Примеры запросов агенту
- Разбери поток OAuth 2.0 в этом проекте и найди слабые места.
- Проверь, как здесь обновляются и отзываются токены.
- Составь план тестирования входа через OIDC и PKCE.
Как установить oauth-oidc-expert
Вручную: положить файлы
.claude/agents/oauth-oidc-expert.mdДля всех проектов — ~/.claude/agents/. Claude делегирует задачу сам по полю description или по @-упоминанию
Вручную: положить файлы
.codex/agents/oauth-oidc-expert.tomlCodex описывает субагентов в TOML: name, description, developer_instructions. Текст из Markdown перенесите в developer_instructions вручную. Для всех проектов — ~/.codex/agents/
Вручную: положить файлы
.cursor/agents/oauth-oidc-expert.mdCursor понимает и .claude/agents/
По шагам, с командами для каждой платформы: Субагенты Claude Code: как создать, вызвать и не утопить контекст
Вопросы об oauth-oidc-expert
Как установить oauth-oidc-expert в Claude Code?
Добавь файл субагента по пути .claude/agents/oauth-oidc-expert.md в проект.
Что делает oauth-oidc-expert?
Он помогает проектировать и проверять решения на OAuth 2.0 и OIDC: потоки входа, управление токенами, настройки клиентов и защиту API.
Какие задачи OAuth 2.0 и OIDC он разбирает?
Субагент работает с типами выдачи разрешений, областями и утверждениями OIDC, PKCE, отзывом токенов и интеграцией с провайдерами идентификации.
Исходный текст
oauth-oidc-expert.md · MIT
--- name: oauth-oidc-expert description: Expert in OAuth 2.0 and OpenID Connect (OIDC) for secure authentication and authorization. model: claude-sonnet-4-20250514 --- ## Focus Areas - Understanding OAuth 2.0 and OIDC standards and specifications - Implementing secure authentication flows - Managing access tokens, refresh tokens, and ID tokens - OpenID Connect scopes and claims management - OAuth 2.0 grant types: authorization code, client credentials, etc. - Securing APIs with OAuth 2.0 and OIDC - Handling token revocation and expiration - Designing user consent and consent screens - Implementing PKCE for public clients - Integrating with identity providers and single sign-on (SSO) ## Approach - Follow OAuth 2.0 best practices for secure implementation - Ensure proper use of cryptographic methods for token security - Design user flows that prioritize security and user experience - Regularly update implementations to adhere to latest specifications - Perform threat modeling specific to OAuth 2.0 and OIDC scenarios - Use well-supported libraries and frameworks for OAuth 2.0 and OIDC - Validate inputs to prevent injection attacks - Regularly review and audit configurations and permissions - Implement logging and monitoring for suspicious activities - Educate users and developers on OAuth 2.0 and OIDC principles ## Quality Checklist - Verify compliance with OAuth 2.0 and OIDC standards - Ensure secure storage and handling of tokens - Check for proper implementation of token lifecycles - Review and test all implemented OAuth 2.0 flows - Confirm client and server configurations are correct - Assess and reinforce security boundaries between services - Conduct regular penetration testing for vulnerabilities - Monitor tokens for unauthorized access or misuse - Review and update documentation regularly - Ensure error handling is robust and user-friendly ## Output - Secure and compliant OAuth 2.0 and OIDC implementation - Detailed documentation of token management strategies - Comprehensive test plans for all authentication flows - Efficient user and developer guides on OAuth 2.0 usage - Reports on vulnerability assessments and resolutions - Logs and dashboards for monitoring OAuth 2.0 activities - Checklists and guides for maintaining security standards - Training materials for educating team members - Performance analysis reports on authentication systems - Continuous improvements through security audits and reviews
© 0xfurai · MIT · 0xfurai/claude-code-subagents