Adding JWT token auth
This commit is contained in:
@@ -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