We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71e4e56 commit aae6d83Copy full SHA for aae6d83
2 files changed
aries_cloudagent/wallet/routes.py
@@ -377,7 +377,7 @@ async def wallet_create_did(request: web.BaseRequest):
377
)
378
379
380
- did = body.get("did")
+ did = body.get("options", {}).get("did")
381
if method.holder_defined_did() == HolderDefinedDid.NO and did:
382
raise web.HTTPForbidden(
383
reason=(
aries_cloudagent/wallet/tests/test_routes.py
@@ -167,8 +167,10 @@ async def test_create_did_method_doesnt_support_user_defined_did(self):
167
self.request.json = async_mock.AsyncMock(
168
return_value={
169
"method": "custom",
170
- "did": "did:custom:aCustomUserDefinedDID",
171
- "options": {"key_type": ED25519.key_type},
+ "options": {
+ "key_type": ED25519.key_type,
172
+ "did": "did:custom:aCustomUserDefinedDID",
173
+ },
174
}
175
176
0 commit comments