title: Reaching JWT Token in play2 silhouette JWTAuthenticator
body: <p>Play-silhouette-rest activator template gives a good <a href="https://github.com/merle-/silhouette-rest-seed/blob/master/app/controllers/security/rest/RestSignUpController.scala" rel="nofollow">example</a> how to use REST authentication/sign up with HeaderAuthenticator. Getting sign in request it creates user and returns token in both response body and header</p>
  
  <pre><code> val response = Ok(Json.toJson(Token(token = authenticator.id, expiresOn = authenticator.expirationDate)))
   env.authenticatorService.init(authenticator, Future.successful(response))
  </code></pre>
  
  <p>In this example I am getting same tokens in body (being initialized on first line) and in headers (being initialized on second line).</p>
  
  <p>Willing to use JWTAuthenticator, I changed code to use this instead (code is the same, only one difference is dependency injection code) so I expected the same appearance.</p>
  
  <p>But with JWTAuthenticator authenticator.id gives me some another generated ID (based on which real JSON Web Token is generated later) and JSON Web Token is being written only in header, on second code line.</p>
  
  <p>I am willing to return real json web token in reponse body but don't want to read headers after I wrote in them in the same method. </p>
  
  <p>Is there any solution?</p>