abs-auth-rbac-core 0.2.4__tar.gz → 0.2.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of abs-auth-rbac-core might be problematic. Click here for more details.
- {abs_auth_rbac_core-0.2.4 → abs_auth_rbac_core-0.2.5}/PKG-INFO +1 -1
- {abs_auth_rbac_core-0.2.4 → abs_auth_rbac_core-0.2.5}/abs_auth_rbac_core/util/permission_constants.py +127 -1
- {abs_auth_rbac_core-0.2.4 → abs_auth_rbac_core-0.2.5}/pyproject.toml +1 -1
- {abs_auth_rbac_core-0.2.4 → abs_auth_rbac_core-0.2.5}/README.md +0 -0
- {abs_auth_rbac_core-0.2.4 → abs_auth_rbac_core-0.2.5}/abs_auth_rbac_core/__init__.py +0 -0
- {abs_auth_rbac_core-0.2.4 → abs_auth_rbac_core-0.2.5}/abs_auth_rbac_core/auth/__init__.py +0 -0
- {abs_auth_rbac_core-0.2.4 → abs_auth_rbac_core-0.2.5}/abs_auth_rbac_core/auth/auth_functions.py +0 -0
- {abs_auth_rbac_core-0.2.4 → abs_auth_rbac_core-0.2.5}/abs_auth_rbac_core/auth/jwt_functions.py +0 -0
- {abs_auth_rbac_core-0.2.4 → abs_auth_rbac_core-0.2.5}/abs_auth_rbac_core/auth/middleware.py +0 -0
- {abs_auth_rbac_core-0.2.4 → abs_auth_rbac_core-0.2.5}/abs_auth_rbac_core/models/__init__.py +0 -0
- {abs_auth_rbac_core-0.2.4 → abs_auth_rbac_core-0.2.5}/abs_auth_rbac_core/models/base_model.py +0 -0
- {abs_auth_rbac_core-0.2.4 → abs_auth_rbac_core-0.2.5}/abs_auth_rbac_core/models/gov_casbin_rule.py +0 -0
- {abs_auth_rbac_core-0.2.4 → abs_auth_rbac_core-0.2.5}/abs_auth_rbac_core/models/permissions.py +0 -0
- {abs_auth_rbac_core-0.2.4 → abs_auth_rbac_core-0.2.5}/abs_auth_rbac_core/models/rbac_model.py +0 -0
- {abs_auth_rbac_core-0.2.4 → abs_auth_rbac_core-0.2.5}/abs_auth_rbac_core/models/role_permission.py +0 -0
- {abs_auth_rbac_core-0.2.4 → abs_auth_rbac_core-0.2.5}/abs_auth_rbac_core/models/roles.py +0 -0
- {abs_auth_rbac_core-0.2.4 → abs_auth_rbac_core-0.2.5}/abs_auth_rbac_core/models/seeder/permission_seeder.py +0 -0
- {abs_auth_rbac_core-0.2.4 → abs_auth_rbac_core-0.2.5}/abs_auth_rbac_core/models/user.py +0 -0
- {abs_auth_rbac_core-0.2.4 → abs_auth_rbac_core-0.2.5}/abs_auth_rbac_core/models/user_permission.py +0 -0
- {abs_auth_rbac_core-0.2.4 → abs_auth_rbac_core-0.2.5}/abs_auth_rbac_core/models/user_role.py +0 -0
- {abs_auth_rbac_core-0.2.4 → abs_auth_rbac_core-0.2.5}/abs_auth_rbac_core/rbac/__init__.py +0 -0
- {abs_auth_rbac_core-0.2.4 → abs_auth_rbac_core-0.2.5}/abs_auth_rbac_core/rbac/decorator.py +0 -0
- {abs_auth_rbac_core-0.2.4 → abs_auth_rbac_core-0.2.5}/abs_auth_rbac_core/rbac/policy.conf +0 -0
- {abs_auth_rbac_core-0.2.4 → abs_auth_rbac_core-0.2.5}/abs_auth_rbac_core/rbac/service.py +0 -0
- {abs_auth_rbac_core-0.2.4 → abs_auth_rbac_core-0.2.5}/abs_auth_rbac_core/schema/__init__.py +0 -0
- {abs_auth_rbac_core-0.2.4 → abs_auth_rbac_core-0.2.5}/abs_auth_rbac_core/schema/permission.py +0 -0
- {abs_auth_rbac_core-0.2.4 → abs_auth_rbac_core-0.2.5}/abs_auth_rbac_core/util/__init__.py +0 -0
|
@@ -158,6 +158,7 @@ class PermissionAction(str, Enum):
|
|
|
158
158
|
|
|
159
159
|
|
|
160
160
|
class PermissionModule(str, Enum):
|
|
161
|
+
AUTOMATION_BUILDER = "AUTOMATION_BUILDER"
|
|
161
162
|
EDS_EPAR = "EDS_EPAR"
|
|
162
163
|
PERMIT_PROCESSING = "PERMIT_PROCESSING"
|
|
163
164
|
EMAIL_PROCESS = "EMAIL_PROCESS"
|
|
@@ -256,6 +257,11 @@ class PermissionResource(str, Enum):
|
|
|
256
257
|
ASL = "ASL"
|
|
257
258
|
DATA_IMPORT = "DATA_IMPORT"
|
|
258
259
|
INTEGRATION = "INTEGRATION"
|
|
260
|
+
AUTOMATION = "AUTOMATION"
|
|
261
|
+
AUTOMATION_TRIGGER = "AUTOMATION_TRIGGER"
|
|
262
|
+
AUTOMATION_ACTION = "AUTOMATION_ACTION"
|
|
263
|
+
AUTOMATION_INPUT = "AUTOMATION_INPUT"
|
|
264
|
+
AUTOMATION_HISTORY = "AUTOMATION_HISTORY"
|
|
259
265
|
|
|
260
266
|
|
|
261
267
|
class PermissionData(NamedTuple):
|
|
@@ -267,7 +273,127 @@ class PermissionData(NamedTuple):
|
|
|
267
273
|
|
|
268
274
|
|
|
269
275
|
class PermissionConstants:
|
|
270
|
-
|
|
276
|
+
# Automation Builder Permissions
|
|
277
|
+
AUTOMATION_HISTORY_VIEW = PermissionData(
|
|
278
|
+
name="View Automation History",
|
|
279
|
+
description="Permission to view automation history",
|
|
280
|
+
module=PermissionModule.AUTOMATION_BUILDER,
|
|
281
|
+
resource=PermissionResource.AUTOMATION_HISTORY,
|
|
282
|
+
action=PermissionAction.VIEW,
|
|
283
|
+
)
|
|
284
|
+
AUTOMATION_CREATE = PermissionData(
|
|
285
|
+
name="Create Automation",
|
|
286
|
+
description="Permission to create automation",
|
|
287
|
+
module=PermissionModule.AUTOMATION_BUILDER,
|
|
288
|
+
resource=PermissionResource.AUTOMATION,
|
|
289
|
+
action=PermissionAction.CREATE,
|
|
290
|
+
)
|
|
291
|
+
AUTOMATION_VIEW = PermissionData(
|
|
292
|
+
name="View Automation",
|
|
293
|
+
description="Permission to view automation",
|
|
294
|
+
module=PermissionModule.AUTOMATION_BUILDER,
|
|
295
|
+
resource=PermissionResource.AUTOMATION,
|
|
296
|
+
action=PermissionAction.VIEW,
|
|
297
|
+
)
|
|
298
|
+
AUTOMATION_EDIT = PermissionData(
|
|
299
|
+
name="Edit Automation",
|
|
300
|
+
description="Permission to edit automation",
|
|
301
|
+
module=PermissionModule.AUTOMATION_BUILDER,
|
|
302
|
+
resource=PermissionResource.AUTOMATION,
|
|
303
|
+
action=PermissionAction.EDIT,
|
|
304
|
+
)
|
|
305
|
+
AUTOMATION_DELETE = PermissionData(
|
|
306
|
+
name="Delete Automation",
|
|
307
|
+
description="Permission to delete automation",
|
|
308
|
+
module=PermissionModule.AUTOMATION_BUILDER,
|
|
309
|
+
resource=PermissionResource.AUTOMATION,
|
|
310
|
+
action=PermissionAction.DELETE,
|
|
311
|
+
)
|
|
312
|
+
AUTOMATION_INPUT_CREATE = PermissionData(
|
|
313
|
+
name="Create Automation Input",
|
|
314
|
+
description="Permission to create automation input",
|
|
315
|
+
module=PermissionModule.AUTOMATION_BUILDER,
|
|
316
|
+
resource=PermissionResource.AUTOMATION_INPUT,
|
|
317
|
+
action=PermissionAction.CREATE,
|
|
318
|
+
)
|
|
319
|
+
AUTOMATION_INPUT_VIEW = PermissionData(
|
|
320
|
+
name="View Automation Input",
|
|
321
|
+
description="Permission to view automation input",
|
|
322
|
+
module=PermissionModule.AUTOMATION_BUILDER,
|
|
323
|
+
resource=PermissionResource.AUTOMATION_INPUT,
|
|
324
|
+
action=PermissionAction.VIEW,
|
|
325
|
+
)
|
|
326
|
+
AUTOMATION_INPUT_EDIT = PermissionData(
|
|
327
|
+
name="Edit Automation Input",
|
|
328
|
+
description="Permission to edit automation input",
|
|
329
|
+
module=PermissionModule.AUTOMATION_BUILDER,
|
|
330
|
+
resource=PermissionResource.AUTOMATION_INPUT,
|
|
331
|
+
action=PermissionAction.EDIT,
|
|
332
|
+
)
|
|
333
|
+
AUTOMATION_INPUT_DELETE = PermissionData(
|
|
334
|
+
name="Delete Automation Input",
|
|
335
|
+
description="Permission to delete automation input",
|
|
336
|
+
module=PermissionModule.AUTOMATION_BUILDER,
|
|
337
|
+
resource=PermissionResource.AUTOMATION_INPUT,
|
|
338
|
+
action=PermissionAction.DELETE,
|
|
339
|
+
)
|
|
340
|
+
AUTOMATION_ACTION_CREATE = PermissionData(
|
|
341
|
+
name="Create Automation Action",
|
|
342
|
+
description="Permission to create automation action",
|
|
343
|
+
module=PermissionModule.AUTOMATION_BUILDER,
|
|
344
|
+
resource=PermissionResource.AUTOMATION_ACTION,
|
|
345
|
+
action=PermissionAction.CREATE,
|
|
346
|
+
)
|
|
347
|
+
AUTOMATION_ACTION_VIEW = PermissionData(
|
|
348
|
+
name="View Automation Action",
|
|
349
|
+
description="Permission to view automation action",
|
|
350
|
+
module=PermissionModule.AUTOMATION_BUILDER,
|
|
351
|
+
resource=PermissionResource.AUTOMATION_ACTION,
|
|
352
|
+
action=PermissionAction.VIEW,
|
|
353
|
+
)
|
|
354
|
+
AUTOMATION_ACTION_EDIT = PermissionData(
|
|
355
|
+
name="Edit Automation Action",
|
|
356
|
+
description="Permission to edit automation action",
|
|
357
|
+
module=PermissionModule.AUTOMATION_BUILDER,
|
|
358
|
+
resource=PermissionResource.AUTOMATION_ACTION,
|
|
359
|
+
action=PermissionAction.EDIT,
|
|
360
|
+
)
|
|
361
|
+
AUTOMATION_ACTION_DELETE = PermissionData(
|
|
362
|
+
name="Delete Automation Action",
|
|
363
|
+
description="Permission to delete automation action",
|
|
364
|
+
module=PermissionModule.AUTOMATION_BUILDER,
|
|
365
|
+
resource=PermissionResource.AUTOMATION_ACTION,
|
|
366
|
+
action=PermissionAction.DELETE,
|
|
367
|
+
)
|
|
368
|
+
AUTOMATION_TRIGGER_CREATE = PermissionData(
|
|
369
|
+
name="Create Automation Trigger",
|
|
370
|
+
description="Permission to create automation trigger",
|
|
371
|
+
module=PermissionModule.AUTOMATION_BUILDER,
|
|
372
|
+
resource=PermissionResource.AUTOMATION_TRIGGER,
|
|
373
|
+
action=PermissionAction.CREATE,
|
|
374
|
+
)
|
|
375
|
+
AUTOMATION_TRIGGER_VIEW = PermissionData(
|
|
376
|
+
name="View Automation Trigger",
|
|
377
|
+
description="Permission to view automation trigger",
|
|
378
|
+
module=PermissionModule.AUTOMATION_BUILDER,
|
|
379
|
+
resource=PermissionResource.AUTOMATION_TRIGGER,
|
|
380
|
+
action=PermissionAction.VIEW,
|
|
381
|
+
)
|
|
382
|
+
AUTOMATION_TRIGGER_EDIT = PermissionData(
|
|
383
|
+
name="Edit Automation Trigger",
|
|
384
|
+
description="Permission to edit automation trigger",
|
|
385
|
+
module=PermissionModule.AUTOMATION_BUILDER,
|
|
386
|
+
resource=PermissionResource.AUTOMATION_TRIGGER,
|
|
387
|
+
action=PermissionAction.EDIT,
|
|
388
|
+
)
|
|
389
|
+
AUTOMATION_TRIGGER_DELETE = PermissionData(
|
|
390
|
+
name="Delete Automation Trigger",
|
|
391
|
+
description="Permission to delete automation trigger",
|
|
392
|
+
module=PermissionModule.AUTOMATION_BUILDER,
|
|
393
|
+
resource=PermissionResource.AUTOMATION_TRIGGER,
|
|
394
|
+
action=PermissionAction.DELETE,
|
|
395
|
+
)
|
|
396
|
+
|
|
271
397
|
# EDS Data Import Permissions
|
|
272
398
|
EDS_DATA_IMPORT_CONNECT_ACCOUNT = PermissionData(
|
|
273
399
|
name="Connect Account",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{abs_auth_rbac_core-0.2.4 → abs_auth_rbac_core-0.2.5}/abs_auth_rbac_core/auth/auth_functions.py
RENAMED
|
File without changes
|
{abs_auth_rbac_core-0.2.4 → abs_auth_rbac_core-0.2.5}/abs_auth_rbac_core/auth/jwt_functions.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{abs_auth_rbac_core-0.2.4 → abs_auth_rbac_core-0.2.5}/abs_auth_rbac_core/models/base_model.py
RENAMED
|
File without changes
|
{abs_auth_rbac_core-0.2.4 → abs_auth_rbac_core-0.2.5}/abs_auth_rbac_core/models/gov_casbin_rule.py
RENAMED
|
File without changes
|
{abs_auth_rbac_core-0.2.4 → abs_auth_rbac_core-0.2.5}/abs_auth_rbac_core/models/permissions.py
RENAMED
|
File without changes
|
{abs_auth_rbac_core-0.2.4 → abs_auth_rbac_core-0.2.5}/abs_auth_rbac_core/models/rbac_model.py
RENAMED
|
File without changes
|
{abs_auth_rbac_core-0.2.4 → abs_auth_rbac_core-0.2.5}/abs_auth_rbac_core/models/role_permission.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{abs_auth_rbac_core-0.2.4 → abs_auth_rbac_core-0.2.5}/abs_auth_rbac_core/models/user_permission.py
RENAMED
|
File without changes
|
{abs_auth_rbac_core-0.2.4 → abs_auth_rbac_core-0.2.5}/abs_auth_rbac_core/models/user_role.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{abs_auth_rbac_core-0.2.4 → abs_auth_rbac_core-0.2.5}/abs_auth_rbac_core/schema/permission.py
RENAMED
|
File without changes
|
|
File without changes
|