added permissions for authentication endpoints

This commit is contained in:
jasquat 2023-08-24 08:37:01 -04:00
parent 487ce87699
commit d58391e21d
2 changed files with 9 additions and 0 deletions

View File

@ -538,6 +538,12 @@ class AuthorizationService:
for permission in ["create", "read", "update", "delete"]:
permissions_to_assign.append(PermissionToAssign(permission=permission, target_uri="/secrets/*"))
permissions_to_assign.append(PermissionToAssign(permission="read", target_uri="/authentication/configuration"))
permissions_to_assign.append(PermissionToAssign(permission="read", target_uri="/authentication_begin/*"))
permissions_to_assign.append(
PermissionToAssign(permission="update", target_uri="/authentication/configuration")
)
return permissions_to_assign
@classmethod

View File

@ -508,6 +508,9 @@ class TestAuthorizationService(BaseTest):
return sorted(
self._expected_support_permissions()
+ [
("/authentication/configuration", "read"),
("/authentication/configuration", "update"),
("/authentication_begin/*", "read"),
("/secrets/*", "create"),
("/secrets/*", "delete"),
("/secrets/*", "read"),