remove hard coded CACERT path
This commit is contained in:
@@ -8,10 +8,7 @@ from aare.common.logger_config import setup_logger
|
||||
|
||||
logger = setup_logger('aareGUI')
|
||||
|
||||
CACERT = "/sls/x10sa/misc/.cert/10s.crt"
|
||||
|
||||
def auth(base_url: str | None) -> str:
|
||||
print(f"base_url: {base_url}")
|
||||
def auth(base_url: str | None, cert_path: str | None) -> str:
|
||||
curr_user = get_user()
|
||||
if base_url is None:
|
||||
token_data = TokenData(sub=curr_user,
|
||||
@@ -23,7 +20,6 @@ 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,
|
||||
|
||||
Reference in New Issue
Block a user