-
Notifications
You must be signed in to change notification settings - Fork 162
Three admin examples
The AuthP library contains three admin services: one for Roles, one for multi-tenant, and one for AuthP's users. But you as a developer still need to create the various pages / Web APIs to allow an admin features, and some of the pages are bit complex because you are dealing with returning collections.
To help you in building these admin pages the AuthP's repo contains two example admin implementations.
- Example1's admin pages: this provides the basic eight admin features you need. NOTE: You do not need to log in to access the admin services.
- Example3's admin pages. NOTE: You must log in as 'AppAdmin@g1.com' or 'Super@g1.com' to access all the admin features.
- Example4's admin pages. NOTE: You must log in as 'AppAdmin@g1.com' or 'Super@g1.com' to access all the admin features.
NOTE: All these examples use some of the ASP.NET Core classes in the ExamplesCommonCode/CommonAdmin project / folder.
SUMMARY: The Example1's and Example3's admin pages are the easiest to build, while the Example4's admin pages has some useful extra features.
The table below shows the differences between the three examples:
Roles | In? | Notes |
---|---|---|
List | 1, 3, 4 | |
Create | 1, 3, 4 | |
Update | 1, 3, 4 | |
Delete | 1, 3, 4 |
Users | In? | Notes |
---|---|---|
List | 1, 3, 4 | |
Sync | 1, 3, 4 | See Note 1 |
Update | 1, 3, 4 | |
Delete | 1, 3, 4 | |
Sync\Create | 4 only | See Note 2 |
Sync\Update | 4 only | See Note 2 |
Sync\Delete | 4 only | See Note 2 |
NOTE 1: The Example4 version of the "user sync" feature has a "Ignore" button that will mark recommended change to be ignored.
NOTE 2: The Example4 version of the "user sync" feature allows a recommended change to be manually created / updated / deleted. This is especially useful for applications where the users change a lot, e.g. SaaS multi-tenant systems.
In Example3 (single level multi-tenant) and Example 4 (Hierarchical multi-tenant)
NOTE: The other difference is that Example1 is a ASP.NET Core Razor Pages application, while the Example4 application uses ASP.NET Core MVC.
- Intro to multi-tenants (ASP.NET video)
- Articles in date order:
- 0. Improved Roles/Permissions
- 1. Setting up the database
- 2. Admin: adding users and tenants
- 3. Versioning your app
- 4. Hierarchical multi-tenant
- 5. Advanced technique with claims
- 6. Sharding multi-tenant setup
- 7. Three ways to add new users
- 8. The design of the sharding data
- 9. Down for maintenance article
- 10: Three ways to refresh claims
- 11. Features of Multilingual service
- 12. Custom databases - Part1
- Videos (old)
- Authentication explained
- Permissions explained
- Roles explained
- AuthUser explained
- Multi tenant explained
- Sharding explained
- How AuthP handles sharding
- How AuthP handles errors
- Languages & cultures explained
- JWT Token refresh explained
- Setup Permissions
- Setup Authentication
- Startup code
- Setup the custom database feature
- JWT Token configuration
- Multi tenant configuration
- Using Permissions
- Using JWT Tokens
- Creating a multi-tenant app
- Supporting multiple languages
- Unit Test your AuthP app