最佳答案
I'm really new to Spring and Spring Security. I was reading about Spring Security and it came out the concept of principal, which should be the current logged user. But what if we have more than one current logged user? So, my question is, what exactly is then the principal in spring security?
I've read for example this tutorial:
http://www.mkyong.com/spring-security/get-current-logged-in-username-in-spring-security/
and they seem to take into account that there's just one current logged user, which isn't often the case.
How do I retrieve a specific user? And how do I differentiate between users that are doing requests?