Skip to content

Commit

Permalink
fix: don't call wallet did when USE_OOB_PRESENT_PROOF is enabled
Browse files Browse the repository at this point in the history
Signed-off-by: Ariel Gentile <gentilester@gmail.com>
  • Loading branch information
genaris committed Jul 8, 2024
1 parent 0528f7d commit d62e277
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions oidc-controller/api/routers/oidc.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,6 @@ async def get_authorize(request: Request, db: Database = Depends(get_db)):
# Prepeare the presentation request
client = AcapyClient()
use_public_did = not settings.USE_OOB_LOCAL_DID_SERVICE
wallet_did = client.get_wallet_did(public=use_public_did)

byo_attachment = PresentProofv10Attachment.build(
pres_exch_dict["presentation_request"]
)

msg = None
if settings.USE_OOB_PRESENT_PROOF:
Expand All @@ -126,6 +121,11 @@ async def get_authorize(request: Request, db: Database = Depends(get_db)):
)
msg_contents = oob_invite_response.invitation
else:
wallet_did = client.get_wallet_did(public=use_public_did)

byo_attachment = PresentProofv10Attachment.build(
pres_exch_dict["presentation_request"]
)
s_d = ServiceDecorator(
service_endpoint=client.service_endpoint, recipient_keys=[wallet_did.verkey]
)
Expand Down

0 comments on commit d62e277

Please sign in to comment.