Skip to content

Commit 4e34406

Browse files
drew-u410msukkari
andauthored
[bug] onboarding: fix infinite loop when using GCP IAP (#381)
Co-authored-by: Michael Sukkarieh <michael.sukkarieh@mail.mcgill.ca>
1 parent 74e37d1 commit 4e34406

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Fixed
11+
- Fixed onboarding infinite loop when GCP IAP Auth is enabled. [#381](https://github.com/sourcebot-dev/sourcebot/pull/381)
12+
1013
### Added
1114
- Introducing Ask Sourcebot - ask natural langauge about your codebase. Get back comprehensive Markdown responses with inline citations back to the code. Bring your own LLM api key. [#392](https://github.com/sourcebot-dev/sourcebot/pull/392)
1215

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

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

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

0 commit comments

Comments
 (0)