Skip to content

Commit

Permalink
vp metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
endimion committed Sep 13, 2024
1 parent 26b5e88 commit f2fae29
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
},
{
"id": "educational-id-credential",
"name": "Educational ID Credential",
"name": "Student ID",
"format": {
"jwt_vc_json": {
"alg": ["ES256", "ES384"]
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"type": "module",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"dev": "SERVER_URL=https://7ef8-2a02-587-870d-e900-4699-6b46-3f50-4847.ngrok-free.app node server.js"
"dev": "SERVER_URL=https://53d6-2a02-587-870d-e900-2f53-2882-9444-e8a3.ngrok-free.app node server.js"
},
"author": "",
"license": "ISC",
Expand Down
2 changes: 1 addition & 1 deletion routes/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ router.post("/credential", async (req, res) => {
exp: Math.floor(Date.now() / 1000) + 60 * 60, // Token expiration time (1 hour from now)
jti: "urn:did:1904a925-38bd-4eda-b682-4b5e3ca9d4bc",
vc: {
type: ["EducationalID"],
type: ["StudentID"],//["EducationalID"],
"@context": ["https://www.w3.org/2018/credentials/v1"],
issuer: serverURL,
credentialSubject: {
Expand Down
7 changes: 7 additions & 0 deletions routes/verifierRoutes.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,13 @@ verifierRouter.get("/vpRequest/:type/:id", async (req, res) => {
// privateKey
// );
let vpRequest = {
client_metadata: {
client_name: "UAegean EWC Verifier",
logo_uri: "https://studyingreece.edu.gr/wp-content/uploads/2023/03/25.png",
location: "Greece",
cover_uri: "string",
description: "EWC pilot case verification",
},
client_id: clientId,
client_id_scheme: "redirect_uri",
response_uri: response_uri,
Expand Down

0 comments on commit f2fae29

Please sign in to comment.