Skip to content

Commit

Permalink
[security-in-core] flag APIs as deprecated (#184827)
Browse files Browse the repository at this point in the history
## Summary

Part of #174578

Flag as deprecated the APIs from the security plugin that are now
re-exposed from Core
  • Loading branch information
pgayvallet authored Jun 6, 2024
1 parent a03f3bc commit 4b5b00f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions x-pack/packages/security/plugin_types_public/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
/**
Expand All @@ -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;
/**
Expand All @@ -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;
}
6 changes: 6 additions & 0 deletions x-pack/packages/security/plugin_types_server/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ export interface SecurityPluginSetup {
license: SecurityLicense;
/**
* Exposes services for audit logging.
*
* @deprecated in favor of Core's `security` service
*/
audit: AuditServiceSetup;
/**
Expand All @@ -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;
/**
Expand All @@ -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;
}

0 comments on commit 4b5b00f

Please sign in to comment.