From 2724e031a0f9fe0c1aca4d6bbd5c5cdb6118604c Mon Sep 17 00:00:00 2001 From: Darshit Chanpura Date: Tue, 2 Apr 2024 11:32:14 -0400 Subject: [PATCH] Resolves #1840 Signed-off-by: Darshit Chanpura --- server/backend/opensearch_security_client.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/backend/opensearch_security_client.ts b/server/backend/opensearch_security_client.ts index f77af4958..109fad52c 100755 --- a/server/backend/opensearch_security_client.ts +++ b/server/backend/opensearch_security_client.ts @@ -16,7 +16,7 @@ import { ILegacyClusterClient, OpenSearchDashboardsRequest } from '../../../../src/core/server'; import { User } from '../auth/user'; import { TenancyConfigSettings } from '../../public/apps/configuration/panels/tenancy-config/types'; -import { AUTH_REQUEST_TYPE_HEADER, SAML_AUTH_REQUEST_TYPE } from '../../common'; +import { AUTH_REQUEST_TYPE_HEADER, AuthType, SAML_AUTH_REQUEST_TYPE } from '../../common'; export class SecurityClient { constructor(private readonly esClient: ILegacyClusterClient) {} @@ -32,6 +32,7 @@ export class SecurityClient { headers: { authorization: `Basic ${authHeader}`, }, + AUTH_REQUEST_TYPE_HEADER: AuthType.BASIC, }); return { username: credentials.username,