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

View file

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