Skip to content

Commit

Permalink
build: api-server fix of a PR
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Bajer <michal.bajer@fujitsu.com>
  • Loading branch information
outSH committed Mar 17, 2022
1 parent faea1c6 commit 6310684
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ import { WatchHealthcheckV1Endpoint } from "./web-services/watch-healthcheck-v1-
import * as default_service from "./generated/proto/protoc-gen-ts/services/default_service";
import { GrpcServerApiServer } from "./web-services/grpc/grpc-server-api-server";
import { determineAddressFamily } from "./common/determine-address-family";
import { AuthorizationProtocol } from "./public-api";

export interface IApiServerConstructorOptions {
readonly pluginManagerOptions?: { pluginsPath: string };
Expand Down Expand Up @@ -733,7 +732,7 @@ export class ApiServer {

this.wsApi.attach(this.httpServerApi, wsOptions);

if (authzProtocol != AuthorizationProtocol.NONE) {
if (authorizerO.isPresent()) {
const socketIoAuthorizer = authorizeSocket({
...authzConf.socketIoJwtOptions,
onAuthentication: (decodedToken) => {
Expand Down

0 comments on commit 6310684

Please sign in to comment.