Oh well, I found a solution which seems to work, and here it is for the record.
The comment that a WebEnvironment should not be needed was a good starting point. At first I tried to assemble one in Spring, but that gets awful messy fast. Reading the ShiroInterceptor code more carefully, the environment is only needed to get the SecurityManager, so I hacked together a modified SpringShiroInterceptor that allows the SecurityManager to be autowired by Spring, and used that instead. The Atmosphere layers of annotations make assembling an instance and injecting that hard, but autowiring saved the day here. Committed at: https://github.com/pughlab/tracker/blob/develop/src/main/java/ca/uhnresearch/pughlab/tracker/security/SpringShiroInterceptor.java -- View this message in context: http://shiro-user.582556.n2.nabble.com/Getting-a-WebEnvironment-set-through-Spring-config-tp7580594p7580595.html Sent from the Shiro User mailing list archive at Nabble.com.
