diff options
Diffstat (limited to 'kvmd/plugins/auth/http.py')
-rw-r--r-- | kvmd/plugins/auth/http.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kvmd/plugins/auth/http.py b/kvmd/plugins/auth/http.py index 69548516..a79e327d 100644 --- a/kvmd/plugins/auth/http.py +++ b/kvmd/plugins/auth/http.py @@ -46,6 +46,7 @@ class Plugin(BaseAuthService): self, url: str, verify: bool, + secret: str, user: str, passwd: str, timeout: float, @@ -53,6 +54,7 @@ class Plugin(BaseAuthService): self.__url = url self.__verify = verify + self.__secret = secret self.__user = user self.__passwd = passwd self.__timeout = timeout @@ -64,6 +66,7 @@ class Plugin(BaseAuthService): return { "url": Option("http://localhost/auth"), "verify": Option(True, type=valid_bool), + "secret": Option(""), "user": Option(""), "passwd": Option(""), "timeout": Option(5.0, type=valid_float_f01), @@ -79,6 +82,7 @@ class Plugin(BaseAuthService): json={ "user": user, "passwd": passwd, + "secret": self.__secret, }, headers={ "User-Agent": f"KVMD/{__version__}", |