From 9e42e080368e0871f1de72208cdbc34a40210c9a Mon Sep 17 00:00:00 2001 From: Daniel Bluhm Date: Wed, 17 Jul 2024 13:46:51 -0400 Subject: [PATCH] fix: debug value in cred id Signed-off-by: Daniel Bluhm --- oid4vci/oid4vci/public_routes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oid4vci/oid4vci/public_routes.py b/oid4vci/oid4vci/public_routes.py index 17e2c9c37..891a69a27 100644 --- a/oid4vci/oid4vci/public_routes.py +++ b/oid4vci/oid4vci/public_routes.py @@ -5,6 +5,7 @@ from dataclasses import dataclass from secrets import token_urlsafe from typing import Any, Dict, List, Mapping, Optional +import uuid import jwt from aiohttp import web @@ -334,8 +335,7 @@ async def issue_cred(request: web.Request): current_time_unix_timestamp = int(current_time.timestamp()) formatted_time = current_time.strftime("%Y-%m-%dT%H:%M:%SZ") - # cred_id = str(uuid.uuid4()) - cred_id = "https://example.com/1" + cred_id = f"urn:uuid:{str(uuid.uuid4())}" if "proof" not in body: raise web.HTTPBadRequest(reason="proof is required for jwt_vc_json") if ex_record.nonce is None: