title: Spring Boot and Thymeleaf using the #authentication utility
body: <p>Using Spring Boot, the spring security starter and thymeleaf, I cannot access the #authentication utility after login (more precisely, it is null). I do not do any special configuration (assuming the starters will do that for me) and i do not include the sec: namespace in my templates (again, assuming I do not need it - all the examples I've seen so far don't need it either). 
  I would like to call something like: <code>{#authentication.expression('isAuthenticated()')}</code></p>
  
  <p>For reference, here is the controller that gets called after authentication:</p>
  
  <pre><code>import java.security.Principal;
  
  import org.springframework.stereotype.Controller;
  import org.springframework.web.bind.annotation.RequestMapping;
  import org.springframework.web.bind.annotation.RequestMethod;
  
  @Controller
  @RequestMapping("/site-admin")
  public class VZSiteAdminController {
  
      @RequestMapping(method=RequestMethod.GET)
      public String mainScreen(Principal principal){
  
      return "site-admin";
  
      }
  }
  </code></pre>