Skip to content

Commit

Permalink
Security - Inject logout url (elastic#57201)
Browse files Browse the repository at this point in the history
  • Loading branch information
legrego committed Feb 10, 2020
1 parent 8576fe8 commit b4e7049
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions x-pack/legacy/plugins/security/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ export const security = kibana =>
tenant: server.newPlatform.setup.core.http.basePath.serverBasePath,
},
enableSpaceAwarePrivileges: server.config().get('xpack.spaces.enabled'),
logoutUrl: `${server.newPlatform.setup.core.http.basePath.serverBasePath}/logout`,
};
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,7 @@ export class SecurityNavControlService {
mount: (el: HTMLElement) => {
const I18nContext = core.i18n.Context;

const serverBasePath = core.injectedMetadata.getInjectedVar('serverBasePath') as string;

const logoutUrl = `${serverBasePath}/logout`;
const logoutUrl = core.injectedMetadata.getInjectedVar('logoutUrl') as string;

const props = {
user: currentUserPromise,
Expand Down

0 comments on commit b4e7049

Please sign in to comment.