Mercurial > hg > orthanc-authorization
diff Plugin/AuthorizationWebService.h @ 54:317b31e99501
Added 3 new configurations: WebServiceUsername, WebServicePassword, WebServiceIdentifier. WebServiceIdentifier is now included in the payload as the 'identifier' field
author | Alain Mazy <am@osimis.io> |
---|---|
date | Mon, 26 Sep 2022 15:20:39 +0200 |
parents | 914b8113fd46 |
children | 1a13c4fbc9a1 |
line wrap: on
line diff
--- a/Plugin/AuthorizationWebService.h Fri May 13 09:51:18 2022 +0200 +++ b/Plugin/AuthorizationWebService.h Mon Sep 26 15:20:39 2022 +0200 @@ -28,6 +28,7 @@ std::string url_; std::string username_; std::string password_; + std::string identifier_; bool IsGrantedInternal(unsigned int& validity, OrthancPluginHttpMethod method, @@ -44,6 +45,8 @@ void SetCredentials(const std::string& username, const std::string& password); + void SetIdentifier(const std::string& webServiceIdentifier); + virtual bool IsGranted(unsigned int& validity, OrthancPluginHttpMethod method, const AccessedResource& access,