title: Retrieve bearer token in ASP.NET WebAPI
body: <p>I have a Web API with authentication enabled (bearer token). This is called by a client application and I want to protect it from anonymous usage so I would like to create a single user and create a bearer token for it.</p>
  <p>I can create the token by calling the <em>register</em> and <em>token</em> methods, but I would like to do this from code.</p>
  <ol>
  <li><p>As far as I know, the bearer token is not stored in the database. Can it be retrieved somehow using the ASP.NET Identity API?</p>
  </li>
  <li><p>I would also like to create this user from code and save the token somewhere because I need to deploy the database to multiple servers.</p>
  </li>
  </ol>