Mercurial > hg > orthanc-authorization
comparison Plugin/CachedAuthorizationService.h @ 73:512247750f0a
new ValidityDuration arg in create token API
author | Alain Mazy <am@osimis.io> |
---|---|
date | Fri, 03 Mar 2023 10:41:27 +0100 |
parents | e381ba725669 |
children | aa73b10c2db9 |
comparison
equal
deleted
inserted
replaced
72:e381ba725669 | 73:512247750f0a |
---|---|
83 | 83 |
84 bool CreateToken(IAuthorizationService::CreatedToken& response, | 84 bool CreateToken(IAuthorizationService::CreatedToken& response, |
85 const std::string& tokenType, | 85 const std::string& tokenType, |
86 const std::string& id, | 86 const std::string& id, |
87 const std::vector<IAuthorizationService::OrthancResource>& resources, | 87 const std::vector<IAuthorizationService::OrthancResource>& resources, |
88 const std::string& expirationDateString) | 88 const std::string& expirationDateString, |
89 const uint64_t& validityDuration) | |
89 { | 90 { |
90 return decorated_->CreateToken(response, | 91 return decorated_->CreateToken(response, |
91 tokenType, | 92 tokenType, |
92 id, | 93 id, |
93 resources, | 94 resources, |
94 expirationDateString); | 95 expirationDateString, |
96 validityDuration); | |
95 } | 97 } |
96 | 98 |
97 }; | 99 }; |
98 } | 100 } |