Skip to content

Commit

Permalink
replaced jwt_vc with jwt_vc_json
Browse files Browse the repository at this point in the history
  • Loading branch information
endimion committed Jun 12, 2024
1 parent 803df3f commit 8342242
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion data/oauth-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"ES256"
]
},
"jwt_vc": {
"jwt_vc_json": {
"alg_values_supported": [
"ES256"
]
Expand Down
8 changes: 4 additions & 4 deletions data/presentation_definition_alliance_and_education_Id.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
"id": "multi-credential-request",
"name": "Multi-Credential Request",
"format": {
"jwt_vc": {
"jwt_vc_json": {
"alg": ["ES256", "ES384"]
}
},
"input_descriptors": [
{
"id": "abd4acb1-1dcb-41ad-8596-ceb1401a69c7",
"format": {
"jwt_vc": {
"jwt_vc_json": {
"alg": ["ES256", "ES384"]
}
},
Expand Down Expand Up @@ -72,7 +72,7 @@
"id": "alliance-id-credential",
"name": "Alliance ID Credential",
"format": {
"jwt_vc": {
"jwt_vc_json": {
"alg": ["ES256", "ES384"]
}
},
Expand All @@ -92,7 +92,7 @@
"id": "educational-id-credential",
"name": "Educational ID Credential",
"format": {
"jwt_vc": {
"jwt_vc_json": {
"alg": ["ES256", "ES384"]
}
},
Expand Down
4 changes: 2 additions & 2 deletions data/presentation_definition_alliance_id.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
"id": "d49ee616-0e8d-4698-aff5-2a8a2362652d",
"name": "id-card-proof",
"format": {
"jwt_vc": {
"jwt_vc_json": {
"alg": ["ES256", "ES384"]
}
},
"input_descriptors": [
{
"id": "abd4acb1-1dcb-41ad-8596-ceb1401a69c7",
"format": {
"jwt_vc": {
"jwt_vc_json": {
"alg": ["ES256", "ES384"]
}
},
Expand Down
4 changes: 2 additions & 2 deletions data/presentation_definition_education_id.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
"id": "d49ee616-0e8d-4698-aff5-2a8a2362652d",
"name": "id-card-proof",
"format": {
"jwt_vc": {
"jwt_vc_json": {
"alg": ["ES256", "ES384"]
}
},
"input_descriptors": [
{
"id": "abd4acb1-1dcb-41ad-8596-ceb1401a69c7",
"format": {
"jwt_vc": {
"jwt_vc_json": {
"alg": ["ES256", "ES384"]
}
},
Expand Down
4 changes: 2 additions & 2 deletions data/presentation_definition_epass.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
"id": "d49ee616-0e8d-4698-aff5-2a8a2362652d",
"name": "id-card-proof",
"format": {
"jwt_vc": {
"jwt_vc_json": {
"alg": ["ES256", "ES384"]
}
},
"input_descriptors": [
{
"id": "abd4acb1-1dcb-41ad-8596-ceb1401a69c7",
"format": {
"jwt_vc": {
"jwt_vc_json": {
"alg": ["ES256", "ES384"]
}
},
Expand Down
4 changes: 2 additions & 2 deletions data/presentation_definition_ferryboardingpass.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
"id": "d49ee616-0e8d-4698-aff5-2a8a2362652d",
"name": "ferry-boarding-pass-proof",
"format": {
"jwt_vc": {
"jwt_vc_json": {
"alg": ["ES256", "ES384"]
}
},
"input_descriptors": [
{
"id": "abd4acb1-1dcb-41ad-8596-ceb1401a69c7",
"format": {
"jwt_vc": {
"jwt_vc_json": {
"alg": ["ES256", "ES384"]
}
},
Expand Down
4 changes: 2 additions & 2 deletions data/presentation_definition_jwt.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
"id": "d49ee616-0e8d-4698-aff5-2a8a2362652d",
"name": "id-card-proof",
"format": {
"jwt_vc": {
"jwt_vc_json": {
"alg": ["ES256", "ES384"]
}
},
"input_descriptors": [
{
"id": "abd4acb1-1dcb-41ad-8596-ceb1401a69c7",
"format": {
"jwt_vc": {
"jwt_vc_json": {
"alg": ["ES256", "ES384"]
}
},
Expand Down
4 changes: 2 additions & 2 deletions data/presentation_definition_pid.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
"id": "d49ee616-0e8d-4698-aff5-2a8a2362652d",
"name": "id-card-proof",
"format": {
"jwt_vc": {
"jwt_vc_json": {
"alg": ["ES256", "ES384"]
}
},
"input_descriptors": [
{
"id": "abd4acb1-1dcb-41ad-8596-ceb1401a69c7",
"format": {
"jwt_vc": {
"jwt_vc_json": {
"alg": ["ES256", "ES384"]
}
},
Expand Down
6 changes: 3 additions & 3 deletions routes/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ router.get(["/credential-offer/:id"], (req, res) => {
});

// ***************
///pre-auth flow jwt_vc
///pre-auth flow jwt_vc_json
router.get(["/pre-offer-jwt"], async (req, res) => {
const uuid = req.query.sessionId ? req.query.sessionId : uuidv4();
const preSessions = getPreCodeSessions();
Expand Down Expand Up @@ -218,7 +218,7 @@ router.post("/credential", async (req, res) => {
}

// console.log(credential);
if (format === "jwt_vc") {
if (format === "jwt_vc_json") {
let payload = {};
if (requestedCredentials != null && requestedCredentials[0] === "PID") {
//get persona if existing from accessToken
Expand Down Expand Up @@ -755,7 +755,7 @@ router.post("/credential", async (req, res) => {

/* jwt format */
res.json({
format: "jwt_vc",
format: "jwt_vc_json",
credential: idtoken,
c_nonce: generateNonce(),
c_nonce_expires_in: 86400,
Expand Down

0 comments on commit 8342242

Please sign in to comment.