diff --git a/demo/httpsig.py b/demo/httpsig.py index 5e3b22c..65e7a29 100644 --- a/demo/httpsig.py +++ b/demo/httpsig.py @@ -15,7 +15,7 @@ from datetime import datetime from loguru import logger from dataclasses import dataclass -from demo.config import ID +from demo.config import ID, KEY_PATH @@ -165,3 +165,8 @@ class HTTPXSigAuth(httpx.Auth): logger.debug(f"signed request {sig_value=}") request.headers["signature"] = sig_value yield request + + +k = KEY_PATH.read_text() +k = RSA.importKey(k) +auth = HTTPXSigAuth(k)