Mercurial > hg > orthanc-authorization
diff Plugin/CachedAuthorizationService.cpp @ 69:af44dce56328
new 'auth/user-profile' Rest API route
author | Alain Mazy <am@osimis.io> |
---|---|
date | Mon, 20 Feb 2023 11:56:14 +0100 |
parents | 1a13c4fbc9a1 |
children | 30fb3ce960d9 |
line wrap: on
line diff
--- a/Plugin/CachedAuthorizationService.cpp Fri Feb 17 15:05:02 2023 +0100 +++ b/Plugin/CachedAuthorizationService.cpp Mon Feb 20 11:56:14 2023 +0100 @@ -96,4 +96,12 @@ // The cache is not used if no token is available return decorated_->IsGranted(validity, method, access); } + + bool CachedAuthorizationService::GetUserProfile(Json::Value& profile /* out */, + const Token& token, + const std::string& tokenValue) + { + return decorated_->GetUserProfile(profile, token, tokenValue); + } + }