Add "General.GetRPCCommands" RPC command

This commit is contained in:
badaix 2025-02-04 21:11:32 +01:00
parent 6b94392f2c
commit f264080c77
7 changed files with 106 additions and 20 deletions

View file

@ -71,8 +71,8 @@ public:
/// d'tor
virtual ~AuthInfo() = default;
/// @return if authentication info is available
bool hasAuthInfo() const;
/// @return if user is authenticated
bool isAuthenticated() const;
// ErrorCode isValid(const std::string& command) const;
/// @return the username
const std::string& username() const;
@ -92,8 +92,8 @@ public:
bool hasPermission(const std::string& resource) const;
private:
/// has auth info
bool has_auth_info_;
/// is authenticated
bool is_authenticated_;
/// auth user name
std::string username_;
/// optional token expiration