-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
4 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
using ServiceStack; | ||
using ServiceStack.Admin; | ||
using ServiceStack.Web; | ||
using ServiceStack.Auth; | ||
using ServiceStack.Configuration; | ||
|
@@ -41,6 +42,9 @@ public void Configure(IWebHostBuilder builder) => builder | |
var authRepo = appHost.Resolve<IAuthRepository>(); | ||
authRepo.InitSchema(); | ||
CreateUser(authRepo, "[email protected]", "Admin User", "p@55wOrd", roles:new[]{ RoleNames.Admin }); | ||
// Admin Users UI at /admin-ui/users | ||
appHost.Plugins.Add(new AdminUsersFeature()); | ||
}, afterConfigure: appHost => | ||
appHost.AssertPlugin<AuthFeature>().AuthEvents.Add(new AppUserAuthEvents())); | ||
|
||
|