title: Spring MVC get current logged in user
body: <p>My app only allows access if the current user is a specific type, this also means the role they have can log into other applications and then access certain parts of my app with specific roles, for example, my web app is configured that</p>
  
  <pre><code>&lt;security-role&gt; 
     &lt;role-name&gt;teamb&lt;/role-name&gt;       
  &lt;/security-role&gt;
  </code></pre>
  
  <p>Now what I need is to be able access the details regarding this role in my app, ie.e user name</p>
  
  <p>how can I do this in my <code>Spring MVC</code> app?</p>