auth: printing base_url for debugging

This commit is contained in:
appleb_m committed 2026-06-10 11:40:43 +02:00
1 parent 1919c25874
commit 7613fec52c
1 file changed
+2
+2
View File
@@ -11,6 +11,7 @@ logger = setup_logger('aareGUI')
CACERT = "/sls/x10sa/misc/.cert/10s.crt"
def auth(base_url: str | None) -> str:
print(f"base_url: {base_url}")
curr_user = get_user()
if base_url is None:
token_data = TokenData(sub=curr_user,
@@ -22,6 +23,7 @@ def auth(base_url: str | None) -> str:
# Single call: Kerberos SPNEGO through Apache, which proxies to the DAQ server.
# Apache injects X-Remote-User; the DAQ server reads it from the localhost-proxied request.
url = f"{base_url}/token"
# url = f"{base_url}"
try:
token_result = subprocess.run(
['curl', '-s', '--cacert', CACERT,