Skip to content

Commit 289c7fb

Browse files
committed
[bug] onboarding: fix infinite loop when using GCP IAP
1 parent ee90edc commit 289c7fb

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [Unreleased]
9+
10+
- Fixed onboarding infinite loop when GCP IAP Auth is enabled. [#381](https://github.com/sourcebot-dev/sourcebot/pull/381)
11+
812
## [4.5.1] - 2025-07-14
913

1014
### Changed

packages/web/src/app/[domain]/layout.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ export default async function Layout({
9595
}
9696
}
9797

98-
if (!org.isOnboarded) {
98+
// If the org is not onboarded, and GCP IAP is not enabled, show the onboarding page
99+
if (!org.isOnboarded && !(env.AUTH_EE_GCP_IAP_ENABLED && env.AUTH_EE_GCP_IAP_AUDIENCE)) {
99100
return (
100101
<OnboardGuard>
101102
{children}

0 commit comments

Comments
 (0)