title: How can I populate a UserAuth from values in Redis?
body: <p>This is my custom user authentication setup in my <code>global.asax</code> file, but I am currently providing the users manually in the <code>Configure</code> method; Is it possible to take values from a Redis server?</p>
  
  <p>For example if user exists and the password is okay, can fill with these details automatically?</p>
  
  <pre class="lang-cs prettyprint-override"><code>Plugins.Add(new AuthFeature(()=&gt; 
      new AuthUserSession(), 
      new IAuthProvider[]{ new BasicAuthProvider() }
  ));
  
  container.Register&lt;ICacheClient&gt;(new MemoryCacheClient());
  var userRepo = new InMemoryAuthRepository();
  container.Register&lt;IUserAuthRepository&gt;(userRepo);
  
  string hash, salt;
  new SaltedHash().GetHashAndSaltString("password", out hash, out salt);
  
  userRepo.CreateUserAuth(new UserAuth
  {
      Id = 1,
      DisplayName = "Haluk",
      Email = "hal",
      UserName = "haluk",
      FirstName = "haluk",
      LastName = "yılmaz",
      PasswordHash = hash,
      Salt = salt
  }, "password");
  </code></pre>