[GH-ISSUE #148] 手动填写授权后的url,总是显示 正在完成授权... #118

Closed
opened 2026-02-27 07:18:05 +03:00 by kerem · 3 comments
Owner

Originally created by @Yoahoug on GitHub (Jan 1, 2026).
Original GitHub issue: https://github.com/justlovemaki/AIClient-2-API/issues/148

无有效日志。

搭建现状:使用的是Zeabur搭建,内网启动了8085和8086端口,但是无法映射到公网,只能手动填写回调url。

日志:
[01:02:22] [INFO] [OAuth] 已关闭提供商 gemini-cli-oauth 在端口 8085 上的旧服务器
[01:02:22] [INFO] [Gemini Auth] OAuth 回调服务器已启动于 0.0.0.0:8085

f12中网络 无请求。
控制台除了心跳外无其他显示。

Originally created by @Yoahoug on GitHub (Jan 1, 2026). Original GitHub issue: https://github.com/justlovemaki/AIClient-2-API/issues/148 无有效日志。 搭建现状:使用的是Zeabur搭建,内网启动了8085和8086端口,但是无法映射到公网,只能手动填写回调url。 日志: [01:02:22] [INFO] [OAuth] 已关闭提供商 gemini-cli-oauth 在端口 8085 上的旧服务器 [01:02:22] [INFO] [Gemini Auth] OAuth 回调服务器已启动于 0.0.0.0:8085 f12中网络 无请求。 控制台除了心跳外无其他显示。
kerem closed this issue 2026-02-27 07:18:05 +03:00
Author
Owner

@justlovemaki commented on GitHub (Jan 2, 2026):

请确保8085和8086能在浏览器内正常访问,才能成功回调

<!-- gh-comment-id:3704406741 --> @justlovemaki commented on GitHub (Jan 2, 2026): 请确保8085和8086能在浏览器内正常访问,才能成功回调
Author
Owner

@Yoahoug commented on GitHub (Jan 2, 2026):

那在端口不支持的情况下,手动填写url可以在本地直接解析回调url吧。具体可以参考https://github.com/su-kaka/gcli2api

文件: front/common.js 函数: processCallbackUrl()
文件: src/web_routes.py 函数: auth_callback_url
文件: src/google_oauth_api.py 类/方法: Flow.exchange_code

<!-- gh-comment-id:3704442327 --> @Yoahoug commented on GitHub (Jan 2, 2026): 那在端口不支持的情况下,手动填写url可以在本地直接解析回调url吧。具体可以参考https://github.com/su-kaka/gcli2api 文件: front/common.js 函数: processCallbackUrl() 文件: src/web_routes.py 函数: auth_callback_url 文件: src/google_oauth_api.py 类/方法: Flow.exchange_code
Author
Owner

@justlovemaki commented on GitHub (Jan 3, 2026):

用最新版再试试

<!-- gh-comment-id:3707000130 --> @justlovemaki commented on GitHub (Jan 3, 2026): 用最新版再试试
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/AIClient-2-API-justlovemaki#118
No description provided.