@@ -6,14 +6,10 @@ type ArrayOfValueOrArray<T> = Array<ValueOrArray<T>>;
66type OriginType = string | boolean | RegExp ;
77type ValueOrArray < T > = T | ArrayOfValueOrArray < T > ;
88
9- type GroupRoleMapping = Record < string , readonly AppRoles [ ] > ;
109type AzureRoleMapping = Record < string , readonly AppRoles [ ] > ;
11- type UserRoleMapping = Record < string , readonly AppRoles [ ] > ;
1210
1311export type ConfigType = {
14- GroupRoleMapping : GroupRoleMapping ;
1512 AzureRoleMapping : AzureRoleMapping ;
16- UserRoleMapping : UserRoleMapping ;
1713 ValidCorsOrigins : ValueOrArray < OriginType > | OriginFunction ;
1814 AadValidClientId : string ;
1915} ;
@@ -60,18 +56,6 @@ const genericConfig: GenericConfigType = {
6056
6157const environmentConfig : EnvironmentConfigType = {
6258 dev : {
63- GroupRoleMapping : {
64- [ infraChairsGroupId ] : allAppRoles , // Infra Chairs
65- "940e4f9e-6891-4e28-9e29-148798495cdb" : allAppRoles , // ACM Infra Team
66- "f8dfc4cf-456b-4da3-9053-f7fdeda5d5d6" : allAppRoles , // Infra Leads
67- "0" : allAppRoles , // Dummy Group for development only
68- "1" : [ ] , // Dummy Group for development only
69- "scanner-only" : [ AppRoles . TICKETS_SCANNER ] ,
70- } ,
71- UserRoleMapping : {
72- "[email protected] " :
[ AppRoles . TICKETS_SCANNER ] , 73- "kLkvWTYwNnJfBkIK7mBi4niXXHYNR7ygbV8utlvFxjw" : allAppRoles
74- } ,
7559 AzureRoleMapping : { AutonomousWriters : [ AppRoles . EVENTS_MANAGER ] } ,
7660 ValidCorsOrigins : [
7761 "http://localhost:3000" ,
@@ -84,27 +68,27 @@ const environmentConfig: EnvironmentConfigType = {
8468 AadValidClientId : "39c28870-94e4-47ee-b4fb-affe0bf96c9f" ,
8569 } ,
8670 prod : {
87- GroupRoleMapping : {
88- [ infraChairsGroupId ] : allAppRoles , // Infra Chairs
89- [ officersGroupId ] : allAppRoles , // Officers
90- [ execCouncilGroupId ] : [ AppRoles . EVENTS_MANAGER , AppRoles . IAM_INVITE_ONLY ] , // Exec
91- } ,
92- UserRoleMapping : {
93- 94- "[email protected] " :
[ AppRoles . TICKETS_SCANNER ] , 95- "[email protected] " :
[ AppRoles . TICKETS_SCANNER ] , 96- "[email protected] " :
[ AppRoles . TICKETS_SCANNER ] , 97- "[email protected] " :
[ AppRoles . TICKETS_SCANNER ] , 98- 99- AppRoles . TICKETS_SCANNER ,
100- AppRoles . TICKETS_MANAGER ,
101- ] ,
102- 103- AppRoles . TICKETS_SCANNER ,
104- AppRoles . TICKETS_MANAGER ,
105- ] ,
106- "[email protected] " :
[ AppRoles . TICKETS_MANAGER , AppRoles . TICKETS_SCANNER ] 107- } ,
71+ // GroupRoleMapping: {
72+ // [infraChairsGroupId]: allAppRoles, // Infra Chairs
73+ // [officersGroupId]: allAppRoles, // Officers
74+ // [execCouncilGroupId]: [AppRoles.EVENTS_MANAGER, AppRoles.IAM_INVITE_ONLY], // Exec
75+ // },
76+ // UserRoleMapping: {
77+ // "[email protected] ": allAppRoles, 78+ // "[email protected] ": [AppRoles.TICKETS_SCANNER], 79+ // "[email protected] ": [AppRoles.TICKETS_SCANNER], 80+ // "[email protected] ": [AppRoles.TICKETS_SCANNER], 81+ // "[email protected] ": [AppRoles.TICKETS_SCANNER], 82+ 83+ // AppRoles.TICKETS_SCANNER,
84+ // AppRoles.TICKETS_MANAGER,
85+ // ],
86+ 87+ // AppRoles.TICKETS_SCANNER,
88+ // AppRoles.TICKETS_MANAGER,
89+ // ],
90+ // "[email protected] ": [AppRoles.TICKETS_MANAGER, AppRoles.TICKETS_SCANNER] 91+ // },
10892 AzureRoleMapping : { AutonomousWriters : [ AppRoles . EVENTS_MANAGER ] } ,
10993 ValidCorsOrigins : [
11094 "https://acm.illinois.edu" ,
0 commit comments