Skip to content

Commit

Permalink
VCHolder multitenant binding
Browse files Browse the repository at this point in the history
Signed-off-by: jamshale <jamiehalebc@gmail.com>
  • Loading branch information
jamshale committed Dec 9, 2024
1 parent 4521722 commit c0b2010
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion acapy_agent/askar/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def bind_providers(self):
IndyIssuer,
ClassProvider("acapy_agent.indy.credx.issuer.IndyCredxIssuer", ref(self)),
)
injector.soft_bind_provider(
injector.bind_provider(
VCHolder,
ClassProvider(
"acapy_agent.storage.vc_holder.askar.AskarVCHolder",
Expand Down
3 changes: 3 additions & 0 deletions acapy_agent/vc/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ async def verify_credential_route(request: web.BaseRequest):


@docs(tags=["vc-api"], summary="Store a credential")
@request_schema(web_schemas.VerifyCredentialRequest())
@response_schema(web_schemas.StoreCredentialResponse(), 200, description="")
@tenant_authentication
async def store_credential_route(request: web.BaseRequest):
"""Request handler for storing a credential.
Expand Down
6 changes: 6 additions & 0 deletions acapy_agent/vc/vc_ld/models/web_schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ class VerifyCredentialResponse(OpenAPISchema):
results = fields.Nested(PresentationVerificationResultSchema)


class StoreCredentialResponse(OpenAPISchema):
"""Request schema for verifying an LDP VP."""

credentialId = fields.Str()


class ProvePresentationRequest(OpenAPISchema):
"""Request schema for proving a presentation."""

Expand Down

0 comments on commit c0b2010

Please sign in to comment.