diff --git a/backend/app/shorts_oauth.py b/backend/app/shorts_oauth.py index 2308f78..cf00767 100644 --- a/backend/app/shorts_oauth.py +++ b/backend/app/shorts_oauth.py @@ -19,16 +19,11 @@ from . import db YOUTUBE_SCOPES = " ".join( [ - # Full channel management (playlists, captions-ish surface, live bindings, etc.) - "https://www.googleapis.com/auth/youtube", - "https://www.googleapis.com/auth/youtube.force-ssl", - # Explicit upload + readonly (kept for clarity / older clients) + # Minimal set for Shorts upload + channel identity. + # Avoid youtubepartner / yt-analytics here — they often break + # unverified OAuth consent (Google 500 / access_denied). "https://www.googleapis.com/auth/youtube.upload", "https://www.googleapis.com/auth/youtube.readonly", - # Partner / brand-account surfaces when available - "https://www.googleapis.com/auth/youtubepartner", - # Channel analytics (non-monetary) - "https://www.googleapis.com/auth/yt-analytics.readonly", ] ) diff --git a/frontend/src/components/GoogleOauthSetupWizard.tsx b/frontend/src/components/GoogleOauthSetupWizard.tsx index f69d9b6..c868e3d 100644 --- a/frontend/src/components/GoogleOauthSetupWizard.tsx +++ b/frontend/src/components/GoogleOauthSetupWizard.tsx @@ -132,21 +132,18 @@ export function GoogleOauthSetupWizard({
youtube、
- youtube.force-ssl、
- youtube.upload、
- youtube.readonly、
- youtubepartner、
- yt-analytics.readonly
+ 同意屏幕选 External;Scopes 只需:
+ youtube.upload、
+ youtube.readonly
+ (不要加 youtubepartner / yt-analytics,未验证应用容易在同意页 500)