Hi all,

I am quite new to Shiro and currently moving from Spring Security to Shiro.


One question: After a user is successfully authenticated and authorized, what is the best way to get the user in a Spring controller method?

With used Spring Security it was something like that:

publicModelAndView index(*@AuthenticationPrincipalUsernamePasswordAuthenticationTokenauthenticatedUser*,

HttpServletRequest request, HttpServletResponse response) throwsIOException {


Best regards,


Helge

Reply via email to