Gong plugin: desktop OAuth can't be completed — Gong rejects the http://localhost:8787/callback redirect URI
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 52/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
- Lĩnh vực
- authentication, desktop, documentation
Hướng nghiên cứu
Bắt đầu với bước 2 của third_party/gong/README.md và lần theo cấu hình callback OAuth trên desktop được plugin Gong sử dụng. Xác nhận callback đã chọn hoạt động với việc xác thực redirect-URI của Gong, cập nhật thiết lập được ghi lại và kiểm tra để bảo đảm việc cấp quyền trên desktop hoàn tất mà không có unauthorized_client.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
The Gong plugin's documented setup can't be completed on desktop. third_party/gong/README.md step 2 tells admins to register http://localhost:8787/callback as a redirect URI on the Gong MCP integration, but Gong's admin API refuses to store any http:// redirect URI. Since that URI can never be whitelisted, desktop OAuth always ends in unauthorized_client.
Error
After clicking ALLOW on Gong's consent screen, the browser lands on:
http://localhost:8787/callback?error=unauthorized_client&error_description=This%20MCP%20client%20is%20not%20authorized%20for%20your%20company.%20Please%20ask%20your%20Gong%20technical%20admin%20to%20authorize%20it.
The message points at the admin, which sends people hunting for an approval setting that doesn't exist. The real cause is the redirect URI.
Why the documented step can't be done
Gong's Redirect URL field accepts https:// only:
- Saving
http://localhost:8787/callback→ the admin APIPUTreturns400 Bad Request; on a retry the line is silently dropped from the saved list. - The same field saves
https://URIs without complaint — includinghttps://localhost:<port>/oauth/callbackand the Cursor web callback already in the README.
So the scheme is what's rejected, not loopback itself.
Isolation
Same Gong integration, same client ID and secret, changing one variable at a time:
| Redirect URI | Scopes | Result |
|---|---|---|
https://<whitelisted-https-host>:<port>/oauth/callback |
mcp:read |
access token issued |
http://localhost:8787/callback |
mcp:read mcp:write + resource |
unauthorized_client |
http://localhost:8787/callback |
mcp:read |
unauthorized_client |
Scopes and the resource parameter make no difference. Only the redirect URI does.
One detail that makes this painful to diagnose: Gong renders the consent screen before validating the redirect URI. The flow looks healthy — the app name, the requested scopes, everything — right up until you click ALLOW. Only then does it reject. It's easy to conclude the callback is fine and go looking elsewhere.
Tested against both a Personal access and a Shared access integration, both Manual registration. Same result.
Suggested fixes
- Use an
httpsloopback callback for desktop, or route desktop through the samehttps://www.cursor.com/agents/mcp/oauth/callbackthat Web and Cloud Agents already use. - At minimum, update
third_party/gong/README.mdso admins aren't asked to register a URI that Gong won't accept.
RFC 8252 §7.3 expects native apps to use loopback redirects, so this is arguably worth raising with Gong as well — but as things stand their admin API rejects http://, so the plugin can't depend on it.
Environment
- Gong MCP server:
https://mcp.gong.io/mcp - Integration: Manual registration (client ID + secret)
- Plugin:
third_party/gong1.0.0
- Ngôn ngữ chính
- TypeScript
- Star
- 8.2k
- Fork
- 751
- Merge trung bình
- 12 giờ 1 phút
- Pull request đã merge (30 ngày)
- 43
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của cursor/plugins
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
-
pstack: disable-model-invocation skills still have "Use only when user ..." agent instructions Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
Tất cả issue của cursor/plugins
Issue tương tự
-
S: triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
fix(errors): EHOSTUNREACH from a happy-eyeballs connect is reported as a resolver error (STAMP-80) Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
snapshot-labs/stamp#666 ·
-
fix(api): prevent leaderboard SSE heartbeat from starting after disconnect during initial load Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
GauravKarakoti/SecureFlow#1070 · 1 bình luận ·
-
feature:Languages/Translations good first issue ready Web
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
digitalfabrik/integreat-app#4394 ·