Mercurial > hg > orthanc-authorization
diff Plugin/IAuthorizationParser.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 | 0eed78c1e177 |
children | 9be1ee2b8fe1 |
line wrap: on
line diff
--- a/Plugin/IAuthorizationParser.h Thu Feb 15 12:04:28 2024 +0100 +++ b/Plugin/IAuthorizationParser.h Thu Feb 15 16:30:21 2024 +0100 @@ -21,8 +21,10 @@ #include "AccessedResource.h" #include <boost/noncopyable.hpp> +#include <boost/regex.hpp> #include <list> #include <map> +#include <vector> namespace OrthancPlugins { @@ -43,6 +45,8 @@ const std::string& uri, const std::map<std::string, std::string>& getArguments) = 0; - virtual bool IsListOfResources(const std::string& uri) = 0; + virtual bool IsListOfResources(const std::string& uri) const = 0; + + virtual void GetSingleResourcePatterns(std::vector<boost::regex>& patterns) const = 0; }; }