comparison 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
comparison
equal deleted inserted replaced
68:1a13c4fbc9a1 69:af44dce56328
94 assert(decorated_.get() != NULL); 94 assert(decorated_.get() != NULL);
95 95
96 // The cache is not used if no token is available 96 // The cache is not used if no token is available
97 return decorated_->IsGranted(validity, method, access); 97 return decorated_->IsGranted(validity, method, access);
98 } 98 }
99
100 bool CachedAuthorizationService::GetUserProfile(Json::Value& profile /* out */,
101 const Token& token,
102 const std::string& tokenValue)
103 {
104 return decorated_->GetUserProfile(profile, token, tokenValue);
105 }
106
99 } 107 }