mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-11 20:05:25 +00:00
[bug] onboarding: fix infinite loop when using GCP IAP (#381)
Co-authored-by: Michael Sukkarieh <michael.sukkarieh@mail.mcgill.ca>
This commit is contained in:
parent
74e37d129c
commit
4e34406386
2 changed files with 5 additions and 1 deletions
|
|
@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
|
||||
## [Unreleased]
|
||||
|
||||
### Fixed
|
||||
- Fixed onboarding infinite loop when GCP IAP Auth is enabled. [#381](https://github.com/sourcebot-dev/sourcebot/pull/381)
|
||||
|
||||
### Added
|
||||
- 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)
|
||||
|
||||
|
|
|
|||
|
|
@ -94,7 +94,8 @@ export default async function Layout({
|
|||
}
|
||||
}
|
||||
|
||||
if (!org.isOnboarded) {
|
||||
// If the org is not onboarded, and GCP IAP is not enabled, show the onboarding page
|
||||
if (!org.isOnboarded && !(env.AUTH_EE_GCP_IAP_ENABLED && env.AUTH_EE_GCP_IAP_AUDIENCE)) {
|
||||
return (
|
||||
<OnboardGuard>
|
||||
{children}
|
||||
|
|
|
|||
Loading…
Reference in a new issue