diff --git a/aries_cloudagent/protocols/out_of_band/v1_0/manager.py b/aries_cloudagent/protocols/out_of_band/v1_0/manager.py index 8ea6954c7e..d8c015fa6a 100644 --- a/aries_cloudagent/protocols/out_of_band/v1_0/manager.py +++ b/aries_cloudagent/protocols/out_of_band/v1_0/manager.py @@ -126,6 +126,11 @@ def __init__( ) if create_unique_did and not use_did_method: + LOGGER.error( + "create_unique_did: `%s`, use_did_method: `%s`", + create_unique_did, + use_did_method, + ) raise OutOfBandManagerError( "create_unique_did can only be used with use_did_method" ) diff --git a/aries_cloudagent/protocols/out_of_band/v1_0/routes.py b/aries_cloudagent/protocols/out_of_band/v1_0/routes.py index 2ec671fec5..56bb8d6eb7 100644 --- a/aries_cloudagent/protocols/out_of_band/v1_0/routes.py +++ b/aries_cloudagent/protocols/out_of_band/v1_0/routes.py @@ -251,11 +251,6 @@ async def invitation_create(request: web.BaseRequest): auto_accept = json.loads(request.query.get("auto_accept", "null")) create_unique_did = json.loads(request.query.get("create_unique_did", "false")) - if create_unique_did and use_public_did: - raise web.HTTPBadRequest( - reason="create_unique_did cannot be used with use_public_did" - ) - profile = context.profile oob_mgr = OutOfBandManager(profile)