Details
Description
For any work done on threads that are not triggered by a request thread, the SecurityManager should be accessible to these threads so the Subject.Builder can be used properly.
This can be accomplished by setting the configured SecurityManager as a static member variable in SecurityUtils (via SecurityUtils.setSubjectManager). While static memory is not ideal, it is probably good enough for 90% of web applications, and can be a viable solution.
Attachments
Issue Links
- relates to
-
SHIRO-291 Provide ServletContextListener for initializing Shiro SecurityManager
- Closed