Adding JWT token auth
This commit is contained in:
1 parent
539dcebbe1
commit
ddca9d3b72
7 files changed
+77
-22
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user