Skip to content

Commit c1cfd6e

Browse files
authored
[7.6] Security - Inject logout url (#57201) (#57211)
1 parent 8945796 commit c1cfd6e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

x-pack/legacy/plugins/security/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ export const security = kibana =>
112112
tenant: server.newPlatform.setup.core.http.basePath.serverBasePath,
113113
},
114114
enableSpaceAwarePrivileges: server.config().get('xpack.spaces.enabled'),
115+
logoutUrl: `${server.newPlatform.setup.core.http.basePath.serverBasePath}/logout`,
115116
};
116117
},
117118
},

x-pack/plugins/security/public/nav_control/nav_control_service.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,7 @@ export class SecurityNavControlService {
6565
mount: (el: HTMLElement) => {
6666
const I18nContext = core.i18n.Context;
6767

68-
const serverBasePath = core.injectedMetadata.getInjectedVar('serverBasePath') as string;
69-
70-
const logoutUrl = `${serverBasePath}/logout`;
68+
const logoutUrl = core.injectedMetadata.getInjectedVar('logoutUrl') as string;
7169

7270
const props = {
7371
user: currentUserPromise,

0 commit comments

Comments
 (0)