Per-user sign-in for OAuth2 connectors (Enterprise)
メンテナーはふだん 1 日以内に返信
関連するプルリクエストがすでにマージされています。
- #1302 @helpcodeai による — マージ済み
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 20/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 停滞
- 技術スタック
- typescript
調査の方向性
Start by reviewing the open pull request #1302, which is already implementing this issue. The proposal spans connector credentials, OAuth authorization and callbacks, token and response caches, API endpoints, migrations, and Enterprise licence checks; the payload does not name specific files or tests. Done means per-user OAuth credentials work across the listed call paths and both Cloud and self-hosted licensing modes, without falling back to shared tokens.
索引モデルが issue の本文から書いたものです。
説明
Problem
An OAuth2 connector is authorized once: whoever clicks "Authorize with Provider" signs in, and every user of the workspace then calls the provider with that one account. For providers that already govern access per user (remote MCP servers with per-user OAuth, Microsoft 365, Google), this throws the provider's own permissions away: every user sees what the authorizing account can see. A shared Outlook connector, for example, reads the authorizer's mailbox for everyone.
Proposal
An Enterprise option per OAuth2 connector: each user signs in with their own account.
connectors.credential_scope(SHAREDdefault,USER) and a new tableuser_connector_credentials(connector, user, organization; encrypted tokens; per-userauth_status*). Migration included; rows cascade with the connector, user and organization.- With
USER, every call (MCP, Run Test, Test connection, tool discovery) carries the caller's own token. It never falls back to the connector's token: a call without a user, without a sign-in or without an Enterprise licence fails before anything is sent, with a message that links to the connector page. - Token cache, refresh lock, refused-refresh memo and token persistence are keyed per user (
<connectorId>:user:<userId>), so a revoked sign-in blocks and notifies only its owner. - The response cache is kept per user for these connectors.
- Switching to
USERremoves the connector's own tokens (the OAuth client stays); switching back removes every user's sign-in. - Endpoints:
PATCH /api/connectors/:id/credential-scope,GET|DELETE /api/connectors/:id/my-credential;POST /api/connectors/:id/oauth/authorizeis open to every member on a per-user connector. - Gate:
EditionService.assertEnterprise, from AGPL code (no change underee/). The trial does not include it, like the other Enterprise workspace features.
Scope: browser OAuth2 (authorization code) only. API keys, passwords and client-credentials grants stay shared.
Cloud and self-hosted
Same behaviour in both. Cloud checks the workspace's licence, self-hosted the workspace's or the instance's key. The redirect URI is unchanged (<SERVER_URL>/api/mcp-oauth/callback).
- 主要言語
- TypeScript
- スター
- 856
- フォーク
- 82
- 平均マージ
- 7時間 49分
- マージ済み PR(30日)
- 302
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
HelpCode-ai/anythingmcp のほかの issue
-
🐣 Good first issue: contribute a new MCP adapter対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンenhancement good first issue hacktoberfest help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
HelpCode-ai/anythingmcp#982 · コメント 10 件 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
HelpCode-ai/anythingmcp#1284 ·
メンテナーはふだん 1 日以内に返信
-
Translate the rest of the admin UI (DE, IT)対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
HelpCode-ai/anythingmcp#1271 ·
メンテナーはふだん 1 日以内に返信
-
DATABASE connectors keep a connection-string password in plaintext and return it to the browser対応中かも @Riteesh-2k6 が 3 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
HelpCode-ai/anythingmcp#1245 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
🎃 New adapter: SonarQube (code quality, Server or Cloud)対応中かも @aj-codespy が 1 日前に担当しました。 オープンenhancement hacktoberfest help wanted
難易度 3/5 半日 初心者へのやさしさ 85/100
HelpCode-ai/anythingmcp#1240 · コメント 2 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
HelpCode-ai/anythingmcp の issue をすべて見る
似ている issue
-
[Bug]: Pen taps on sidebar rows start a drag and lose their click対応中かも @makhnatkin が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
b310-digital/teammapper#1515 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
puckeditor/puck#1884 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
outline/outline#14378 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
nicobailon/pi-web-access#642 ·
メンテナーはふだん 1 日以内に返信