If you configure the Shiro Filter, the subject will automatically be associated with the session. (you can configure it with annotations, or manually if needed)
On Sun, May 6, 2018 at 3:11 PM, ayv <anil.kumar....@oracle.com> wrote: > Hi,I need to create a custom Subject instance & make it available through > out > the user session. I am initializing shiro programmatically. Below is my > code:Factory factory = new > IniSecurityManagerFactory("file:shiro.ini");SecurityManager > securityManager > = > factory.getInstance();SecurityUtils.setSecurityManager(securityManager); > Authentication > is taken care by another application. I only need to take care of > authorization. So I can't do a login manually. All I have access to is > usename & HttpSession. How I can associate the Subject with a > HttpSession?Thanks,Anil. > > > > -- > Sent from: http://shiro-user.582556.n2.nabble.com/ >