diff --git a/airbyte-webapp/src/packages/cloud/lib/auth/GoogleAuthService.ts b/airbyte-webapp/src/packages/cloud/lib/auth/GoogleAuthService.ts index 13aa959f4af5..32c11bf9f1c6 100644 --- a/airbyte-webapp/src/packages/cloud/lib/auth/GoogleAuthService.ts +++ b/airbyte-webapp/src/packages/cloud/lib/auth/GoogleAuthService.ts @@ -38,7 +38,11 @@ export class GoogleAuthService { } async loginWithOAuth(provider: OAuthProviders) { - await signInWithPopup(this.auth, provider === "github" ? new GithubAuthProvider() : new GoogleAuthProvider()); + // Instantiate the appropriate auth provider. For Google we're specifying the `hd` parameter, to only show + // Google accounts in the selector that are linked to a business (GSuite) account. + const authProvider = + provider === "github" ? new GithubAuthProvider() : new GoogleAuthProvider().setCustomParameters({ hd: "*" }); + await signInWithPopup(this.auth, authProvider); } async login(email: string, password: string): Promise {