GitHub user lprimak added a comment to the discussion: [Question] how to ensure
child threads have same subject as parent thread
Also, have you tried just doing something like this:
```
var securityManager = SecurityUtils.getSecurityManager();
Runnable task = () -> {
try {
ThreadContext.bind(securityManager);
// my code with access control check based on principal
} finally {
ThreadContext.remove();
}
};
...
```
GitHub link:
https://github.com/apache/shiro/discussions/2413#discussioncomment-15168142
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]