[java-idp-plugin-vci] 01/01: Update crededential configuration for test cases

Codeberg noreply at shibboleth.net
Thu Nov 20 10:03:36 UTC 2025


This is an automated email from the git hooks/post-receive script.

codeberg pushed a commit to branch dev/PROOFVERIFY
in repository java-idp-plugin-vci.

View the commit online:
https://codeberg.org/Shibboleth/java-idp-plugin-vci/commit/fc34e82b85950c00bfc14ce485adcbea4a4fbdb5

commit fc34e82b85950c00bfc14ce485adcbea4a4fbdb5
Author: jlauros <janne.lauros at csc.fi>
AuthorDate: Thu Nov 20 12:03:09 2025 +0200

    Update crededential configuration for test cases
---
 .../impl/ValidateCredentialOfferingTest.java       |   2 +-
 .../resources/conf/verifiable-credentials.json     | 328 ++++++---------------
 2 files changed, 98 insertions(+), 232 deletions(-)

diff --git a/openid-vci-impl/src/test/java/org/geant/shibboleth/plugin/openidvci/profile/impl/ValidateCredentialOfferingTest.java b/openid-vci-impl/src/test/java/org/geant/shibboleth/plugin/openidvci/profile/impl/ValidateCredentialOfferingTest.java
index 9d73e50..58dafa2 100644
--- a/openid-vci-impl/src/test/java/org/geant/shibboleth/plugin/openidvci/profile/impl/ValidateCredentialOfferingTest.java
+++ b/openid-vci-impl/src/test/java/org/geant/shibboleth/plugin/openidvci/profile/impl/ValidateCredentialOfferingTest.java
@@ -54,7 +54,7 @@ public class ValidateCredentialOfferingTest {
         httpRequest.setAuthorization("Basic dGVzdDp0ZXN0");
         httpRequest.setContentType("application/json");
         httpRequest.setQuery(
-                "{\"preAuthorizedCredentials\":{\"GeantIncubatorSdJwt2\":[{\"path\":[\"mail\"],\"value\":\"incubatorUser at example.org\"},{\"path\":[\"edu\",\"eppn\"],\"value\":\"incubatorUser at example.org\"},{\"path\":[\"givenName\"],\"value\":\"Gemma Gemina Erasmus\"},{\"path\":[\"familyName\"],\"value\":\"Erasmus\"}]}}");
+                "{\"preAuthorizedCredentials\":{\"GeantIncubatorDiploma\":[{\"path\":[\"mail\"],\"value\":\"incubatorUser at example.org\"},{\"path\":[\"edu\",\"eppn\"],\"value\":\"incubatorUser at example.org\"},{\"path\":[\"givenName\"],\"value\":\"Gemma Gemina Erasmus\"},{\"path\":[\"familyName\"],\"value\":\"Erasmus\"}]}}");
 
         requestCtx = new RequestContextBuilder().buildRequestContext();
         profileRequestCtx = new WebflowRequestContextProfileRequestContextLookup().apply(requestCtx);
