Camunda asynchronous continuation is producing null for SecurityContextHolder.getContext().getAuthentication()

Hi All,

I am making a webclient secured call after an asynchronous continuation, but that is producing an error saying

servletcontext cannot be null

While checking i found it is because the executer service is creating a new thread and the security context is not propagated. So i tried with the following code and it didn’t worked for me

	@Bean
	public DelegatingSecurityContextAsyncTaskExecutor taskExecutor(ThreadPoolTaskExecutor camundaTaskExecutor) {
		return new DelegatingSecurityContextAsyncTaskExecutor(camundaTaskExecutor);
	}

any workable solutions