From 6ae3d651c4523b5369e84808dd536a8586e20247 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Emiliano=20Su=C3=B1=C3=A9?= <emiliano.sune@gmail.com>
Date: Wed, 11 Dec 2024 10:29:21 -0800
Subject: [PATCH] Update sample proof-request config
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Emiliano Suñé <emiliano.sune@gmail.com>
---
 README.md                                        | 13 ++++---------
 demo/vue/app/frontend/src/store/modules/auth.js  |  2 +-
 demo/vue/docker-compose.yaml                     |  2 +-
 oidc-controller/api/core/oidc/tests/__mocks__.py |  2 +-
 4 files changed, 7 insertions(+), 12 deletions(-)

diff --git a/README.md b/README.md
index 56a0fbe2..11546394 100644
--- a/README.md
+++ b/README.md
@@ -57,24 +57,19 @@ curl -X 'POST' \
   -H 'accept: application/json' \
   -H 'Content-Type: application/json' \
   -d '{
-  "ver_config_id": "showcase-person",
+  "ver_config_id": "test-proof",
   "subject_identifier": "",
   "generate_consistent_identifier": true,
   "proof_request": {
-    "name": "BC Wallet Showcase Person",
+    "name": "Test Proof-Request",
     "version": "1.0",
     "requested_attributes": [
 
       {
-        "names": ["given_names", "family_name", "country"],
+        "names": ["attr1", "attr2", "attr3"],
         "restrictions": [
           {
-              "schema_name": "Person",
-              "issuer_did": "QEquAHkM35w4XVT3Ku5yat"
-          },
-          {
-              "schema_name": "Person",
-              "issuer_did": "RGjWbW1eycP7FrMf4QJvX8"
+              "schema_name": "test-schema",
           }
         ]
       }
diff --git a/demo/vue/app/frontend/src/store/modules/auth.js b/demo/vue/app/frontend/src/store/modules/auth.js
index 6e8caddd..029a3c50 100644
--- a/demo/vue/app/frontend/src/store/modules/auth.js
+++ b/demo/vue/app/frontend/src/store/modules/auth.js
@@ -19,7 +19,7 @@ export default {
     // In most cases, when this becomes populated, we end up doing a redirect flow,
     // so when we return to the app, it is fresh again and undefined
     redirectUri: undefined,
-    presReqConfId: 'showcase-person', //TODO: load this via config response
+    presReqConfId: 'test-proof', //TODO: load this via config response
   },
   getters: {
     authenticated: () => Vue.prototype.$keycloak.authenticated,
diff --git a/demo/vue/docker-compose.yaml b/demo/vue/docker-compose.yaml
index 76c96eff..ad9fab82 100644
--- a/demo/vue/docker-compose.yaml
+++ b/demo/vue/docker-compose.yaml
@@ -7,7 +7,7 @@ services:
     build: .
     command: npm run serve
     environment:
-      FRONTEND_KC_PRES_REQ_CONF_ID: showcase-person
+      FRONTEND_KC_PRES_REQ_CONF_ID: test-proof
       FRONTEND_KC_SERVERURL: "http://localhost:8880/auth"
       FRONTEND_KC_REALM: "vc-authn"
       FRONTEND_KC_CLIENTID: "vue-fe"
diff --git a/oidc-controller/api/core/oidc/tests/__mocks__.py b/oidc-controller/api/core/oidc/tests/__mocks__.py
index d9150f86..0c17457e 100644
--- a/oidc-controller/api/core/oidc/tests/__mocks__.py
+++ b/oidc-controller/api/core/oidc/tests/__mocks__.py
@@ -1326,7 +1326,7 @@
 auth_session = AuthSession(
     pres_exch_id="e444bc3e-346d-47d1-882d-39c014b8978c",
     expired_timestamp=datetime.now() + timedelta(seconds=3000),
-    ver_config_id="showcase-person",
+    ver_config_id="test-proof",
     request_parameters={
         "scope": "openid vc_authn",
         "state": "oFLNfUyzDtWHmc61dNiQZkVZRsRUUXZ5KZIiQBeQuJQ.xfaKQBh1xfQ.T02DEr3QRTmMUfjegc9fQQ",