Skip to content

Three admin examples

Jon P Smith edited this page Sep 16, 2021 · 1 revision

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.

  1. 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.
  2. Example3's admin pages. NOTE: You must log in as 'AppAdmin@g1.com' or 'Super@g1.com' to access all the admin features.
  3. 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 differences between the three examples

The table below shows the differences between the three examples:

Roles

Roles In? Notes
List 1, 3, 4
Create 1, 3, 4
Update 1, 3, 4
Delete 1, 3, 4

AuthP's users

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.

Tenants

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.

Additional resources

Articles / Videos

Concepts

Setup

Usage

Admin

SupportCode

Clone this wiki locally