Skip to content

Commit

Permalink
Remove did:tdw web interface
Browse files Browse the repository at this point in the history
Signed-off-by: Jamie Hale <[email protected]>
  • Loading branch information
jamshale committed Sep 24, 2024
1 parent bf8cd24 commit 671558e
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 244 deletions.
3 changes: 0 additions & 3 deletions aries_cloudagent/config/default_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,6 @@ async def load_plugins(self, context: InjectionContext):
plugin_registry.register_plugin("aries_cloudagent.wallet")
plugin_registry.register_plugin("aries_cloudagent.wallet.keys")

# Did management plugins
plugin_registry.register_plugin("aries_cloudagent.did.tdw")

anoncreds_plugins = [
"aries_cloudagent.anoncreds",
"aries_cloudagent.anoncreds.default.did_indy",
Expand Down
30 changes: 0 additions & 30 deletions aries_cloudagent/did/manager.py

This file was deleted.

Empty file.
84 changes: 0 additions & 84 deletions aries_cloudagent/did/tdw/routes.py

This file was deleted.

36 changes: 0 additions & 36 deletions aries_cloudagent/did/tdw/tdw_manager.py

This file was deleted.

66 changes: 0 additions & 66 deletions aries_cloudagent/did/tdw/tests/test_routes.py

This file was deleted.

23 changes: 0 additions & 23 deletions aries_cloudagent/did/tdw/tests/test_tdw_manager.py

This file was deleted.

8 changes: 6 additions & 2 deletions aries_cloudagent/resolver/routes.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
"""Resolve did document admin routes."""

import re

from aiohttp import web
from aiohttp_apispec import docs, match_info_schema, response_schema
from marshmallow import fields, validate
from pydid.common import DID_PATTERN

from ..admin.decorators.auth import tenant_authentication
from ..admin.request_context import AdminRequestContext
Expand All @@ -23,7 +24,10 @@ class W3cDID(validate.Regexp):
"""Validate value against w3c DID."""

EXAMPLE = "did:ted:WgWxqztrNooG92RXvxSTWv"
PATTERN = DID_PATTERN
# Did or DidUrl regex
PATTERN = re.compile(
r"did:([a-z0-9]+):((?:[a-zA-Z0-9._%-]*:)*[a-zA-Z0-9._%-]+)+(#\w+)?$"

Check failure

Code scanning / CodeQL

Inefficient regular expression High

This part of the regular expression may cause exponential backtracking on strings starting with 'did:0:' and containing many repetitions of '%'.
)

def __init__(self):
"""Initialize the instance."""
Expand Down

0 comments on commit 671558e

Please sign in to comment.