/prodsec-skills:token-exchange-for-toolsfrom prodsec-skills
Guides implementation of OAuth 2.0 Token Exchange (RFC 8693) in MCP servers for scoped, short-lived downstream API access without passthrough of user tokens.
Ships in prodsec-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
When an MCP server needs to access third-party APIs on behalf of a user, the preferred approach is to use SPIFFE/SPIRE+mTLS. When that is not feasible, the MCP server SHOULD perform an OAuth 2.0 Token Exchange (RFC 8693) to swap the user's original token for a scoped, short-lived token.
Token Exchange provides:
sub claim carries the original user's identity as the subject)act claim identifies the MCP server as the actor)1. User authenticates to MCP server (user gets token A)
2. MCP server needs to call third-party API
3. MCP server sends Token Exchange request to authorization server:
- subject_token: user's token A
- subject_token_type: urn:ietf:params:oauth:token-type:access_token
- requested_token_type: urn:ietf:params:oauth:token-type:access_token
- scope: only the scopes needed for the third-party API
- actor_token: MCP server's own credential (optional)
4. Authorization server returns token B with:
- sub: original user identity
- act: { sub: MCP server identity }
- scope: reduced scopes
- exp: short TTL
5. MCP server calls third-party API with token B
{
"sub": "user-123",
"act": {
"sub": "mcp-server-tools-xyz"
},
"scope": "read:specific-resource",
"exp": 1700000000,
"iss": "https://auth.example.com"
}
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub redhatproductsecurity/prodsec-skills --plugin prodsec-skills130 skills in this plugin
/address-sanitizerAddressSanitizer detects memory errors during fuzzing. Use when fuzzing C/C++ code to find buffer overflows and use-after-free bugs.
/admin-interface-securitySecure the administrative interface of model registries. Use when building, deploying, or reviewing model registry access controls and admin interfaces./aflppAFL++ is a fork of AFL with better fuzzing performance and advanced features. Use for multi-core fuzzing of C/C++ projects.
Other plugins' skills for the same job