Skip to content

Commit

Permalink
[8.x] [Authz] Types cleanup for AuthorizationServiceSetup (elastic#20…
Browse files Browse the repository at this point in the history
…4208) (elastic#204252)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Authz] Types cleanup for AuthorizationServiceSetup
(elastic#204208)](elastic#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":"[email protected]"},"sourceCommit":{"committedDate":"2024-12-13T16:09:34Z","message":"[Authz]
Types cleanup for AuthorizationServiceSetup (elastic#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 (elastic#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 (elastic#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 <[email protected]>
  • Loading branch information
kibanamachine and elena-shostak authored Dec 13, 2024
1 parent 0d1aa2a commit 8d8e985
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion x-pack/packages/security/plugin_types_server/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/security/server/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8d8e985

Please sign in to comment.