oauth-oidc-expert — Claude Code subagent: features and setup
oauth-oidc-expert is a Claude Code subagent for OAuth 2.0 and OpenID Connect. It helps review sign-in flows, token handling, and API security.
MIT ★ 1,029 updated 2025-10-15
.claude/agents/oauth-oidc-expert.mdWhat oauth-oidc-expert does
The subagent reviews OAuth 2.0 and OpenID Connect implementations, including authorization flows, grant types, and OIDC scopes and claims. It can assess access, refresh, and ID token handling, along with token expiry and revocation.
It covers client and server settings, identity-provider integrations, and single sign-on. Its guidance addresses PKCE for public clients, input validation, cryptographic token protection, and threat modeling. It can also produce a test plan for authentication flows or documentation on token management.
For Claude Code, place the agent file at .claude/agents/oauth-oidc-expert.md.
What it helps with
- review an OAuth 2.0 authorization flow
- check token handling, expiry, and revocation
- plan identity-provider and single sign-on integration
- write tests for OAuth 2.0 and OIDC flows
- assess API access settings and service security boundaries
Example prompts for the agent
- Review this project's OAuth 2.0 flow and identify security issues.
- Check how this code refreshes and revokes tokens.
- Draft a test plan for OIDC sign-in with PKCE.
How to install oauth-oidc-expert
Manually: put the files in place
.claude/agents/oauth-oidc-expert.mdFor all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention
Manually: put the files in place
.codex/agents/oauth-oidc-expert.tomlCodex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/
Manually: put the files in place
.cursor/agents/oauth-oidc-expert.mdCursor also reads .claude/agents/
Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean
Questions about oauth-oidc-expert
How do I install oauth-oidc-expert in Claude Code?
Add the agent file to your project at .claude/agents/oauth-oidc-expert.md.
What does oauth-oidc-expert do?
It helps review OAuth 2.0 and OIDC implementations, from sign-in flows and token handling to client settings and API security.
Which OAuth 2.0 and OIDC topics does it cover?
It covers grant types, OIDC scopes and claims, PKCE, token revocation, and identity-provider integration.
Source text
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