You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@shiro.apache.org by Nweike Onwuyali <on...@esoftiesnigeria.com> on 2013/12/17 15:39:19 UTC

Swicth User functionality

Hi All,

I am new to Shiro. I want to find out if Shiro supports Switch User
processing filter like Spring Security.

This function is similar to Unix 'su'. A common use-case for this function
is the ability to allow higher-authority users (e.g. ROLE_ADMIN) to switch
to a regular user (e.g. ROLE_USER).



---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com

Re: Swicth User functionality

Posted by d2013 <in...@yahoo.com>.
I haven't used this functionality yet personally, but I've seen the
Subject.runAs(PrincipalCollection) method documented. I'm not sure if this
is what you're looking for but it might be a good place to start.

http://shiro.apache.org/static/1.2.2/apidocs/org/apache/shiro/subject/Subject.html#runAs%28org.apache.shiro.subject.PrincipalCollection%29



--
View this message in context: http://shiro-user.582556.n2.nabble.com/Swicth-User-functionality-tp7579469p7579480.html
Sent from the Shiro User mailing list archive at Nabble.com.