title: Symfony2, switch to HTTPS after authentication
body: <p>I want to force user to use HTTPS instead of HTTP but only after authentication. The only option I've found is forcing HTTPS on per controller/method basis. Anonymous users should only use HTTP.</p>
  
  <p>How to set force-HTTPS only for authenticated users and force NOT to use HTTPS for unauthenticated users in all controllers in my bundle?</p>
  
  <p>Again - this isn't about disabling HTTPS for authorisation page. </p>
  
  <p>I want to use all the same controllers for authenticated and unauthenticated users but force those logged in to use HTTPS, and those who aren't to use HTTP. Basically add requirement for HTTPS for ALL controllers when the user is authenticated.</p>
  
  <p>This question is Symfony 2 specific. I want to do it using Symfony mechanisms. I know how to detect this thing, but it will break Twig links. Symfony can automatically switch to HTTPS, I just want to know how to do it on per-user role basis, not per controller basis. </p>