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: http://www.baeldung.com/spring-security-async-principal-propagation)
I want to do something similar for the asynchronous continuations of a process. Is there a way to achieve this?
Thanks in advance,