I am in the process of migration my app from grails 2.4.4 to grails 3.2.9.
I am trying to migrate the shiro plugin from
However after the migration whenever the following is called in my user permission service:
Subject subject = SecurityUtils.getSubject()
I get the error:
Caused by: org.apache.shiro.UnavailableSecurityManagerException:
No SecurityManager accessible to the calling code, either bound to the org.apache.shiro.util.ThreadContext or as a vm static singleton.
This is an invalid application configuration.
Apart form the code generated by
And the instructions in:
Is there any other new shiro config that is needed?