I’m writing bitbucket plugin and trying to offload some bitbucket specific work into thread pool but I’m getting “AuthenticationCredentialsNotFoundException”.
I’m guessing it’s due to bitbucket API objects having thread affinity.
Is there any way to copy thread context to ExecutorService?
I was trying to use Spring Security but it’s not provided by bitbucket (cannot import it so easily)…
I was trying to get “ThreadLocalDelegateExecutorFactory” from SAL but Spring cannot resolve it…
Any other ideas?
Exception in question:
and link to the code:
Thanks a lot!