Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { resolve } from 'path';
import axios from 'axios';
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From what I can tell this file is only used in serverless tests, and hence it should use UIAM mode (see #260546)

import fs from 'fs';
import yaml from 'js-yaml';
import { MOCK_IDP_UIAM_ORGANIZATION_ID } from '@kbn/mock-idp-utils';
import { DEFAULT_SERVERLESS_ROLE } from '../env_var_names_constants';

export const samlAuthentication = async (
Expand Down Expand Up @@ -70,6 +71,11 @@ export const samlAuthentication = async (
log,
isCloud: config.env.CLOUD_SERVERLESS,
cloudUsersFilePath,
serverless: {
uiam: true,
projectType: 'security',
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see security is already hard-coded in rolesPath, so I'm doing the same here.

organizationId: MOCK_IDP_UIAM_ORGANIZATION_ID,
},
});

const adminCookieHeader = await sessionManager.getApiCredentialsForRole('admin');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"@kbn/security-plugin-types-common",
"@kbn/securitysolution-utils",
"@kbn/maintenance-windows-plugin",
"@kbn/test-saml-auth"
"@kbn/test-saml-auth",
"@kbn/mock-idp-utils"
]
}
Loading