# OAuth2 Gateway

> Use this tool when you need to securely authenticate and authorize AI agents to access multiple downstream MCP servers, simplifying the authentication process and reducing the risk of token exposure. It solves problems related to multi-tenant token management, dynamic client registration, and secure proxying of tool calls. The OAuth2 Gateway takes in user credentials and AI agent requests, and outputs authenticated and authorized requests to downstream servers, making it ideal for use cases requiring centralized identity management and secure access control.

Canonical page: https://skillsregistry.net/skills/gh-yousuf64-oauth2-gateway  
JSON: https://api.skillsregistry.net/v1/skills/gh-yousuf64-oauth2-gateway

## Description

Demonstrates a gateway MCP server architecture where AI agents authenticate once and the gateway proxies tool calls to downstream MCP servers using stored per-user OAuth2 tokens. Implements dynamic client registration, multi-tenant token isolation, and a web dashboard for server management. Built with .NET 10 and Keycloak for identity management.

## Trust

- **Trust score (0–1):** 0.30
- **Verification tier:** unverified
- **Last scanned:** 2026-09-02

## Facts

- **Version:** 1.0.0
- **Skill type:** atomic
- **Execution layer:** mcp-remote
- **Runtime environment:** api
- **Category:** ai-ml
- **Updated:** 2026-09-02

## Source

- **Source listing:** [PulseMCP](https://www.pulsemcp.com/servers/gh-yousuf64-oauth2-gateway)
- **Repository:** <https://github.com/yousuf64/mcp-auth>

## Use it

Resolve this record through the SkillsRegistry MCP server (no auth, read-only):

```
claude mcp add --transport http --scope user skillsregistry https://api.skillsregistry.net/mcp
```

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_skill",
    "arguments": {
      "slug": "gh-yousuf64-oauth2-gateway"
    }
  }
}
```

REST: `GET https://api.skillsregistry.net/v1/skills/gh-yousuf64-oauth2-gateway` · pull for local use: `GET https://api.skillsregistry.net/v1/skills/gh-yousuf64-oauth2-gateway/pull`

---
SkillsRegistry indexes agent skills from public registries and GitHub. Skills we have analysed are scanned with Circle-IR and scored on six dimensions; each listing states its scan coverage. More: https://skillsregistry.net/llms.txt
