27 #include <zmqpp/zmqpp.hpp> 36 class AuthFileInstance;
85 const std::list<std::string> &auth_sources_names,
86 const std::string &auth_target_name,
98 void handle_bus_msg();
103 zmqpp::socket &bus_sub();
108 const std::string &auth_file_name()
const;
114 std::string auth_file_content()
const;
123 bool handle_kernel_message(
const zmqpp::message &msg);
128 void reload_auth_config();
140 AuthResult handle_auth(zmqpp::message *msg) noexcept;
std::string file_path_
Path to the auth data file.
FileAuthSourceMapperPtr mapper_
Authentication config file parser.
std::string target_name_
Name of the target we auth against.
zmqpp::socket bus_push_
Socket to write to the bus.
This is the header file for a generated source file, GitSHA1.cpp.
An instance of an authentication handler that use files to check whether or not access is granted or ...
std::shared_ptr< FileAuthSourceMapper > FileAuthSourceMapperPtr
AuthResult(bool s, ::Leosac::Auth::IAccessProfilePtr p, ::Leosac::Auth::UserPtr u)
std::shared_ptr< IAccessProfile > IAccessProfilePtr
bool success
Wether access shall be granted, or not.
std::shared_ptr< User > UserPtr
std::shared_ptr< AuthFileInstance > AuthFileInstancePtr
::Leosac::Auth::UserPtr user
A user object representing the user who made the authentication attempt.
::Leosac::Auth::IAccessProfilePtr profile
Profile used to grant or deny access.
std::mutex mutex_
A mutex used only internally.
std::string name_
Name of this auth context instance.
std::shared_ptr< CoreUtils > CoreUtilsPtr
zmqpp::socket bus_sub_
Socket to read from the bus.