Exemplo n.º 1
0
 public ItemController(UserManager <ApplicationUser> userManager, BasicAuthenticationContext db)
 {
     _userManager = userManager;
     _db          = db;
 }
Exemplo n.º 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;
 }