lprimak commented on issue #2405:
URL: https://github.com/apache/shiro/issues/2405#issuecomment-3602883879
Hi,
You are on the right track.
In your child threads, you need to use something like the following:
```
try {
ThreadContext.bind(securityManager)
// rest of your code
} finally {
ThreadContext.remove();
}
```
you may also do ThreadContext.bind(Subject) but that should already be taken
care of as documented in
https://shiro.apache.org/subject.html#Subject-ThreadAssociation
Hope this helps.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]