added permissions for authentication endpoints
This commit is contained in:
parent
bf2197c72d
commit
d29069df66
|
@ -538,6 +538,12 @@ class AuthorizationService:
|
||||||
for permission in ["create", "read", "update", "delete"]:
|
for permission in ["create", "read", "update", "delete"]:
|
||||||
permissions_to_assign.append(PermissionToAssign(permission=permission, target_uri="/secrets/*"))
|
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
|
return permissions_to_assign
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|
|
@ -508,6 +508,9 @@ class TestAuthorizationService(BaseTest):
|
||||||
return sorted(
|
return sorted(
|
||||||
self._expected_support_permissions()
|
self._expected_support_permissions()
|
||||||
+ [
|
+ [
|
||||||
|
("/authentication/configuration", "read"),
|
||||||
|
("/authentication/configuration", "update"),
|
||||||
|
("/authentication_begin/*", "read"),
|
||||||
("/secrets/*", "create"),
|
("/secrets/*", "create"),
|
||||||
("/secrets/*", "delete"),
|
("/secrets/*", "delete"),
|
||||||
("/secrets/*", "read"),
|
("/secrets/*", "read"),
|
||||||
|
|
Loading…
Reference in New Issue