External Service Task with basic Auth


I have a standalone Camunda instance. There are multiple external task clients subscribing to various topics in a process. I turned on basic auth ( with the filter change in web.xml) and all the external tasks throw “Caused by: java.lang.IllegalStateException: A filter or servlet of the current chain does not support asynchronous operations.”
FYI… Here is how I build the client.
ExternalTaskClient client = ExternalTaskClient.create()
.asyncResponseTimeout(10000) // long polling timeout
.addInterceptor(new BasicAuthProvider(“demo”, “demo”)) // Only change made after turning on basic auth
.backoffStrategy(new ExponentialBackoffStrategy(0, 0, 0))
Is the above the right way to build external task client for a Camunda instance with basic auth turned on?