Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: debug value in cred id #770

Merged
merged 1 commit into from
Jul 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions oid4vci/oid4vci/public_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down
Loading