ewesten opened a new issue, #2405: URL: https://github.com/apache/shiro/issues/2405
### Search before asking - [x] I had searched in the [issues, **including closed issues**](https://github.com/apache/shiro/issues?q=is%3Aissue) and found no similar issues. ### Question Hello, with the change from #2082 we are no longer able to run our multi-threading model as before so that we could not adopt Shiro 2.0.4 or higher. Essentially our coding relies so far on the fact that we can obtain the principal using `SecurityUtils.getSubject().getPrincipal()` also in child threads launched from a parent thread (typically an HTTP request). I tried following guidance from https://shiro.apache.org/subject.html#Subject-ThreadAssociation but without success. Even when associating the subject with the Runnable, I am receiving `null` for the principal now which used to work prior to 2.0.4. Is there any guidance / workaround how the user context can be made available to child threads? Regards, Eric -- 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]
