From 5a7159f5dffd9539944336d472d8b34d6bff0c26 Mon Sep 17 00:00:00 2001 From: Andrew Jiang Date: Tue, 4 Jun 2024 17:50:28 -0400 Subject: [PATCH] hackhack: force auth=true in websockets (#960) --- packages/ui/app/src/resolver/ApiDefinitionResolver.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/ui/app/src/resolver/ApiDefinitionResolver.ts b/packages/ui/app/src/resolver/ApiDefinitionResolver.ts index d52b0f6d03..20dbabf786 100644 --- a/packages/ui/app/src/resolver/ApiDefinitionResolver.ts +++ b/packages/ui/app/src/resolver/ApiDefinitionResolver.ts @@ -493,7 +493,8 @@ export class ApiDefinitionResolver { messagesPromise, ]); - const { auth, headers } = this.mergeAuthAndHeaders(websocket.auth, this.holder.api.auth, rawHeaders); + // HACKHACK: force auth=true forces auth to always be included since websocket security schemes is borked in FernIR -> FDR + const { auth, headers } = this.mergeAuthAndHeaders(true, this.holder.api.auth, rawHeaders); return { type: "websocket",