Hi Les,

I looked into both those options, but they don't seem to fit my
requirements: In both cases the subject doesn't retain the original
permissions, and I need those. Or did I overlook something in "runAs"? When
I tried it, all my permissions were gone.

Thanks for you help,
Natalie


Les Hazlewood-2 wrote:
> 
> Hi Natalie,
> 
> You can do this in a couple of ways:
> 
> 1.  Use Shiro's 'runAs' feature (Subject.runAs*) to 'run as' the Admin
> user
> after they give the correct username/password).
> 2.  Just call subject.login again with the admin principals and
> credentials.
>  Note that with this approach, the subject will 'lose' the previous
> subject
> identity.
> 
> HTH,
> 
> Les
> 
> 
-- 
View this message in context: 
http://shiro-user.582556.n2.nabble.com/authentication-as-user-and-admin-tp5208454p5209897.html
Sent from the Shiro User mailing list archive at Nabble.com.

Reply via email to