Sorry, I didn't paste the doc link:
https://shiro.apache.org/web.html

On Mon, May 7, 2018 at 10:13 AM, Brian Demers <[email protected]>
wrote:

> 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 <[email protected]> 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(secur
>> ityManager);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/
>>
>
>

Reply via email to