-
Notifications
You must be signed in to change notification settings - Fork 162
/
Copy pathExample3AppAuthSetupData.cs
42 lines (37 loc) · 2.04 KB
/
Example3AppAuthSetupData.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Copyright (c) 2021 Jon P Smith, GitHub: JonPSmith, web: http://www.thereformedprogrammer.net/
// Licensed under MIT license. See License.txt in the project root for license information.
using System.Collections.Generic;
using AuthPermissions.SetupCode;
namespace Example3.MvcWebApp.IndividualAccounts.PermissionsCode
{
public static class Example3AppAuthSetupData
{
public const string BulkLoadRolesWithPermissions = @"
SuperAdmin | Super admin - only use for setup|: AccessAll,
App Admin | Overall app Admin |: UserRead, UserSync, UserChange, UserRolesChange, UserChangeTenant, UserRemove, RoleRead, RoleChange, PermissionRead, IncludeFilteredPermissions, TenantList, TenantCreate, TenantUpdate
Tenant Admin | Tenant-level admin |: InvoiceRead, EmployeeRead, EmployeeRevokeActivate
Tenant User | Can access invoices |: InvoiceRead, InvoiceCreate";
public const string BulkSingleTenants = @"
4U Inc.
Pets Ltd.
Big Rocks Inc.";
public static readonly List<DefineUserWithRolesTenant> UsersRolesDefinition = new List<DefineUserWithRolesTenant>
{
new DefineUserWithRolesTenant("[email protected]", null, "SuperAdmin"),
new DefineUserWithRolesTenant("[email protected]", null, "App Admin"),
new DefineUserWithRolesTenant("[email protected]", null, "Tenant User"),
//Company admins.
new DefineUserWithRolesTenant("[email protected]", null,
"Tenant Admin,Tenant User", tenantNameForDataKey: "4U Inc."),
//Company users
new DefineUserWithRolesTenant("[email protected]", null,
"Tenant User", tenantNameForDataKey: "4U Inc."),
new DefineUserWithRolesTenant("[email protected]", null,
"Tenant User", tenantNameForDataKey: "4U Inc."),
new DefineUserWithRolesTenant("[email protected]", null,
"Tenant User", tenantNameForDataKey: "Pets Ltd."),
new DefineUserWithRolesTenant("[email protected]", null,
"Tenant User", tenantNameForDataKey: "Big Rocks Inc."),
};
}
}