Skip to content

Commit cd0fc46

Browse files
committed
fix(sso): null out oidcConfig on parse failure to prevent unredacted secret leak
1 parent b70ea44 commit cd0fc46

File tree

1 file changed

+3
-1
lines changed
  • apps/sim/app/api/auth/sso/providers

1 file changed

+3
-1
lines changed

apps/sim/app/api/auth/sso/providers/route.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ export async function GET(request: NextRequest) {
5858
const parsed = JSON.parse(oidcConfig)
5959
parsed.clientSecret = REDACTED_MARKER
6060
oidcConfig = JSON.stringify(parsed)
61-
} catch {}
61+
} catch {
62+
oidcConfig = null
63+
}
6264
}
6365
return {
6466
...provider,

0 commit comments

Comments
 (0)