diff NewTests/Authorization/auth_service.py @ 659:3ac37a99a093

new tests for auth: uploader-a
author Alain Mazy <am@orthanc.team>
date Mon, 24 Jun 2024 18:28:43 +0200
parents c28bd957cb93
children
line wrap: on
line diff
--- a/NewTests/Authorization/auth_service.py	Mon Jun 17 18:25:18 2024 +0200
+++ b/NewTests/Authorization/auth_service.py	Mon Jun 24 18:28:43 2024 +0200
@@ -47,6 +47,13 @@
                 authorized_labels=["label_a"],
                 validity=60
             )
+        elif user_profile_request.token_value == "token-uploader-a":  # this use shall be able to upload anything but view only the labeled studies
+            p = UserProfileResponse(
+                name="uploader-a",
+                permissions=["view", "upload"],
+                authorized_labels=["label_a"],
+                validity=60
+            )
 
     return p