@@ -30,7 +30,10 @@ export const security = (kibana) => new kibana.Plugin({
3030 enabled : Joi . boolean ( ) . default ( true ) ,
3131 cookieName : Joi . any ( ) . description ( 'This key is handled in the new platform security plugin ONLY' ) ,
3232 encryptionKey : Joi . any ( ) . description ( 'This key is handled in the new platform security plugin ONLY' ) ,
33- sessionTimeout : Joi . any ( ) . description ( 'This key is handled in the new platform security plugin ONLY' ) ,
33+ session : Joi . object ( {
34+ idleTimeout : Joi . any ( ) . description ( 'This key is handled in the new platform security plugin ONLY' ) ,
35+ lifespan : Joi . any ( ) . description ( 'This key is handled in the new platform security plugin ONLY' ) ,
36+ } ) . default ( ) ,
3437 secureCookies : Joi . any ( ) . description ( 'This key is handled in the new platform security plugin ONLY' ) ,
3538 public : Joi . any ( ) . description ( 'This key is handled in the new platform security plugin ONLY' ) ,
3639 loginAssistanceMessage : Joi . string ( ) . default ( ) ,
@@ -46,9 +49,10 @@ export const security = (kibana) => new kibana.Plugin({
4649 } ) . default ( ) ;
4750 } ,
4851
49- deprecations : function ( { unused , rename } ) {
52+ deprecations : function ( { rename , unused } ) {
5053 return [
5154 unused ( 'authorization.legacyFallback.enabled' ) ,
55+ rename ( 'sessionTimeout' , 'session.idleTimeout' ) ,
5256 rename ( 'authProviders' , 'authc.providers' ) ,
5357 ( settings , log ) => {
5458 const hasSAMLProvider = get ( settings , 'authc.providers' , [ ] ) . includes ( 'saml' ) ;
@@ -103,7 +107,11 @@ export const security = (kibana) => new kibana.Plugin({
103107
104108 return {
105109 secureCookies : securityPlugin . __legacyCompat . config . secureCookies ,
106- sessionTimeout : securityPlugin . __legacyCompat . config . sessionTimeout ,
110+ session : {
111+ tenant : server . newPlatform . setup . core . http . basePath . serverBasePath ,
112+ idleTimeout : securityPlugin . __legacyCompat . config . session . idleTimeout ,
113+ lifespan : securityPlugin . __legacyCompat . config . session . lifespan ,
114+ } ,
107115 enableSpaceAwarePrivileges : server . config ( ) . get ( 'xpack.spaces.enabled' ) ,
108116 } ;
109117 } ,
0 commit comments