From 3f2c19ae51d1e204104da75fe6624bed35841b0b Mon Sep 17 00:00:00 2001 From: Nas Kavian Date: Thu, 3 Sep 2026 22:13:22 -0700 Subject: [PATCH] test: accept an external Service DID in the Platform fixture --- scripts/node_interoperability.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/node_interoperability.py b/scripts/node_interoperability.py index 853fd15..b1296a6 100755 --- a/scripts/node_interoperability.py +++ b/scripts/node_interoperability.py @@ -5,6 +5,7 @@ import asyncio import base64 import json +import os from collections.abc import Mapping from datetime import timedelta from typing import Any, cast @@ -228,6 +229,7 @@ async def issue(request: GrantRequest, context: GrantContext) -> ApiKeyGrantResp def _create_platform(self, listen: str) -> Platform: encoded_host = listen.replace(":", "%3A") + platform_service_did = os.environ.get("AEP_INTEROP_SERVICE_DID") or self._service_did return Platform( PlatformOptions( authorizer=InteropAuthorizer(), @@ -244,7 +246,7 @@ def _create_platform(self, listen: str) -> Platform: sign_endpoint="/platform/agent-identities/{agent_identity_id}/sign", ), key_store=EphemeralKeyStore(), - service_did_resolver=InteropServiceDidResolver(self._service_did), + service_did_resolver=InteropServiceDidResolver(platform_service_did), signing_algorithms=(SigningAlgorithm.ES256,), ) )