File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -315,14 +315,14 @@ def __init__(self):
315315
316316 def provide (self , settings : BaseSettings , injector : BaseInjector ):
317317 """Create the profile manager instance."""
318+ mgr_type = settings .get_value ("wallet.type" , default = "in_memory" )
318319
319- mgr_type = settings .get_value ("wallet.type" , default = "in_memory" ).lower ()
320- if mgr_type == "basic" :
320+ if mgr_type .lower () == "basic" :
321321 # map previous value
322322 mgr_type = "in_memory"
323323
324324 # mgr_type may be a fully qualified class name
325- mgr_class = self .MANAGER_TYPES .get (mgr_type , mgr_type )
325+ mgr_class = self .MANAGER_TYPES .get (mgr_type . lower () , mgr_type )
326326
327327 if mgr_class not in self ._inst :
328328 LOGGER .info ("Create profile manager: %s" , mgr_type )
Original file line number Diff line number Diff line change @@ -477,7 +477,10 @@ async def receive_request(
477477 conn_rec .their_did = request .did
478478 conn_rec .state = ConnRecord .State .REQUEST .rfc23
479479 conn_rec .request_id = request ._id
480-
480+ async with self .profile .session () as session :
481+ await conn_rec .save (
482+ session , reason = "Received connection request from invitation"
483+ )
481484 else :
482485 # request is against implicit invitation on public DID
483486 async with self .profile .session () as session :
Original file line number Diff line number Diff line change 99from marshmallow .exceptions import ValidationError
1010
1111from ....admin .request_context import AdminRequestContext
12- from ....connections .models .conn_record import ConnRecordSchema
1312from ....messaging .models .base import BaseModelError
1413from ....messaging .models .openapi import OpenAPISchema
1514from ....messaging .valid import UUID4
2221from .messages .invitation import HSProto , InvitationMessage , InvitationMessageSchema
2322from .message_types import SPEC_URI
2423from .models .invitation import InvitationRecordSchema
24+ from .models .oob_record import OobRecordSchema
2525
2626LOGGER = logging .getLogger (__name__ )
2727
@@ -188,7 +188,7 @@ async def invitation_create(request: web.BaseRequest):
188188)
189189@querystring_schema (InvitationReceiveQueryStringSchema ())
190190@request_schema (InvitationMessageSchema ())
191- @response_schema (ConnRecordSchema (), 200 , description = "" )
191+ @response_schema (OobRecordSchema (), 200 , description = "" )
192192async def invitation_receive (request : web .BaseRequest ):
193193 """
194194 Request handler for receiving a new connection invitation.
You can’t perform that action at this time.
0 commit comments