Skip to content

feat: 加入企業組織登入#36

Open
yuting4281 wants to merge 1 commit intoCassiopeiaCode:mainfrom
yuting4281:main
Open

feat: 加入企業組織登入#36
yuting4281 wants to merge 1 commit intoCassiopeiaCode:mainfrom
yuting4281:main

Conversation

@yuting4281
Copy link
Copy Markdown

問題

  1. 企業版無法登入 — Start URL 寫死為個人版入口,Amazon Q Enterprise / IAM Identity Center 用戶無法使用。

  2. 多 Worker 導致登入失敗 — Auth Session 存在 in-memory,多 worker 下 claim 可能打到不同 process 而回傳 404。

變更內容

  • 新增可自訂 Start URL,企業版用戶可填入組織入口(如 https://your-company.awsapps.com/start
  • 登入介面加入 Start URL 輸入框
  • Worker 數改為 1 修復 Session 丟失問題

- auth_flow.py: make start_url configurable (default personal Q URL)
- app.py: add start_url field to AuthStartBody, pass to device_authorize
- frontend/index.html: add Start URL input field in login section
- docker-compose.yml: set workers=1 to fix in-memory session loss across workers

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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