Mercurial > hg > orthanc-authorization
diff Plugin/DefaultAuthorizationParser.h @ 149:423531fb1200
SINGLE_RESOURCE_PATTERNS to facilitate api-key support
author | Alain Mazy <am@osimis.io> |
---|---|
date | Thu, 15 Feb 2024 16:30:21 +0100 |
parents | f448e8626f1a |
children | 9be1ee2b8fe1 |
line wrap: on
line diff
--- a/Plugin/DefaultAuthorizationParser.h Thu Feb 15 12:04:28 2024 +0100 +++ b/Plugin/DefaultAuthorizationParser.h Thu Feb 15 16:30:21 2024 +0100 @@ -28,7 +28,7 @@ class DefaultAuthorizationParser : public AuthorizationParserBase { private: - boost::mutex mutex_; + mutable boost::mutex mutex_; boost::regex resourcesPattern_; boost::regex seriesPattern_; boost::regex instancesPattern_; @@ -52,6 +52,8 @@ const std::string& uri, const std::map<std::string, std::string>& getArguments); - virtual bool IsListOfResources(const std::string& uri); + virtual bool IsListOfResources(const std::string& uri) const; + + virtual void GetSingleResourcePatterns(std::vector<boost::regex>& patterns) const; }; }