Oauth21 resource server

From RedHatProductSecurity/prodsec-skills · View interactive version

Oauth21 resource server is an AI agent skill from the GitHub repository RedHatProductSecurity/prodsec-skills. Enforce MCP servers to act as OAuth 2.1 resource servers by default. Use when building, configuring, or reviewing MCP server authentication and authorization defaults.

How to use this skill

Skill file

OAuth 2.1 Resource Server for MCP Servers

Security Requirement

MCP servers MUST be capable of acting as an OAuth 2.1 resource server, and this MUST be their default behavior. The server should not operate without authentication unless explicitly opted out by the deployer.

What "Resource Server" Means

As an OAuth 2.1 resource server, the MCP server:

Default Behavior

| Configuration | Acceptable |

|---|---|

| OAuth 2.1 token validation enabled by default | Yes (required) |

| No authentication by default, opt-in OAuth | No |

| API key only by default | No |

| Open access by default | No |

The principle is: secure by default, opt-out only with explicit configuration.

Implementation Checklist

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.