How to change granted role temporarily to achieve "view the site as" someone else
Posted
by Roy Chan
on Stack Overflow
See other posts from Stack Overflow
or by Roy Chan
Published on 2010-04-01T19:49:53Z
Indexed on
2010/04/01
19:53 UTC
Read the original article
Hit count: 281
spring-security
|spring
Hi Gurus,
We are using 2.x spring security right now. I am asked to build an admin tool so that the ROLE_ADMIN can change to any user in the site and view the site as that person (each person on the site may see different stuff depending on the role which is dynamically granted base on the database) and of course the admin should be able to switch back to admin without logging in.
Is there a build in function, if not how should I do this?
Thanks in advance!
© Stack Overflow or respective owner