目前 OAuth 架構
- 一般登入 provider:google。
- 一般登入 scopes:openid、email、profile。
- 整合 provider:google-integration。
- 整合 scopes:openid、email、profile、calendar.events、tasks。
各 scope 用途
- openid / email / profile:辨識登入狀態與顯示使用者基本帳號資訊。
- calendar.events:在使用者主動按下按鈕後,將練習排入使用者的主要 Google Calendar。
- tasks:在使用者主動按下按鈕後,將練習建立成 Google Tasks 提醒。
不會做的事
- 不讀取或同步使用者全部健康紀錄到 Google。
- 不出售 Google 使用者資料。
- 不把 Calendar / Tasks 資料用於廣告、信用評分或任何非使用者要求的用途。
- 不在使用者未按下排程按鈕時建立 Calendar event 或 Task。
審核前必備公開 URL
- Homepage:https://brain-recovery.zeabur.app
- Privacy Policy:https://brain-recovery.zeabur.app/privacy
- Terms of Service:https://brain-recovery.zeabur.app/terms
- Data Deletion:https://brain-recovery.zeabur.app/data-deletion
- Health Disclaimer:https://brain-recovery.zeabur.app/health-disclaimer
Google Cloud Console 檢查項目
- OAuth app name 使用「大腦不疲勞」。
- Support email 與 developer contact email 可正常收信。
- Authorized domain 包含 brain-recovery.zeabur.app。
- 一般登入 client 只設定 callback:/api/auth/callback/google。
- 整合 client 設定 callback:/api/auth/callback/google-integration。
- Calendar API 與 Tasks API 已啟用。
- 測試帳號已加入 OAuth test users,直到正式通過審核。
審核影片腳本
- 打開首頁,展示不用登入也可使用檢測與打卡。
- 進入設定頁,展示一般 Google 登入只要求基本帳號資訊。
- 進入排程頁,點選「連接 Google 行事曆 / Tasks」。
- 展示授權後使用者主動點擊,App 才建立 Calendar event 或 Task。
- 展示資料刪除頁與 Google 授權撤銷方式。
目前狀態
一般登入已可用低風險 scope 開放。Calendar / Tasks 若要讓所有 Google 使用者使用,下一步是用本頁與隱私權政策送 Google OAuth verification。