From a134e5702a4e5017604dd2c319d9a5809812d9bd Mon Sep 17 00:00:00 2001 From: Ioannis Kakavas Date: Wed, 22 May 2019 15:55:23 +0300 Subject: [PATCH] Add manage_oidc privilege (#36873) manage_oidc cluster privilege was added to Elasticsearch in https://github.com/elastic/elasticsearch/pull/40674 --- x-pack/plugins/security/public/services/role_privileges.js | 1 + .../es/__snapshots__/cluster_privileges.test.tsx.snap | 3 +++ 2 files changed, 4 insertions(+) diff --git a/x-pack/plugins/security/public/services/role_privileges.js b/x-pack/plugins/security/public/services/role_privileges.js index 8c5d7f4a49ecf..e9e3dbf729a2c 100644 --- a/x-pack/plugins/security/public/services/role_privileges.js +++ b/x-pack/plugins/security/public/services/role_privileges.js @@ -28,6 +28,7 @@ const clusterPrivileges = [ 'manage_token', 'manage_saml', 'create_snapshot', + 'manage_oidc', ]; const indexPrivileges = [ 'all', diff --git a/x-pack/plugins/security/public/views/management/edit_role/components/privileges/es/__snapshots__/cluster_privileges.test.tsx.snap b/x-pack/plugins/security/public/views/management/edit_role/components/privileges/es/__snapshots__/cluster_privileges.test.tsx.snap index c8f2e5aaa01f1..025869af20161 100644 --- a/x-pack/plugins/security/public/views/management/edit_role/components/privileges/es/__snapshots__/cluster_privileges.test.tsx.snap +++ b/x-pack/plugins/security/public/views/management/edit_role/components/privileges/es/__snapshots__/cluster_privileges.test.tsx.snap @@ -82,6 +82,9 @@ exports[`it renders without crashing 1`] = ` Object { "label": "create_snapshot", }, + Object { + "label": "manage_oidc", + }, ] } selectedOptions={Array []}