Google App Engine多域名下Google身份验证配置问题咨询
Google App Engine Google Auth: Multiple Domain Support?
Hey there, sorry to break it to you but Google App Engine does NOT support configuring multiple domains in the "Google Apps Domain" field under Settings.
The comma-separated approach you tried won't work because this field is explicitly designed to accept only a single domain value—there's no built-in logic to parse multiple domains from that input.
If you need to restrict access to users from multiple Google Workspace domains, here are two solid workarounds:
- Use Firebase Authentication: It’s fully compatible with GAE and lets you easily add multiple authorized domains to your access rules. You can map your GAE app to Firebase Auth with minimal setup, and it handles the domain checks out of the box.
- Build a custom auth middleware: Write a lightweight middleware layer for your GAE app that verifies the user’s Google account domain against a pre-defined allowlist. This gives you full control over which domains get access, though it requires a bit more coding work.
内容的提问来源于stack exchange,提问作者Allister Antosik
相关产品推荐
相关产品推荐

