diff Plugin/CachedAuthorizationService.h @ 69:af44dce56328

new 'auth/user-profile' Rest API route
author Alain Mazy <am@osimis.io>
date Mon, 20 Feb 2023 11:56:14 +0100
parents 1a13c4fbc9a1
children 30fb3ce960d9
line wrap: on
line diff
--- a/Plugin/CachedAuthorizationService.h	Fri Feb 17 15:05:02 2023 +0100
+++ b/Plugin/CachedAuthorizationService.h	Mon Feb 20 11:56:14 2023 +0100
@@ -54,5 +54,9 @@
     virtual bool IsGranted(unsigned int& validity,
                            OrthancPluginHttpMethod method,
                            const AccessedResource& access) ORTHANC_OVERRIDE;
-  };
+ 
+    virtual bool GetUserProfile(Json::Value& profile /* out */,
+                                const Token& token,
+                                const std::string& tokenValue);
+ };
 }