Mercurial > hg > orthanc-authorization
comparison Plugin/AuthorizationWebService.h @ 113:43154740ea2e
wip: checking labels
author | Alain Mazy <am@osimis.io> |
---|---|
date | Tue, 05 Sep 2023 12:48:20 +0200 |
parents | 7381a7674b36 |
children | 0eed78c1e177 |
comparison
equal
deleted
inserted
replaced
112:572955904411 | 113:43154740ea2e |
---|---|
40 const AccessedResource& access, | 40 const AccessedResource& access, |
41 const Token* token, | 41 const Token* token, |
42 const std::string& tokenValue) ORTHANC_OVERRIDE; | 42 const std::string& tokenValue) ORTHANC_OVERRIDE; |
43 | 43 |
44 virtual bool GetUserProfileInternal(unsigned int& validity, | 44 virtual bool GetUserProfileInternal(unsigned int& validity, |
45 UserProfile& profile /* out */, | 45 UserProfile& profile /* out */, |
46 const Token* token, | 46 const Token* token, |
47 const std::string& tokenValue) ORTHANC_OVERRIDE; | 47 const std::string& tokenValue) ORTHANC_OVERRIDE; |
48 | 48 |
49 virtual bool HasUserPermissionInternal(unsigned int& validity, | 49 virtual bool HasUserPermissionInternal(unsigned int& validity, |
50 const std::string& permission, | 50 const std::string& permission, |
51 const Token* token, | 51 const UserProfile& profile) ORTHANC_OVERRIDE; |
52 const std::string& tokenValue) ORTHANC_OVERRIDE; | |
53 | 52 |
54 public: | 53 public: |
55 AuthorizationWebService(const std::string& tokenValidationUrl, | 54 AuthorizationWebService(const std::string& tokenValidationUrl, |
56 const std::string& tokenCreationBaseUrl, | 55 const std::string& tokenCreationBaseUrl, |
57 const std::string& userProfileUrl, | 56 const std::string& userProfileUrl, |