|
Leosac
0.8.0
Open Source Access Control
|
Go to the documentation of this file.
22 #include <boost/property_tree/ptree.hpp>
23 #include <unordered_map>
56 bool allow_request(
const std::string &user_pubkey,
const std::string &req);
61 using KeyCommandsMap = std::unordered_map<std::string, std::vector<std::string>>;
71 boost::property_tree::ptree
cfg_;
RemoteControlSecurity(const boost::property_tree::ptree &cfg)
The config tree is the same tree that the RemoteControl object has.
bool allow_request(const std::string &user_pubkey, const std::string &req)
Provide some kind of security framework to the Remote Control service.
KeyCommandsMap permissions_
This is the header file for a generated source file, GitSHA1.cpp.
void process_security_entry(const boost::property_tree::ptree &)
Process one <map> entry.
bool unrestricted_
If everyone has access to everything.
std::unordered_map< std::string, std::vector< std::string > > KeyCommandsMap
Map user public key to a set of command.
boost::property_tree::ptree cfg_
std::unordered_map< std::string, bool > default_permissions_