feat: support pw in auth header in ade (#921)

This commit is contained in:
cthomas
2025-02-05 14:21:32 -08:00
committed by GitHub
parent 8fbe9043f7
commit 5e2fddce06

View File

@@ -463,7 +463,7 @@ class RESTClient(AbstractClient):
if token:
self.headers = {"accept": "application/json", "Authorization": f"Bearer {token}"}
elif password:
self.headers = {"accept": "application/json", "X-BARE-PASSWORD": f"password {password}"}
self.headers = {"accept": "application/json", "Authorization": f"Bearer {password}"}
else:
self.headers = {"accept": "application/json"}
if headers: