Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion scripts/node_interoperability.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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(),
Expand All @@ -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,),
)
)
Expand Down