private static IAuthenticator CreateAuthenticator() { var accountService = new SimpleAccountService(); accountService.Add("admin", "admin", new[] { "Admin", "User" }); accountService.Add("user", "user", new[] { "User" }); var basicAuth = new BasicAuthentication(accountService, "localhost"); return basicAuth; }
private static IAuthenticator CreateAuthenticator() { var accountService = new SimpleAccountService(); accountService.Add("admin", "admin", new[] { "Admin", "User" }); accountService.Add("user", "user", new[] { "User" }); var basicAuth = new BasicAuthentication(accountService, "localhost"); return(basicAuth); }