Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Signed-off-by: Darshit Chanpura <[email protected]>
  • Loading branch information
DarshitChanpura committed Apr 2, 2024
1 parent 4317901 commit 2724e03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/backend/opensearch_security_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {}
Expand All @@ -32,6 +32,7 @@ export class SecurityClient {
headers: {
authorization: `Basic ${authHeader}`,
},
AUTH_REQUEST_TYPE_HEADER: AuthType.BASIC,
});
return {
username: credentials.username,
Expand Down

0 comments on commit 2724e03

Please sign in to comment.