Skip to content

Commit 1fd4443

Browse files
committed
deploy/run env var
1 parent 090faf7 commit 1fd4443

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/agentex/lib/sdk/fastacp/base/base_acp_server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,11 +344,11 @@ def run(self, host: str = "0.0.0.0", port: int = 8000, **kwargs):
344344
uvicorn.run(self, host=host, port=port, **kwargs)
345345

346346
def _get_auth_principal(self, env_vars: EnvironmentVariables):
347-
if not env_vars.BASE64_AUTH_PRINCIPAL:
347+
if not env_vars.AUTH_PRINCIPAL_B64:
348348
return None
349349

350350
try:
351-
decoded_str = base64.b64decode(env_vars.BASE64_AUTH_PRINCIPAL).decode('utf-8')
351+
decoded_str = base64.b64decode(env_vars.AUTH_PRINCIPAL_B64).decode('utf-8')
352352
return json.loads(decoded_str)
353353
except Exception:
354354
return None

0 commit comments

Comments
 (0)