title: :REST spring security - Manually authenticating a new user and getting access token
body: <p>I am writing a RESTful webservice on grails, using <a href="http://grails.org/plugin/spring-security-rest" rel="noreferrer">rest spring security api</a>. All good... now I want to login a user on registration, there is a registration action, and up on registration completion, i would like to login that user. I found:</p>
  
  <pre><code>springSecurityService.reauthenticate(username) method 
  </code></pre>
  
  <p>but that only login the user, but doesnt create access token in authentication_token table.</p>
  
  <p>Is there other possible way to login and get the access token for that user?</p>