Skip to content

Commit ea4ad7d

Browse files
authored
commented ws auth (#96)
1 parent b5ded62 commit ea4ad7d

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

server/helpers/server.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@ import fastify, { FastifyInstance } from "fastify";
66
import * as fs from "fs";
77
import { env, errorHandler, getLogSettings } from "../../core";
88
import { apiRoutes } from "../../server/api";
9-
import {
10-
performHTTPAuthentication,
11-
performWSAuthentication,
12-
} from "../middleware/auth";
9+
import { performHTTPAuthentication } from "../middleware/auth";
1310
import { openapi } from "./openapi";
1411

1512
const createServer = async (serverName: string): Promise<FastifyInstance> => {
@@ -48,7 +45,8 @@ const createServer = async (serverName: string): Promise<FastifyInstance> => {
4845
request.headers.upgrade.toLowerCase() === "websocket"
4946
) {
5047
server.log.info("WebSocket connection attempt");
51-
await performWSAuthentication(request, reply);
48+
// ToDo: Uncomment WebSocket Authentication post Auth SDK is implemented
49+
// await performWSAuthentication(request, reply);
5250
} else {
5351
server.log.info("Regular HTTP request");
5452
await performHTTPAuthentication(request, reply);

0 commit comments

Comments
 (0)