[7.6] Security - Inject logout url (#57201) (#57211)

This commit is contained in:
Larry Gregory 2020-02-10 12:53:33 -05:00 committed by GitHub
parent 8945796ebf
commit c1cfd6e280
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View file

@ -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`,
};
},
},

View file

@ -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,