How do I propagate the Spring Security principal with asynchronous continuations?


Is there a way to propagate the Spring Security principle to the asynchronous continuation?

I know that Spring itself provides a mechanism to propagate the principle to asynchronous calls done with the @Async annotation. This is simply done by setting the SecurityContextHolder.MODE_INHERITABLETHREADLOCAL strategy. (source:

I want to do something similar for the asynchronous continuations of a process. Is there a way to achieve this?

Thanks in advance,