[security-in-core] flag APIs as deprecated (#184827)

## Summary

Part of https://github.com/elastic/kibana/issues/174578

Flag as deprecated the APIs from the security plugin that are now
re-exposed from Core
This commit is contained in:
Pierre Gayvallet 2024-06-06 13:27:05 +02:00 committed by GitHub
parent a03f3bce7d
commit 4b5b00f6c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 0 deletions

View file

@ -14,6 +14,8 @@ import type { UserProfileAPIClient } from './user_profile';
export interface SecurityPluginSetup {
/**
* Exposes authentication information about the currently logged in user.
*
* @deprecated in favor of Core's `security` service
*/
authc: AuthenticationServiceSetup;
/**
@ -33,6 +35,8 @@ export interface SecurityPluginStart {
navControlService: SecurityNavControlServiceStart;
/**
* Exposes authentication information about the currently logged in user.
*
* @deprecated in favor of Core's `security` service
*/
authc: AuthenticationServiceStart;
/**
@ -41,6 +45,8 @@ export interface SecurityPluginStart {
authz: AuthorizationServiceStart;
/**
* A set of methods to work with Kibana user profiles.
*
* @deprecated in favor of Core's `userProfile` service.
*/
userProfiles: UserProfileAPIClient;
}

View file

@ -21,6 +21,8 @@ export interface SecurityPluginSetup {
license: SecurityLicense;
/**
* Exposes services for audit logging.
*
* @deprecated in favor of Core's `security` service
*/
audit: AuditServiceSetup;
/**
@ -35,6 +37,8 @@ export interface SecurityPluginSetup {
export interface SecurityPluginStart {
/**
* Authentication services to confirm the user is who they say they are.
*
* @deprecated in favor of Core's `security` service
*/
authc: AuthenticationServiceStart;
/**
@ -43,6 +47,8 @@ export interface SecurityPluginStart {
authz: AuthorizationServiceSetup;
/**
* User profiles services to retrieve user profiles.
*
* @deprecated in favor of Core's `userProfile` service
*/
userProfiles: UserProfileServiceStart;
}