Mercurial > hg > orthanc-authorization
diff Plugin/IAuthorizationService.h @ 113:43154740ea2e
wip: checking labels
author | Alain Mazy <am@osimis.io> |
---|---|
date | Tue, 05 Sep 2023 12:48:20 +0200 |
parents | 572955904411 |
children | 9be1ee2b8fe1 |
line wrap: on
line diff
--- a/Plugin/IAuthorizationService.h Thu Aug 31 16:51:15 2023 +0200 +++ b/Plugin/IAuthorizationService.h Tue Sep 05 12:48:20 2023 +0200 @@ -58,6 +58,11 @@ std::string name; std::set<std::string> permissions; std::set<std::string> authorizedLabels; + + // the source token key/value that identified the user + TokenType tokenType; + std::string tokenKey; + std::string tokenValue; }; virtual ~IAuthorizationService() @@ -84,8 +89,7 @@ virtual bool HasUserPermission(unsigned int& validity /* out */, const std::set<std::string>& anyOfPermissions, - const Token& token, - const std::string& tokenValue) = 0; + const UserProfile& profile) = 0; virtual bool HasAnonymousUserPermission(unsigned int& validity /* out */, const std::set<std::string>& anyOfPermissions) = 0;