mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[Security Solution] Modifying the login method (#171383)
This commit is contained in:
parent
b8259a698d
commit
3bb16c7dcc
1 changed files with 3 additions and 2 deletions
|
@ -12,7 +12,7 @@ import { LoginState } from '@kbn/security-plugin/common/login_state';
|
|||
import type { SecurityRoleName } from '@kbn/security-solution-plugin/common/test';
|
||||
import { KNOWN_SERVERLESS_ROLE_DEFINITIONS } from '@kbn/security-solution-plugin/common/test';
|
||||
import { LOGOUT_URL } from '../urls/navigation';
|
||||
import { rootRequest } from './common';
|
||||
import { API_HEADERS, rootRequest } from './common';
|
||||
import {
|
||||
CLOUD_SERVERLESS,
|
||||
ELASTICSEARCH_PASSWORD,
|
||||
|
@ -210,7 +210,7 @@ const loginWithUsernameAndPassword = (username: string, password: string): void
|
|||
(provider) => provider.type === 'basic'
|
||||
);
|
||||
|
||||
return rootRequest({
|
||||
cy.request({
|
||||
url: `${baseUrl}/internal/security/login`,
|
||||
method: 'POST',
|
||||
body: {
|
||||
|
@ -219,6 +219,7 @@ const loginWithUsernameAndPassword = (username: string, password: string): void
|
|||
currentURL: '/',
|
||||
params: { username, password },
|
||||
},
|
||||
headers: API_HEADERS,
|
||||
});
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue