title: Standard way to implement login or signup in Spring
body: <p>I have to implement a login authentication &amp; user registration feature for my product. </p>
  
  <p>What is the standard and effective way of doing this using spring which would provide standard security (meaning nothing super fancy, but nothing easy to get around as well)? </p>
  
  <p>As this has been done so many times there has to be a standard way to achieve this ?</p>
  
  <p>The implementation should include :</p>
  
  <ol>
  <li>user registration form after registering through g+ or fb etc </li>
  <li>login form</li>
  <li>storing user profiles, passwords, preferences in some backend
  db or system</li>
  <li>role management : different roles like admin would have
  access to all etc</li>
  </ol>
  
  <p>Standard : that which can put in production.</p>
  
  <p>I found too many things scattered all around the net and although this seems like a broad topic its difficult to get started with especially when this going straight into production and not as a hobby project. The tutorials are always good to get started however are a starting point only. I want to know whats the best route or path that can be used for a product in production.</p>