mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-15 00:16:46 +00:00
Hide connectors that need admin setup; they start turned off
A connector's enabled switch is now optional: unset means on when the connector has the server settings it needs, so Google Drive, SharePoint and Confluence start off until their OAuth settings are present, and an admin's explicit switch always wins. Changing only the sharing mode no longer switches a connector on. Members only see connectors they can use. The catalog, Add Source tiles and Add Tool leave out anything turned off or still needing setup, except a connector a member already has a connection to, which stays listed as turned off so it can be managed or removed.
This commit is contained in:
1 parent
324d54ea67
commit
a564dea401
18 files changed
+248
-62
No files matched your search
@@ -45,12 +45,12 @@ Tool calls name the service that ran them: "Searched Notion", "Read from Google
|
||||
|
||||
Admins manage connectors in **Admin > Connectors**. It lists every connector with its status, how many connections use it, and:
|
||||
|
||||
- **Enabled** turns a connector off for everyone. Members see it as turned off and cannot connect it, its tools stop working, and its sources stop syncing until you turn it back on. Existing connections are kept.
|
||||
- **Enabled** turns a connector off for everyone. Members no longer see it (except to manage a connection they already have), its tools stop working, and its sources stop syncing until you turn it back on. Existing connections are kept.
|
||||
- **Shared tools use** is **Let owners choose** (default), **Always the owner's account** or **Always each member's own account**.
|
||||
- **Allow custom MCP servers** controls whether members can add their own MCP servers. Presets are enabled one by one.
|
||||
- **Setup guide** on an OAuth connector shows the redirect URI to register and which server settings are still missing.
|
||||
|
||||
A connector that needs server settings stays visible to members as **Needs admin setup** until the settings are present.
|
||||
A connector that still needs server settings starts turned off and is hidden from members. It turns on once its settings are present, unless you switched it off; switching it on before then has no effect for members.
|
||||
|
||||
### Encryption key
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ Restart your application, then go to **Settings > Connectors** and pick **Google
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
- **Shows Needs admin setup** — `GOOGLE_CLIENT_ID` or `GOOGLE_CLIENT_SECRET` is missing from the backend `.env`. Admin > Connectors lists which one.
|
||||
- **Google Drive is not offered** — `GOOGLE_CLIENT_ID` or `GOOGLE_CLIENT_SECRET` is missing from the backend `.env`, so the connector stays off. Admin > Connectors lists which one.
|
||||
- **Authentication failed** — Check that the redirect URI matches exactly and equals `CONNECTOR_REDIRECT_BASE_URI`, with no query parameters. Ensure the Google Drive API is enabled.
|
||||
- **Sign-in popup closes but the account never connects** — The frontend origin is not allowed to receive the result. Add it to `CONNECTOR_ALLOWED_ORIGINS` in the backend `.env`.
|
||||
- **Permission denied** — Verify the OAuth consent screen is configured and the user has access to the target files.
|
||||
|
||||
Reference in new issue
Block a user