title: Reload UserDetails Object from Database Every Request in Spring Security
body: <p>I have been looking for a way to reload our Spring Security UserDetails object every request and cannot find an example anywhere.</p>
  
  <p>Does anyone know how to do such a thing?</p>
  
  <p>Basically, we want to reload a user's authorities every request because that user's authorities might change from web request to web request.</p>
  
  <p>For instance, a user that is logged in and is subsequently granted a new authority (and is notified that they have a new authority via email), the only way that I know of that user actually gaining that new authority is by logging out and then logging back in again.  Which I would like to avoid if possible.</p>
  
  <p>Any friendly advice is appreciated.</p>