Skip to content

Per-connector resource allowlist (OAuth access control) - #15

Merged
thorwhalen merged 1 commit into
mainfrom
feat/oauth-resource-allowlist
Jun 27, 2026
Merged

Per-connector resource allowlist (OAuth access control)#15
thorwhalen merged 1 commit into
mainfrom
feat/oauth-resource-allowlist

Conversation

@thorwhalen

Copy link
Copy Markdown
Member

Adds per-connector access control to the OAuth server: [auth.oauth_server.resource_allowlist] maps a connector resource URL to the emails allowed to authorize for it. Unlisted resources stay open; listed ones deny everyone else (403 at authorize, access_denied at consent). Lets a private connector (e.g. trufflepig_mcp) be scoped to its own staff. +2 tests.

Restrict which users may authorize for a given connector. The OAuth authorize
step now denies a token to anyone not on a resource's allowlist (config:
[auth.oauth_server.resource_allowlist] mapping resource URL → emails). A resource
with no entry stays open to any authenticated user. Secure to key on the
resource: the connector only accepts tokens whose aud is that exact resource, so
a denied user can't obtain a usable token another way. +2 tests.

Claude-Session: https://claude.ai/code/session_0154TnwYASjN1u1Hw97JQ2vd
@thorwhalen
thorwhalen merged commit d902574 into main Jun 27, 2026
12 checks passed
@thorwhalen
thorwhalen deleted the feat/oauth-resource-allowlist branch June 27, 2026 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant