public ItemController(UserManager <ApplicationUser> userManager, BasicAuthenticationContext db)
 {
     _userManager = userManager;
     _db          = db;
 }
Example #2
0
 private static Task <ClaimsIdentity> AuthenticateBasicCredentials(BasicAuthenticationContext basicAuthenticationContext)
 {
     return(Task.FromResult(new ClaimsIdentity(new[] { new Claim(ClaimTypes.NameIdentifier, "foo"), }, "Basic")));
 }
 public AccountController(UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, BasicAuthenticationContext db)
 {
     _userManager   = userManager;
     _signInManager = signInManager;
     _db            = db;
 }