Adding JWT token auth

This commit is contained in:
Ian Roddis
2025-05-31 10:13:09 -03:00
parent 539dcebbe1
commit ddca9d3b72
7 changed files with 77 additions and 22 deletions

View File

@@ -27,6 +27,7 @@ namespace daggy::daggyd {
~Server();
Server &setSSLCertificates(const fs::path &cert, const fs::path &key);
Server &setJWTSecret(const std::string &secret);
void init(size_t threads = 1);
@@ -69,5 +70,7 @@ namespace daggy::daggyd {
std::mutex runnerGuard_;
std::unordered_map<DAGRunID, std::shared_ptr<DAGRunner>> runners_;
std::string jwtSecret_;
};
} // namespace daggy::daggyd