Hello dear list. Please to answer anybody in which way we can solve this problem. In Jasperserver community 7.8.0 version I tried to configure Token-based Authentication, according to Token-based Authentication | Jaspersoft Community documentation. When I have copied drome jasperreports-server-cp-7.8.0 sample-applicationContext-externalAuth-preauth.xml to the <js-webapp>/WEB-INF with name applicationContext-externalAuth-preauth.xml and restart the server. I get this error in jasperserver log file. ***************** Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'proxyPreAuthenticatedProcessingFilter' defined in ServletContext resource [/WEB-INF/applicationContext-externalAuth-preAuth.xml]: Cannot resolve reference to bean 'preAuthenticatedManager' while setting bean property 'authenticationManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'preAuthenticatedManager' defined in ServletContext resource [/WEB-INF/applicationContext-externalAuth-preAuth.xml]: Cannot create inner bean 'com.jaspersoft.jasperserver.api.security.externalAuth.wrappers.spring.preauth.JSPreAuthenticatedAuthenticationProvider#69ed9b0' of type [com.jaspersoft.jasperserver.api.security.externalAuth.wrappers.spring.preauth.JSPreAuthenticatedAuthenticationProvider] while setting constructor argument with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.jaspersoft.jasperserver.api.security.externalAuth.wrappers.spring.preauth.JSPreAuthenticatedAuthenticationProvider#69ed9b0' defined in ServletContext resource [/WEB-INF/applicationContext-externalAuth-preAuth.xml]: Cannot create inner bean 'com.jaspersoft.jasperserver.api.security.externalAuth.preauth.JSPreAuthenticatedUserDetailsService#aa08994' of type [com.jaspersoft.jasperserver.api.security.externalAuth.preauth.JSPreAuthenticatedUserDetailsService] while setting bean property 'preAuthenticatedUserDetailsService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.jaspersoft.jasperserver.api.security.externalAuth.preauth.JSPreAuthenticatedUserDetailsService#aa08994' defined in ServletContext resource [/WEB-INF/applicationContext-externalAuth-preAuth.xml]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: orgId must be mapped in tokenFormatMapping ******************* Dear list how to resolve reference to bean 'preAuthenticatedManager' while setting bean property 'authenticationManager'; Why Jasper server dose not start when I copied applicationContext-externalAuth-preauth.xml to the <js-webapp>/WEB-INF with the error mentioned above. Best regards, Arayik Manukyan.