diff --git a/openid-vci-impl/src/test/resources/conf/verifiable-credentials.json b/openid-vci-impl/src/test/resources/conf/verifiable-credentials.json
index e48c096..1d57042 100644
--- a/openid-vci-impl/src/test/resources/conf/verifiable-credentials.json
+++ b/openid-vci-impl/src/test/resources/conf/verifiable-credentials.json
@@ -1,248 +1,114 @@
 {
-  "credential_configurations_supported": {
-    "GeantIncubatorSdJwt2": {
-      "format": "vc+sd-jwt",
-      "cryptographic_binding_methods_supported": [
-        "did:jwk"
-      ],
-      "cryptographic_suites_supported": [
-        "RS256"
-      ],
-      "display": [
-        {
-          "name": "GeantIncubatorCredential",
-          "description": "Card Credential",
-          "background_color": "rgba(0, 0, 0, 0.2)",
-          "text_color": "#FBFBFB",
-          "logo": {
-            "url": "https://resources.geant.org/wp-content/uploads/2022/02/GEANT_logo_lo_res.jpg",
-            "alt_text": "Geant Incubator logo"
+    "credential_configurations_supported": {
+      "GeantIncubatorDiploma": {
+        "format": "dc+sd-jwt",
+        "cryptographic_binding_methods_supported": [
+          "did:jwk"
+        ],
+        "proof_types_supported": {
+          "jwt": {
+            "proof_signing_alg_values_supported": [
+              "ES256"
+             ]
           }
         },
-        {
-          "locale": "en-US",
-          "name": "GeantIncubatorCredential",
-          "description": "Geant Incubator statement",
-          "background_color": "rgba(0, 0, 0, 0.2)",
-          "text_color": "#FBFBFB",
-          "logo": {
-            "url": "https://resources.geant.org/wp-content/uploads/2022/02/GEANT_logo_lo_res.jpg",
-            "alt_text": "Geant Incubator logo"
-          }
-        },
-        {
-          "locale": "fi-FI",
-          "name": "GeantIncubatorCredential",
-          "description": "Geant Incubator lausuma",
-          "background_color": "rgba(0, 0, 0, 0.2)",
-          "text_color": "#FBFBFB",
-          "logo": {
-            "url": "https://resources.geant.org/wp-content/uploads/2022/02/GEANT_logo_lo_res.jpg",
-            "alt_text": "Geant Incubator logo"
-          }
-        }
-      ],
-      "vct": "GeantIncubatorSdJwt",
-      "claims": [
-        {
-          "display": [
-            {
-              "description": "Card Information",
-              "label": "Card",
-              "lang": "en-US"
-            },
-            {
-              "description": "Kortin tiedot",
-              "label": "Card",
-              "lang": "fi-FI"
+        "display": [
+          {
+            "name": "GeantIncubatorCredential",
+            "description": "Card Credential",
+            "background_color": "rgba(0, 0, 0, 0.2)",
+            "text_color": "#FBFBFB",
+            "logo": {
+              "url": "https://resources.geant.org/wp-content/uploads/2022/02/GEANT_logo_lo_res.jpg",
+              "alt_text": "Geant Incubator logo"
             }
-          ],
-          "path": [
-            "Card"
-          ]
-        },
-        {
-          "display": [
-            {
-              "description": "Account Identifier",
-              "label": "Account Identifier",
-              "lang": "en-US"
-            },
-            {
-              "description": "Tilin tunniste",
-              "label": "Tilin tunniste",
-              "lang": "fi-FI"
+          },
+          {
+            "locale": "en-EN",
+            "name": "GeantIncubatorCredential",
+            "description": "Geant Incubator statement",
+            "background_color": "rgba(0, 0, 0, 0.2)",
+            "text_color": "#FBFBFB",
+            "logo": {
+              "url": "https://resources.geant.org/wp-content/uploads/2022/02/GEANT_logo_lo_res.jpg",
+              "alt_text": "Geant Incubator logo"
             }
-          ],
-          "path": [
-            "Card",
-            "mail"
-          ]
-        },
-        {
-          "display": [
-            {
-              "description": "Personal Information",
-              "label": "Person",
-              "lang": "en-US"
-            },
-            {
-              "description": "Henkilötiedot",
-              "label": "Person",
-              "lang": "fi-FI"
+          },
+          {
+            "locale": "fi-FI",
+            "name": "GeantIncubatorCredential",
+            "description": "Geant Incubator lausuma",
+            "background_color": "rgba(0, 0, 0, 0.2)",
+            "text_color": "#FBFBFB",
+            "logo": {
+              "url": "https://resources.geant.org/wp-content/uploads/2022/02/GEANT_logo_lo_res.jpg",
+              "alt_text": "Geant Incubator logo"
             }
-          ],
-          "path": [
-            "Person"
-          ]
-        }
-      ],
-      "credential_definition": {
-        "type": [
-          "GeantIncubatorSdJwt"
-        ]
-      }
-    },
-    "GeantIncubatorCredential": {
-      "format": "jwt_vc_json",
-      "cryptographic_binding_methods_supported": [
-        "did:jwk"
-      ],
-      "cryptographic_suites_supported": [
-        "RS256"
-      ],
-      "display": [
-        {
-          "name": "GeantIncubatorCredential",
-          "description": "Card Credential",
-          "background_color": "rgba(0, 0, 0, 0.2)",
-          "text_color": "#FBFBFB",
-          "logo": {
-            "url": "https://resources.geant.org/wp-content/uploads/2022/02/GEANT_logo_lo_res.jpg",
-            "alt_text": "Geant Incubator logo"
           }
-        },
-        {
-          "locale": "en-US",
-          "name": "GeantIncubatorCredential",
-          "description": "Geant Incubator statement",
-          "background_color": "rgba(0, 0, 0, 0.2)",
-          "text_color": "#FBFBFB",
-          "logo": {
-            "url": "https://resources.geant.org/wp-content/uploads/2022/02/GEANT_logo_lo_res.jpg",
-            "alt_text": "Geant Incubator logo"
-          }
-        },
-        {
-          "locale": "fi-FI",
-          "name": "GeantIncubatorCredential",
-          "description": "Geant Incubator lausuma",
-          "background_color": "rgba(0, 0, 0, 0.2)",
-          "text_color": "#FBFBFB",
-          "logo": {
-            "url": "https://resources.geant.org/wp-content/uploads/2022/02/GEANT_logo_lo_res.jpg",
-            "alt_text": "Geant Incubator logo"
-          }
-        }
-      ],
-      "credentialSubject": {
-        "Card": {
-          "display": [
-            {
-              "name": "Card Information"
-            },
-            {
-              "name": "Card Information",
-              "locale": "en-US"
-            },
-            {
-              "name": "Kortin tiedot",
-              "locale": "fi-FI"
-            }
-          ],
-          "mail": {
-            "display": [
-              {
-                "name": "Account Identifier"
-              },
-              {
-                "name": "Account Identifier",
-                "locale": "en-US"
-              },
-              {
-                "name": "Tilin tunniste",
-                "locale": "fi-FI"
-              }
-            ]
+        ],
+        "vct": "GeantIncubatorDiploma",
+        "claims": [
+          {"path": ["mail"],"display":[{"name":"E-mail","locale":"en-EN"}]},
+          {"path": ["eppn"],"display":[{"name":"Principal name","locale":"en-EN"}]},
+          {"path": ["givenName"],"display":[{"name":"CN","locale":"en-EN"}]},
+          {"path": ["familyName"],"display":[{"name":"SN","locale":"en-EN"}]},
+          {"path": ["affiliation"],"display":[{"name":"Affiliation","locale":"en-EN"}]}
+        ]
+      },
+      "GeantIncubatorDiploma2": {
+        "format": "vc+sd-jwt",
+        "cryptographic_binding_methods_supported": [
+          "did:jwk"
+        ],
+        "proof_types_supported": {
+          "jwt": {
+            "proof_signing_alg_values_supported": [
+              "ES256"
+             ]
           }
         },
-        "Person": {
-          "display": [
-            {
-              "name": "Personal Information"
-            },
-            {
-              "name": "Personal Information",
-              "locale": "en-US"
-            },
-            {
-              "name": "Henkilötiedot",
-              "locale": "fi-FI"
+        "display": [
+          {
+            "name": "GeantIncubatorCredential2",
+            "description": "Card Credential",
+            "background_color": "rgba(0, 0, 0, 0.2)",
+            "text_color": "#FBFBFB",
+            "logo": {
+              "url": "https://resources.geant.org/wp-content/uploads/2022/02/GEANT_logo_lo_res.jpg",
+              "alt_text": "Geant Incubator logo"
             }
-          ],
-          "eppn": {
-            "display": [
-              {
-                "name": "Learner Identifier"
-              },
-              {
-                "name": "Learner Identifier",
-                "locale": "en-US"
-              },
-              {
-                "name": "Oppijanumero",
-                "locale": "fi-FI"
-              }
-            ]
           },
-          "family_name": {
-            "display": [
-              {
-                "name": "Family Name"
-              },
-              {
-                "name": "Family Name",
-                "locale": "en-US"
-              },
-              {
-                "name": "Achternaam",
-                "locale": "nl-NL"
-              }
-            ]
+          {
+            "locale": "en-EN",
+            "name": "GeantIncubatorCredential2",
+            "description": "Geant Incubator statement",
+            "background_color": "rgba(0, 0, 0, 0.2)",
+            "text_color": "#FBFBFB",
+            "logo": {
+              "url": "https://resources.geant.org/wp-content/uploads/2022/02/GEANT_logo_lo_res.jpg",
+              "alt_text": "Geant Incubator logo"
+            }
           },
-          "given_name": {
-            "display": [
-              {
-                "name": "Given Name"
-              },
-              {
-                "name": "Given Name",
-                "locale": "en-US"
-              },
-              {
-                "name": "Voornaam",
-                "locale": "nl-NL"
-              }
-            ]
+          {
+            "locale": "fi-FI",
+            "name": "GeantIncubatorCredential2",
+            "description": "Geant Incubator lausuma",
+            "background_color": "rgba(0, 0, 0, 0.2)",
+            "text_color": "#FBFBFB",
+            "logo": {
+              "url": "https://resources.geant.org/wp-content/uploads/2022/02/GEANT_logo_lo_res.jpg",
+              "alt_text": "Geant Incubator logo"
+            }
           }
-        }
-      },
-      "credential_definition": {
-        "type": [
-          "VerifiableCredential",
-          "GeantIncubatorCredential"
+        ],
+        "vct": "GeantIncubatorDiploma2",
+        "claims": [
+          {"path": ["mail"],"display":[{"name":"E-mail","locale":"en-EN"}]},
+          {"path": ["eppn"],"display":[{"name":"Principal name","locale":"en-EN"}]},
+          {"path": ["givenName"],"display":[{"name":"CN","locale":"en-EN"}]},
+          {"path": ["familyName"],"display":[{"name":"SN","locale":"en-EN"}]},
+          {"path": ["affiliation"],"display":[{"name":"Affiliation","locale":"en-EN"}]}
         ]
       }
     }
-  }
 }
\ No newline at end of file

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list