/prodsec-skills:discovery-mechanismsfrom prodsec-skills
Enforces OAuth 2.0 and OIDC discovery mechanisms in MCP clients for locating authorization servers. Use when building or reviewing MCP client authentication.
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.
MCP clients MUST support both of the following discovery mechanisms for locating authorization servers:
Supporting both mechanisms ensures interoperability with any authorization server an MCP server may designate.
The client fetches metadata from /.well-known/oauth-authorization-server:
{
"issuer": "https://auth.example.com",
"authorization_endpoint": "https://auth.example.com/authorize",
"token_endpoint": "https://auth.example.com/token",
"scopes_supported": ["tools:read", "tools:execute"],
"response_types_supported": ["code"],
"grant_types_supported": ["authorization_code", "client_credentials"],
"code_challenge_methods_supported": ["S256"]
}
The client fetches metadata from /.well-known/openid-configuration:
{
"issuer": "https://auth.example.com",
"authorization_endpoint": "https://auth.example.com/authorize",
"token_endpoint": "https://auth.example.com/token",
"userinfo_endpoint": "https://auth.example.com/userinfo",
"jwks_uri": "https://auth.example.com/.well-known/jwks.json",
"scopes_supported": ["openid", "profile", "tools:read"],
"response_types_supported": ["code"],
"id_token_signing_alg_values_supported": ["RS256"]
}
1. MCP client connects to MCP server
2. MCP client fetches Protected Resource Metadata from MCP server
3. Extract authorization_servers from the metadata
4. For each authorization server, attempt discovery:
a. Try /.well-known/openid-configuration
b. Try /.well-known/oauth-authorization-server
c. Use whichever succeeds (prefer OIDC if both available)
5. Use discovered endpoints for authentication flows
/.well-known/openid-configuration/.well-known/oauth-authorization-serverissuer in metadata matches the expected authorization server URLWhat 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