shiro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manoj Khangaonkar <khangaon...@gmail.com>
Subject Re: Impersonate an user
Date Fri, 23 Sep 2011 22:25:24 GMT
HI

Use the method

Subject.runAs(PrincipalCollection ....

to impersonate a user and the method

Subject.releaseRunAs

to revert back to the original

Manoj



On Thu, Sep 22, 2011 at 11:45 PM, Sudhir N <sudhir_nimavat@yahoo.com> wrote:
>
> I need to implement the 'Impersonate an user' functionality so that who ever
> has that perm. can see the application from users perspective.
> Can any one guide me on how that can be accomplished.
> I am using Shiro with grails (Shiro security plugin), but that does not
> change the things much I believe.
>
> Thanks
> Sudhir
> http://www.geeksays.com



-- 
http://khangaonkar.blogspot.com/

Mime
View raw message