Skip to content

Commit

Permalink
Security - Inject logout url (#57201)
Browse files Browse the repository at this point in the history
  • Loading branch information
legrego authored Feb 10, 2020
1 parent ce4a0f7 commit b228689
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 @@ -86,6 +86,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 b228689

Please sign in to comment.