From 8d8e985c3dcafb6a7cc65a01f79426b4c2e199de Mon Sep 17 00:00:00 2001 From: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Date: Sat, 14 Dec 2024 05:04:07 +1100 Subject: [PATCH] [8.x] [Authz] Types cleanup for AuthorizationServiceSetup (#204208) (#204252) # Backport This will backport the following commits from `main` to `8.x`: - [[Authz] Types cleanup for AuthorizationServiceSetup (#204208)](https://github.com/elastic/kibana/pull/204208) ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) Co-authored-by: Elena Shostak <165678770+elena-shostak@users.noreply.github.com> --- x-pack/packages/security/plugin_types_server/src/plugin.ts | 2 +- x-pack/plugins/security/server/plugin.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/packages/security/plugin_types_server/src/plugin.ts b/x-pack/packages/security/plugin_types_server/src/plugin.ts index c834dc46225f3..7d37935ab760a 100644 --- a/x-pack/packages/security/plugin_types_server/src/plugin.ts +++ b/x-pack/packages/security/plugin_types_server/src/plugin.ts @@ -45,7 +45,7 @@ export interface SecurityPluginStart { /** * Authorization services to manage and access the permissions a particular user has. */ - authz: Omit; + authz: AuthorizationServiceSetup; /** * User profiles services to retrieve user profiles. * diff --git a/x-pack/plugins/security/server/plugin.ts b/x-pack/plugins/security/server/plugin.ts index 119dbcef13427..f0a218b8424b5 100644 --- a/x-pack/plugins/security/server/plugin.ts +++ b/x-pack/plugins/security/server/plugin.ts @@ -80,7 +80,7 @@ export interface SecurityPluginSetup extends SecurityPluginSetupWithoutDeprecate /** * @deprecated Use `authz` methods from the `SecurityServiceStart` contract instead. */ - authz: Omit; + authz: AuthorizationServiceSetup; } export interface PluginSetupDependencies {