added permissions for authentication endpoints
This commit is contained in:
parent
487ce87699
commit
d58391e21d
|
@ -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
|
||||
|
|
|
@ -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"),
|
||||
|
|
Loading…
Reference in New Issue