[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)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Elena
Shostak","email":"165678770+elena-shostak@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-12-13T16:09:34Z","message":"[Authz]
Types cleanup for AuthorizationServiceSetup (#204208)\n\n##
Summary\r\n\r\nTypes cleanup for
AuthorizationServiceSetup.\r\n\r\n__Relates:
https://github.com/elastic/kibana/issues/196271__","sha":"bf40e560e793457eed0eb9cd72f2308a4028c5bd","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Security","release_note:skip","Feature:Security/Authorization","v9.0.0","backport:prev-minor"],"title":"[Authz]
Types cleanup for
AuthorizationServiceSetup","number":204208,"url":"https://github.com/elastic/kibana/pull/204208","mergeCommit":{"message":"[Authz]
Types cleanup for AuthorizationServiceSetup (#204208)\n\n##
Summary\r\n\r\nTypes cleanup for
AuthorizationServiceSetup.\r\n\r\n__Relates:
https://github.com/elastic/kibana/issues/196271__","sha":"bf40e560e793457eed0eb9cd72f2308a4028c5bd"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/204208","number":204208,"mergeCommit":{"message":"[Authz]
Types cleanup for AuthorizationServiceSetup (#204208)\n\n##
Summary\r\n\r\nTypes cleanup for
AuthorizationServiceSetup.\r\n\r\n__Relates:
https://github.com/elastic/kibana/issues/196271__","sha":"bf40e560e793457eed0eb9cd72f2308a4028c5bd"}}]}]
BACKPORT-->

Co-authored-by: Elena Shostak <165678770+elena-shostak@users.noreply.github.com>
This commit is contained in:
Kibana Machine 2024-12-14 05:04:07 +11:00 committed by GitHub
parent 0d1aa2a734
commit 8d8e985c3d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -45,7 +45,7 @@ export interface SecurityPluginStart {
/**
* Authorization services to manage and access the permissions a particular user has.
*/
authz: Omit<AuthorizationServiceSetup, 'getCurrentUser' | 'getSecurityConfig'>;
authz: AuthorizationServiceSetup;
/**
* User profiles services to retrieve user profiles.
*

View file

@ -80,7 +80,7 @@ export interface SecurityPluginSetup extends SecurityPluginSetupWithoutDeprecate
/**
* @deprecated Use `authz` methods from the `SecurityServiceStart` contract instead.
*/
authz: Omit<AuthorizationServiceSetup, 'getCurrentUser' | 'getSecurityConfig'>;
authz: AuthorizationServiceSetup;
}
export interface PluginSetupDependencies {