[java-idp-plugin-vci] branch main updated: Default verifiable-credentials.json now with plugin. Story in readme reorganised
Codeberg
noreply at shibboleth.net
Wed Nov 25 16:44:08 UTC 2026
This is an automated email from the git hooks/post-receive script.
codeberg pushed a commit to branch main
in repository java-idp-plugin-vci.
View the commit online:
https://codeberg.org/Shibboleth/java-idp-plugin-vci/commit/3648502b70d04344b9022b0e3357c04e13e20b1e
The following commit(s) were added to refs/heads/main by this push:
new 3648502 Default verifiable-credentials.json now with plugin. Story in readme reorganised
3648502 is described below
commit 3648502b70d04344b9022b0e3357c04e13e20b1e
Author: Janne Lauros <janne.lauros at csc.fi>
AuthorDate: Wed Nov 25 18:43:54 2026 +0200
Default verifiable-credentials.json now with plugin. Story in readme reorganised
---
README.md | 1142 ++++++++++----------
docs/example/step-1/etc/jetty-rewrite-rules.xml | 9 -
docs/example/step-1/metadata/oidc-client.json | 2 +-
.../step-1/metadata/verifiable-credentials.json | 69 --
.../step-1/static/oauth-authorization-server.json | 3 +-
.../credentials/GeantIncubatorDiploma_W3C.json | 10 -
.../GeantIncubatorDiploma_W3C.schema.json | 24 -
docs/example/step-2/etc/jetty-rewrite-rules.xml | 9 -
docs/example/step-2/metadata/oidc-client.json | 2 +-
.../step-2/metadata/verifiable-credentials.json | 69 --
.../step-2/static/oauth-authorization-server.json | 1 -
.../credentials/GeantIncubatorDiploma_W3C.json | 10 -
.../GeantIncubatorDiploma_W3C.schema.json | 24 -
docs/example/step-3/etc/jetty-rewrite-rules.xml | 9 -
docs/example/step-3/metadata/oidc-client.json | 2 +-
.../step-3/metadata/verifiable-credentials.json | 69 --
.../step-3/static/oauth-authorization-server.json | 1 -
.../credentials/GeantIncubatorDiploma_W3C.json | 10 -
.../GeantIncubatorDiploma_W3C.schema.json | 24 -
docs/example/step-4/etc/jetty-rewrite-rules.xml | 9 -
docs/example/step-4/metadata/oidc-client.json | 2 +-
.../step-4/metadata/verifiable-credentials.json | 72 --
.../step-4/static/oauth-authorization-server.json | 1 -
.../credentials/GeantIncubatorDiploma_W3C.json | 10 -
.../GeantIncubatorDiploma_W3C.schema.json | 24 -
docs/example/step-5/conf/attribute-filter.xml | 11 +-
docs/example/step-5/conf/global.xml | 28 -
.../example/step-5/conf/openid-vci-credentials.xml | 29 +-
docs/example/step-5/conf/relying-party.xml | 50 +-
.../step-5/credentials/eudiw-pid-issuer-ca02.crt | 18 -
docs/example/step-5/etc/jetty-rewrite-rules.xml | 27 +
docs/example/step-5/metadata/oidc-client.json | 37 +-
.../step-5/metadata/verifiable-credentials.json | 167 ++-
.../step-5/static/oauth-authorization-server.json | 18 +-
.../openidvci/metadata/verifiable-credentials.json | 33 +
.../shibboleth/plugin/openidvci/module.properties | 3 +
36 files changed, 852 insertions(+), 1176 deletions(-)
diff --git a/README.md b/README.md
index 4dc0099..9ca2884 100644
--- a/README.md
+++ b/README.md
@@ -25,9 +25,10 @@
- [Step 2: Add a did:web credential](#step-2-add-a-did-web-credential)
- [Step 3: Add a plain URL-based credential](#step-3-add-a-plain-url-credential)
- [Step 4: Make the URL-based credential an OpenID Federation credential](#step-4-make-the-url-credential-an-openid-federation-credential)
+ - [Step 5: Add a W3C credential](#step-5-add-a-w3c-credential)
- [What we have now](#what-we-have-now)
- - [Step 5: A HAIP setup](#step-5-a-haip-setup)
- - [Step 6: Rolling the signing key](#step-6-rolling-the-signing-key)
+ - [Step 6: A HAIP setup](#step-6-a-haip-setup)
+ - [Step 7: Rolling the signing key](#step-7-rolling-the-signing-key)
- [Requesting a credential by configuration or by identifier](#requesting-a-credential-by-configuration-or-by-identifier)
- [Several credentials of one configuration](#several-credentials-of-one-configuration)
- [Pre-authorized code flow](#pre-authorized-code-flow-1)
@@ -233,7 +234,7 @@ bin/plugin.sh \
</details>
-Installing the plugin activates module `OpenID-VCI` and creates six files:
+Installing the plugin activates module `OpenID-VCI` and creates seven files:
| File | Description |
|---|---|
@@ -243,36 +244,33 @@ Installing the plugin activates module `OpenID-VCI` and creates six files:
| *static/openid-credential-issuer.json* | Credential Issuer metadata, as a Velocity template. |
| *static/jwt-vc-issuer.json* | Keys that sign the credentials, for a verifier. As a Velocity template. |
| *static/oauth-authorization-server.json* | Authorization server metadata of the VCI endpoints, for a wallet. As a Velocity template. |
-
-You must create one file yourself: *metadata/verifiable-credentials.json*. It contains the
-Credential Configurations, and the plugin does not provide a template - which is a a BUG of course as
-missing it breaks the startup. See
-[Credential Configurations](#credential-configurations).
+| *metadata/verifiable-credentials.json* | Credential Configurations, with `GeantIncubatorDiploma_SDJWT` of [Step 1](#step-1-did-jwk-credential-both-flows). See [Credential Configurations](#credential-configurations). |
## First installation, by example
-Steps 1–4 build a DIIP deployment. Step 5 describes a separate HAIP deployment. Each of Steps 2–4
-adds to the setup from the previous step and explains only the changes. Step 5 starts again from
-Step 1; it does not depend on Steps 2–4. The examples are based on a working test deployment, so they
+Steps 1–5 build a DIIP deployment. Step 6 describes a separate HAIP deployment. Each of Steps 2–5
+adds to the setup from the previous step and explains only the changes. Step 6 starts again from
+Step 1; it does not depend on Steps 2–5. The examples are based on a working test deployment, so they
are consistent with one another. You may still need to adapt them to your environment.
Before you start, make sure the OP has an EC signing key. See
[Key Generation](https://shibboleth.atlassian.net/wiki/spaces/IDPPLUGINS/pages/1376878976/OIDC+OP#Key-Generation)
in the OIDC OP wiki. A standard installation of the OP plugin includes
-*credentials/idp-signing-es.jwk*. Steps 1–4 use this key to sign credentials.
+*credentials/idp-signing-es.jwk*. Steps 1–5 use this key to sign credentials.
1. A did:jwk credential with both flows and the Status List. Signed with the key of the OP.
2. A second credential, did:web.
3. A third credential, with a plain URL as the issuer.
4. The third credential is made an OpenID Federation credential.
+5. The first credential in W3C VCDM 2.0 format, did:jwk.
[What we have now](#what-we-have-now) sums up the DIIP setup.
-5. A HAIP setup on its own, two credentials as SD-JWT VC and as mdoc. The signing key has a
+6. A HAIP setup on its own, two credentials as SD-JWT VC and as mdoc. The signing key has a
certificate chain.
-6. Rotating the signing key, in either setup.
+7. Rotating the signing key, in either setup.
-Steps 1 and 2 use the [Paradym](https://paradym.id) wallet. In our tests Paradym accepted only `did`
+Steps 1, 2 and 5 use the [Paradym](https://paradym.id) wallet. In our tests Paradym accepted only `did`
and `x5c` issuers, so use the TOPPAN wallet for the URL-based credential in Steps 3 and 4. Use the Hopae EUDI
-Wallet for the HAIP credentials in Step 5. We have also tested those credentials with the OpenID
+Wallet for the HAIP credentials in Step 6. We have also tested those credentials with the OpenID
conformance suite.
`https://issuer.example.org` is your IdP's OIDC issuer everywhere below.
@@ -330,75 +328,6 @@ with details that depend on the credential format. The notes below clarify only
{ "path": ["affiliation"], "display": [{ "name": "Affiliation", "locale": "en" }] }
]
}
- },
- "GeantIncubatorDiploma_W3C": {
- "format": "vc+sd-jwt",
- "scope": "GeantIncubatorDiploma_W3C",
- "cryptographic_binding_methods_supported": ["did:jwk", "jwk"],
- "credential_signing_alg_values_supported": ["ES256"],
- "proof_types_supported": {
- "jwt": {
- "proof_signing_alg_values_supported": ["ES256", "ES384", "ES512"]
- }
- },
- "credential_definition": {
- "@context": [
- "https://www.w3.org/ns/credentials/v2",
- "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C"
- ],
- "type": [
- "VerifiableCredential",
- "GeantIncubatorDiploma_W3C"
- ],
- "name": [
- { "@value": "Incubator Diploma", "@language": "en" },
- { "@value": "Inkubaattorin tutkinto", "@language": "fi" }
- ],
- "description": [
- { "@value": "Diploma issued by the Trust and Identity Incubator", "@language": "en" },
- { "@value": "Trust and Identity Incubatorin myöntämä tutkinto", "@language": "fi" }
- ],
- "credentialSchema": {
- "id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C.schema.json",
- "type": "JsonSchema"
- },
- "termsOfUse": {
- "id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C/terms",
- "type": "IncubatorTermsOfUse"
- },
- "relatedResource": [
- {
- "id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C",
- "digestSRI": "sha384-eIeXcHH79JdWiST9HYUoE0335npS6oIKV74bzZVqQUHWOH+v+7S+x/GLe57eCORS"
- },
- {
- "id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C.schema.json",
- "digestSRI": "sha384-5V21oQMDqipY/5lAXLyVIeL6+YnCC0fzWfcxPiiFpgddZFezHla6qpfWCkv12Qut"
- }
- ],
- "evidence": {
- "id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C/evidence",
- "type": "Evidence",
- "description": "Completion of the incubator programme, confirmed by the incubator board"
- }
- },
- "credential_metadata": {
- "display": [
- {
- "name": "Incubator Diploma, W3C",
- "locale": "en",
- "description": "Diploma issued by the Trust and Identity Incubator"
- }
- ],
- "claims": [
- { "path": ["credentialSubject","diploma"], "display": [{ "name": "Diploma", "locale": "en" }] },
- { "path": ["credentialSubject","mail"], "display": [{ "name": "Email", "locale": "en" }] },
- { "path": ["credentialSubject","eppn"], "display": [{ "name": "Principal name", "locale": "en" }] },
- { "path": ["credentialSubject","givenName"], "display": [{ "name": "Given names", "locale": "en" }] },
- { "path": ["credentialSubject","familyName"], "display": [{ "name": "Family name", "locale": "en" }] },
- { "path": ["credentialSubject","affiliation"], "display": [{ "name": "Affiliation", "locale": "en" }] }
- ]
- }
}
}
}
@@ -412,107 +341,6 @@ The configuration ID, `GeantIncubatorDiploma_SDJWT` in this example, is used in
The wallet includes it in credential requests, it is used as the `scope` value, and claim values in
the access token are grouped under this ID. Use the exact same string everywhere.
-This example defines the same credential in two formats: `dc+sd-jwt` and `vc+sd-jwt`. You do not
-need both formats. Both are included here to show how their configurations differ. Later steps use
-only `dc+sd-jwt` credentials.
-
-##### The W3C credential
-
-> **Note**
-> If you are reading this for the first time and are not feeling particularly energetic, **just skip
-> to [Settings of your own, per credential](#settings-of-your-own-per-credential)**. SD-JWT VC is
-> much simpler to set up, and it is what all the following steps use.
-
-This section applies only to `vc+sd-jwt`, a [W3C VCDM 2.0](https://www.w3.org/TR/vc-data-model-2.0/)
-credential. If you issue only `dc+sd-jwt` credentials, skip this section. You do not need any of
-the files or members described below.
-
-The [`@context`](https://www.w3.org/TR/vc-data-model-2.0/#contexts) of a `vc+sd-jwt` credential
-has two entries and both have to resolve. The first is the
-[VCDM 2.0 base context](https://www.w3.org/TR/vc-data-model-2.0/#base-context) of W3C, always
-first, which defines the standard members of a credential. The second is yours. It defines the
-claims of your `credentialSubject`, and you publish it yourself as a static file:
-
-<details>
-<summary>webapps/root/credentials/GeantIncubatorDiploma_W3C.json</summary>
-
-```json
-{
- "@context": {
- "diploma": "https://vocabulary.example.org/terms#diploma",
- "mail": "https://vocabulary.example.org/terms#mail",
- "eppn": "https://vocabulary.example.org/terms#eppn",
- "givenName": "https://vocabulary.example.org/terms#givenName",
- "familyName": "https://vocabulary.example.org/terms#familyName",
- "affiliation": "https://vocabulary.example.org/terms#affiliation"
- }
-}
-```
-
-Full file: [webapps/root/credentials/GeantIncubatorDiploma_W3C.json](docs/example/step-1/webapps/root/credentials/GeantIncubatorDiploma_W3C.json)
-
-</details>
-
-Publish it at the URL specified in `@context`; see [Metadata endpoints](#metadata-endpoints)
-below.
-
-`@context` and [`type`](https://www.w3.org/TR/vc-data-model-2.0/#types) are required and
-published. The following members are optional and appear only in the credential. You define their
-contents, and the plugin copies them unchanged into every credential.
-
-| Member | Here |
-|---|---|
-| [`name`](https://www.w3.org/TR/vc-data-model-2.0/#names-and-descriptions) | Name in English and Finnish, as [language value objects](https://www.w3.org/TR/vc-data-model-2.0/#language-and-base-direction) |
-| [`description`](https://www.w3.org/TR/vc-data-model-2.0/#names-and-descriptions) | Description in English and Finnish, as [language value objects](https://www.w3.org/TR/vc-data-model-2.0/#language-and-base-direction) |
-| [`credentialSchema`](https://www.w3.org/TR/vc-data-model-2.0/#data-schemas) | A [JSON Schema](https://www.w3.org/TR/vc-json-schema/#jsonschema) of the credential, a static file next to the context |
-| [`termsOfUse`](https://www.w3.org/TR/vc-data-model-2.0/#terms-of-use) | A policy of your own, VCDM defines no types for it |
-| [`relatedResource`](https://www.w3.org/TR/vc-data-model-2.0/#integrity-of-related-resources) | [Subresource Integrity](https://www.w3.org/TR/SRI/) digests of the context and the schema |
-| [`evidence`](https://www.w3.org/TR/vc-data-model-2.0/#evidence) | How the diploma was granted; the same for everyone |
-
-The plugin adds [`id`](https://www.w3.org/TR/vc-data-model-2.0/#identifiers), [`issuer`](https://www.w3.org/TR/vc-data-model-2.0/#issuer),
-[`validFrom` and `validUntil`](https://www.w3.org/TR/vc-data-model-2.0/#validity-period) and
-[`credentialSubject`](https://www.w3.org/TR/vc-data-model-2.0/#credential-subject) itself. You cannot configure these members. `termsOfUse` is
-the only member that both you and the plugin can set. When a `vc+sd-jwt` credential is in a federation, see
-[Step 4](#step-4-make-the-url-credential-an-openid-federation-credential), the plugin adds a
-federation entry and your entries go in the same array. See
-[Credential Configuration settings](#credential-configuration-settings) for the full list.
-
-The example schema:
-
-<details>
-<summary>webapps/root/credentials/GeantIncubatorDiploma_W3C.schema.json</summary>
-
-```json
-{
- "$schema": "https://json-schema.org/draft/2020-12/schema",
- "$id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C.schema.json",
- "title": "Incubator Diploma, W3C",
- "type": "object",
- "required": ["@context", "type", "issuer", "credentialSubject"],
- "properties": {
- "type": {
- "type": "array",
- "contains": { "const": "GeantIncubatorDiploma_W3C" }
- },
- "credentialSubject": {
- "type": "object",
- "properties": {
- "diploma": { "type": "string" },
- "mail": { "type": "string" },
- "eppn": { "type": "string" },
- "givenName": { "type": "string" },
- "familyName": { "type": "string" },
- "affiliation": { "type": "string" }
- }
- }
- }
-}
-```
-
-Full file: [webapps/root/credentials/GeantIncubatorDiploma_W3C.schema.json](docs/example/step-1/webapps/root/credentials/GeantIncubatorDiploma_W3C.schema.json)
-
-</details>
-
#### Settings of your own, per credential
The `_issuance_configuration` member is not published. It controls the credential's validity
@@ -729,8 +557,7 @@ credential by its scope:
"scopes_supported":[
- "openid"
+ "openid",
-+ "GeantIncubatorDiploma_SDJWT",
-+ "GeantIncubatorDiploma_W3C"
++ "GeantIncubatorDiploma_SDJWT"
],
"authorization_details_types_supported":[
"openid_credential"
@@ -779,15 +606,6 @@ The `/.well-known/` URLs are not IdP paths. Map them to the IdP endpoints in Jet
</New>
</Arg>
</Call>
- <!-- The JSON-LD context of the vc+sd-jwt credential is a static file of Jetty -->
- <Call name="addRule">
- <Arg>
- <New class="org.eclipse.jetty.rewrite.handler.RewritePatternRule">
- <Set name="pattern">/credentials/GeantIncubatorDiploma_W3C</Set>
- <Set name="replacement">/credentials/GeantIncubatorDiploma_W3C.json</Set>
- </New>
- </Arg>
- </Call>
<!-- Wallets running in a browser need this -->
<Call name="addRule">
<Arg>
@@ -948,14 +766,6 @@ curl -u 'offer-caller:CHANGE-ME' \
{ "path": ["givenName"], "value": "Gemma Gemina" },
{ "path": ["familyName"], "value": "Erasmus" },
{ "path": ["affiliation"], "value": "member" }
- ],
- "GeantIncubatorDiploma_W3C": [
- { "path": ["diploma"], "value": "Scrum Master" },
- { "path": ["mail"], "value": "gemma.erasmus at example.org" },
- { "path": ["eppn"], "value": "gemmaer at example.org" },
- { "path": ["givenName"], "value": "Gemma Gemina" },
- { "path": ["familyName"], "value": "Erasmus" },
- { "path": ["affiliation"], "value": "member" }
]
},
"txCode": {
@@ -972,17 +782,11 @@ offer JSON is passed as a query parameter and is therefore percent-encoded. Put
QR code. The transaction code's `value` is not included in the link:
```
-openid-credential-offer://?credential_offer=%7B%22credential_issuer%22:%22https://issuer.example.org%22,%22credential_configuration_ids%22:%5B%22GeantIncubatorDiploma_SDJWT%22,%22GeantIncubatorDiploma_W3C%22%5D,%22grants%22:%7B%22urn:ietf:params:oauth:grant-type:pre-authorized_code%22:%7B%22pre-authorized_code%22:%22AAdzZWNyZXQxWKPQ...%22,%22tx_code%22:%7B%22input_mode%22:%22numeric%22,%22length%22:6,%22description%22:%22The%20code%20we%20sent%20to%20your%20phone%22%7D%7D%7D%7D
+openid-credential-offer://?credential_offer=%7B%22credential_issuer%22:%22https://issuer.example.org%22,%22credential_configuration_ids%22:%5B%22GeantIncubatorDiploma_SDJWT%22%5D,%22grants%22:%7B%22urn:ietf:params:oauth:grant-type:pre-authorized_code%22:%7B%22pre-authorized_code%22:%22AAdzZWNyZXQxWKPQ...%22,%22tx_code%22:%7B%22input_mode%22:%22numeric%22,%22length%22:6,%22description%22:%22The%20code%20we%20sent%20to%20your%20phone%22%7D%7D%7D%7D
```
</details>
-This example requests both credentials in one offer. In practice, include only one credential
-per offer. In our experience many wallets cannot handle several credentials in one offer.
-
-The paths are flat in both formats, including `vc+sd-jwt`. The plugin adds the `credentialSubject`
-nesting for that format when it builds the credential.
-
Every configuration ID in the request must exist in *metadata/verifiable-credentials.json*;
otherwise, the plugin rejects the offer. The plugin does not resolve attributes when the wallet
redeems the code. It issues the values provided in the offer.
@@ -1006,7 +810,7 @@ for credential configuration that has no scope.
"client_id": "offer-caller",
"client_name": "Credential offer caller",
"client_secret": "CHANGE-ME",
- "scope": "GeantIncubatorDiploma_SDJWT GeantIncubatorDiploma_W3C"
+ "scope": "GeantIncubatorDiploma_SDJWT"
}
```
@@ -1061,7 +865,7 @@ resolver in the same *metadata/oidc-client.json* file as the clients above:
+ "client_id": "id.animo.paradym",
+ "client_name": "Paradym Wallet",
+ "redirect_uris": ["https://paradym.id/invitation/redirect"],
-+ "scope": "openid GeantIncubatorDiploma_SDJWT GeantIncubatorDiploma_W3C",
++ "scope": "openid GeantIncubatorDiploma_SDJWT",
+ "audience": [
+ "https://issuer.example.org"
+ ],
@@ -1219,16 +1023,14 @@ This is the same structure used by the Credential Offer API. Define the attribut
GeantIncubatorDiploma.addValue(JSON.stringify(claims));
]]></Script>
<AttributeEncoder xsi:type="oidc:OIDCString" name="GeantIncubatorDiploma_SDJWT" />
- <AttributeEncoder xsi:type="oidc:OIDCString" name="GeantIncubatorDiploma_W3C" />
</AttributeDefinition>
```
</details>
-One attribute serves both credentials. Each `AttributeEncoder` in the definition creates a claim with the name of the encoder. This means the
-wallet can retrieve the same claim list using either configuration ID, and you only need to write
-the script once. The encoder names are credential configuration IDs.
-`idp.oidc.encodedAttributes` and the filter policy use the attribute id.
+The `AttributeEncoder` in the definition creates a claim with the name of the encoder, and the
+encoder name is the credential configuration ID. `idp.oidc.encodedAttributes` and the filter policy
+use the attribute id.
Then you tell the OP plugin to carry the attribute in the authorization code in
*conf/oidc.properties*:
@@ -1516,7 +1318,7 @@ or if parsed but still not identified as anything this deployment has released.
Next, add a credential whose issuer is the `did:web` identifier of this deployment,
`did:web:issuer.example.org`. The identifier is formed from the host of `idp.oidc.issuer`. Unlike
`did:jwk`, it stays the same when the signing key changes. This matters in
-[Step 6](#step-6-rolling-the-signing-key).
+[Step 7](#step-7-rolling-the-signing-key).
What’s new:
@@ -1562,75 +1364,6 @@ The files below show their state after this step, with changes marked:
{ "path": ["affiliation"], "display": [{ "name": "Affiliation", "locale": "en" }] }
]
}
- },
- "GeantIncubatorDiploma_W3C": {
- "format": "vc+sd-jwt",
- "scope": "GeantIncubatorDiploma_W3C",
- "cryptographic_binding_methods_supported": ["did:jwk", "jwk"],
- "credential_signing_alg_values_supported": ["ES256"],
- "proof_types_supported": {
- "jwt": {
- "proof_signing_alg_values_supported": ["ES256", "ES384", "ES512"]
- }
- },
- "credential_definition": {
- "@context": [
- "https://www.w3.org/ns/credentials/v2",
- "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C"
- ],
- "type": [
- "VerifiableCredential",
- "GeantIncubatorDiploma_W3C"
- ],
- "name": [
- { "@value": "Incubator Diploma", "@language": "en" },
- { "@value": "Inkubaattorin tutkinto", "@language": "fi" }
- ],
- "description": [
- { "@value": "Diploma issued by the Trust and Identity Incubator", "@language": "en" },
- { "@value": "Trust and Identity Incubatorin myöntämä tutkinto", "@language": "fi" }
- ],
- "credentialSchema": {
- "id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C.schema.json",
- "type": "JsonSchema"
- },
- "termsOfUse": {
- "id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C/terms",
- "type": "IncubatorTermsOfUse"
- },
- "relatedResource": [
- {
- "id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C",
- "digestSRI": "sha384-eIeXcHH79JdWiST9HYUoE0335npS6oIKV74bzZVqQUHWOH+v+7S+x/GLe57eCORS"
- },
- {
- "id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C.schema.json",
- "digestSRI": "sha384-5V21oQMDqipY/5lAXLyVIeL6+YnCC0fzWfcxPiiFpgddZFezHla6qpfWCkv12Qut"
- }
- ],
- "evidence": {
- "id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C/evidence",
- "type": "Evidence",
- "description": "Completion of the incubator programme, confirmed by the incubator board"
- }
- },
- "credential_metadata": {
- "display": [
- {
- "name": "Incubator Diploma, W3C",
- "locale": "en",
- "description": "Diploma issued by the Trust and Identity Incubator"
- }
- ],
- "claims": [
- { "path": ["credentialSubject","diploma"], "display": [{ "name": "Diploma", "locale": "en" }] },
- { "path": ["credentialSubject","mail"], "display": [{ "name": "Email", "locale": "en" }] },
- { "path": ["credentialSubject","eppn"], "display": [{ "name": "Principal name", "locale": "en" }] },
- { "path": ["credentialSubject","givenName"], "display": [{ "name": "Given names", "locale": "en" }] },
- { "path": ["credentialSubject","familyName"], "display": [{ "name": "Family name", "locale": "en" }] },
- { "path": ["credentialSubject","affiliation"], "display": [{ "name": "Affiliation", "locale": "en" }] }
- ]
- }
+ },
+ "GeantIncubatorDiploma_DIDWEB": {
+ "format": "dc+sd-jwt",
@@ -1807,15 +1540,6 @@ Full file: [conf/relying-party.xml](docs/example/step-2/conf/relying-party.xml)
</New>
</Arg>
</Call>
- <!-- The JSON-LD context of the vc+sd-jwt credential is a static file of Jetty -->
- <Call name="addRule">
- <Arg>
- <New class="org.eclipse.jetty.rewrite.handler.RewritePatternRule">
- <Set name="pattern">/credentials/GeantIncubatorDiploma_W3C</Set>
- <Set name="replacement">/credentials/GeantIncubatorDiploma_W3C.json</Set>
- </New>
- </Arg>
- </Call>
+ <!-- The did:web document -->
+ <Call name="addRule">
+ <Arg>
@@ -1862,8 +1586,8 @@ Full file: [etc/jetty-rewrite-rules.xml](docs/example/step-2/etc/jetty-rewrite-r
"client_id": "id.animo.paradym",
"client_name": "Paradym Wallet",
"redirect_uris": ["https://paradym.id/invitation/redirect"],
-- "scope": "openid GeantIncubatorDiploma_SDJWT GeantIncubatorDiploma_W3C",
-+ "scope": "openid GeantIncubatorDiploma_SDJWT GeantIncubatorDiploma_W3C GeantIncubatorDiploma_DIDWEB",
+- "scope": "openid GeantIncubatorDiploma_SDJWT",
++ "scope": "openid GeantIncubatorDiploma_SDJWT GeantIncubatorDiploma_DIDWEB",
"audience": [
"https://issuer.example.org"
],
@@ -1915,9 +1639,8 @@ Full file: [metadata/oidc-client.json](docs/example/step-2/metadata/oidc-client.
],
"scopes_supported":[
"openid",
- "GeantIncubatorDiploma_SDJWT",
-- "GeantIncubatorDiploma_W3C"
-+ "GeantIncubatorDiploma_W3C",
+- "GeantIncubatorDiploma_SDJWT"
++ "GeantIncubatorDiploma_SDJWT",
+ "GeantIncubatorDiploma_DIDWEB"
],
"authorization_details_types_supported":[
@@ -2086,75 +1809,6 @@ The files below show their state after this step, with changes marked:
]
}
},
- "GeantIncubatorDiploma_W3C": {
- "format": "vc+sd-jwt",
- "scope": "GeantIncubatorDiploma_W3C",
- "cryptographic_binding_methods_supported": ["did:jwk", "jwk"],
- "credential_signing_alg_values_supported": ["ES256"],
- "proof_types_supported": {
- "jwt": {
- "proof_signing_alg_values_supported": ["ES256", "ES384", "ES512"]
- }
- },
- "credential_definition": {
- "@context": [
- "https://www.w3.org/ns/credentials/v2",
- "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C"
- ],
- "type": [
- "VerifiableCredential",
- "GeantIncubatorDiploma_W3C"
- ],
- "name": [
- { "@value": "Incubator Diploma", "@language": "en" },
- { "@value": "Inkubaattorin tutkinto", "@language": "fi" }
- ],
- "description": [
- { "@value": "Diploma issued by the Trust and Identity Incubator", "@language": "en" },
- { "@value": "Trust and Identity Incubatorin myöntämä tutkinto", "@language": "fi" }
- ],
- "credentialSchema": {
- "id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C.schema.json",
- "type": "JsonSchema"
- },
- "termsOfUse": {
- "id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C/terms",
- "type": "IncubatorTermsOfUse"
- },
- "relatedResource": [
- {
- "id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C",
- "digestSRI": "sha384-eIeXcHH79JdWiST9HYUoE0335npS6oIKV74bzZVqQUHWOH+v+7S+x/GLe57eCORS"
- },
- {
- "id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C.schema.json",
- "digestSRI": "sha384-5V21oQMDqipY/5lAXLyVIeL6+YnCC0fzWfcxPiiFpgddZFezHla6qpfWCkv12Qut"
- }
- ],
- "evidence": {
- "id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C/evidence",
- "type": "Evidence",
- "description": "Completion of the incubator programme, confirmed by the incubator board"
- }
- },
- "credential_metadata": {
- "display": [
- {
- "name": "Incubator Diploma, W3C",
- "locale": "en",
- "description": "Diploma issued by the Trust and Identity Incubator"
- }
- ],
- "claims": [
- { "path": ["credentialSubject","diploma"], "display": [{ "name": "Diploma", "locale": "en" }] },
- { "path": ["credentialSubject","mail"], "display": [{ "name": "Email", "locale": "en" }] },
- { "path": ["credentialSubject","eppn"], "display": [{ "name": "Principal name", "locale": "en" }] },
- { "path": ["credentialSubject","givenName"], "display": [{ "name": "Given names", "locale": "en" }] },
- { "path": ["credentialSubject","familyName"], "display": [{ "name": "Family name", "locale": "en" }] },
- { "path": ["credentialSubject","affiliation"], "display": [{ "name": "Affiliation", "locale": "en" }] }
- ]
- }
- },
"GeantIncubatorDiploma_DIDWEB": {
"format": "dc+sd-jwt",
"vct": "GeantIncubatorDiploma_DIDWEB",
@@ -2377,15 +2031,6 @@ Full file: [conf/relying-party.xml](docs/example/step-3/conf/relying-party.xml)
</New>
</Arg>
</Call>
- <!-- The JSON-LD context of the vc+sd-jwt credential is a static file of Jetty -->
- <Call name="addRule">
- <Arg>
- <New class="org.eclipse.jetty.rewrite.handler.RewritePatternRule">
- <Set name="pattern">/credentials/GeantIncubatorDiploma_W3C</Set>
- <Set name="replacement">/credentials/GeantIncubatorDiploma_W3C.json</Set>
- </New>
- </Arg>
- </Call>
<!-- The did:web document -->
<Call name="addRule">
<Arg>
@@ -2441,8 +2086,8 @@ Full file: [etc/jetty-rewrite-rules.xml](docs/example/step-3/etc/jetty-rewrite-r
"client_id": "id.animo.paradym",
"client_name": "Paradym Wallet",
"redirect_uris": ["https://paradym.id/invitation/redirect"],
-- "scope": "openid GeantIncubatorDiploma_SDJWT GeantIncubatorDiploma_W3C GeantIncubatorDiploma_DIDWEB",
-+ "scope": "openid GeantIncubatorDiploma_SDJWT GeantIncubatorDiploma_W3C GeantIncubatorDiploma_DIDWEB GeantIncubatorDiploma_URL",
+- "scope": "openid GeantIncubatorDiploma_SDJWT GeantIncubatorDiploma_DIDWEB",
++ "scope": "openid GeantIncubatorDiploma_SDJWT GeantIncubatorDiploma_DIDWEB GeantIncubatorDiploma_URL",
"audience": [
"https://issuer.example.org"
],
@@ -2541,7 +2186,6 @@ Full file: [conf/attribute-filter.xml](docs/example/step-3/conf/attribute-filter
"scopes_supported":[
"openid",
"GeantIncubatorDiploma_SDJWT",
- "GeantIncubatorDiploma_W3C",
- "GeantIncubatorDiploma_DIDWEB"
+ "GeantIncubatorDiploma_DIDWEB",
+ "GeantIncubatorDiploma_URL"
@@ -2600,7 +2244,7 @@ Import the federation file into *conf/global.xml*, after the import of Step 2:
After you add the import, every `dc+sd-jwt` and `vc+sd-jwt` credential includes the Entity Identifier
unless it has `"oidfed": false`. We want only the URL-based credential to be part of the federation, so set
-`"oidfed": false` for the other three credentials:
+`"oidfed": false` for the other two credentials:
<details>
<summary>metadata/verifiable-credentials.json</summary>
@@ -2640,78 +2284,6 @@ unless it has `"oidfed": false`. We want only the URL-based credential to be par
]
}
},
- "GeantIncubatorDiploma_W3C": {
- "format": "vc+sd-jwt",
- "scope": "GeantIncubatorDiploma_W3C",
-+ "_issuance_configuration": {
-+ "oidfed": false
-+ },
- "cryptographic_binding_methods_supported": ["did:jwk", "jwk"],
- "credential_signing_alg_values_supported": ["ES256"],
- "proof_types_supported": {
- "jwt": {
- "proof_signing_alg_values_supported": ["ES256", "ES384", "ES512"]
- }
- },
- "credential_definition": {
- "@context": [
- "https://www.w3.org/ns/credentials/v2",
- "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C"
- ],
- "type": [
- "VerifiableCredential",
- "GeantIncubatorDiploma_W3C"
- ],
- "name": [
- { "@value": "Incubator Diploma", "@language": "en" },
- { "@value": "Inkubaattorin tutkinto", "@language": "fi" }
- ],
- "description": [
- { "@value": "Diploma issued by the Trust and Identity Incubator", "@language": "en" },
- { "@value": "Trust and Identity Incubatorin myöntämä tutkinto", "@language": "fi" }
- ],
- "credentialSchema": {
- "id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C.schema.json",
- "type": "JsonSchema"
- },
- "termsOfUse": {
- "id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C/terms",
- "type": "IncubatorTermsOfUse"
- },
- "relatedResource": [
- {
- "id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C",
- "digestSRI": "sha384-eIeXcHH79JdWiST9HYUoE0335npS6oIKV74bzZVqQUHWOH+v+7S+x/GLe57eCORS"
- },
- {
- "id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C.schema.json",
- "digestSRI": "sha384-5V21oQMDqipY/5lAXLyVIeL6+YnCC0fzWfcxPiiFpgddZFezHla6qpfWCkv12Qut"
- }
- ],
- "evidence": {
- "id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C/evidence",
- "type": "Evidence",
- "description": "Completion of the incubator programme, confirmed by the incubator board"
- }
- },
- "credential_metadata": {
- "display": [
- {
- "name": "Incubator Diploma, W3C",
- "locale": "en",
- "description": "Diploma issued by the Trust and Identity Incubator"
- }
- ],
- "claims": [
- { "path": ["credentialSubject","diploma"], "display": [{ "name": "Diploma", "locale": "en" }] },
- { "path": ["credentialSubject","mail"], "display": [{ "name": "Email", "locale": "en" }] },
- { "path": ["credentialSubject","eppn"], "display": [{ "name": "Principal name", "locale": "en" }] },
- { "path": ["credentialSubject","givenName"], "display": [{ "name": "Given names", "locale": "en" }] },
- { "path": ["credentialSubject","familyName"], "display": [{ "name": "Family name", "locale": "en" }] },
- { "path": ["credentialSubject","affiliation"], "display": [{ "name": "Affiliation", "locale": "en" }] }
- ]
- }
- },
"GeantIncubatorDiploma_DIDWEB": {
"format": "dc+sd-jwt",
"vct": "GeantIncubatorDiploma_DIDWEB",
@@ -2939,15 +2511,6 @@ Full file: [conf/relying-party.xml](docs/example/step-4/conf/relying-party.xml)
</New>
</Arg>
</Call>
- <!-- The JSON-LD context of the vc+sd-jwt credential is a static file of Jetty -->
- <Call name="addRule">
- <Arg>
- <New class="org.eclipse.jetty.rewrite.handler.RewritePatternRule">
- <Set name="pattern">/credentials/GeantIncubatorDiploma_W3C</Set>
- <Set name="replacement">/credentials/GeantIncubatorDiploma_W3C.json</Set>
- </New>
- </Arg>
- </Call>
<!-- The did:web document -->
<Call name="addRule">
<Arg>
@@ -3001,13 +2564,297 @@ The URL-based credential then carries:
}
```
-A `vc+sd-jwt` credential carries the same as [`termsOfUse`](https://www.w3.org/TR/vc-data-model-2.0/#terms-of-use):
+`display_name` and `logo_uri` of the federation entity are filled from Credential Issuer
+metadata. Set `openidvci.oidfed.decorateFederationEntity = false` to state them in the
+metadata file of the federation module instead.
-```json
-{
- "termsOfUse": {
- "type": "OpenIDFederation",
- "policyId": "https://issuer.example.org"
+### Step 5: Add a W3C credential
+
+> **Note**
+> If you are reading this for the first time and are not feeling particularly energetic, **just skip
+> to [What we have now](#what-we-have-now)**. SD-JWT VC is much simpler to set up, and it is what the
+> other steps use.
+
+The fifth credential has the claims of the first one in the `vc+sd-jwt` format, a
+[W3C VCDM 2.0](https://www.w3.org/TR/vc-data-model-2.0/) credential secured with SD-JWT. Like the
+first credential it uses `did:jwk` and is signed with the EC key of the OP. It is not part of the
+federation of Step 4.
+
+What's new:
+
+- the `GeantIncubatorDiploma_W3C` credential configuration, with `"oidfed": false`
+- its JSON-LD context and JSON Schema, served by Jetty as static files
+- a second encoder in the attribute of Step 1
+
+The files below show their state after this step, with changes marked:
+
+<details>
+<summary>metadata/verifiable-credentials.json</summary>
+
+```diff
+ {
+ "credential_configurations_supported": {
+ "GeantIncubatorDiploma_SDJWT": {
+ "format": "dc+sd-jwt",
+ "vct": "GeantIncubatorDiploma_SDJWT",
+ "scope": "GeantIncubatorDiploma_SDJWT",
+ "_issuance_configuration": {
+ "oidfed": false
+ },
+ "cryptographic_binding_methods_supported": ["did:jwk", "jwk"],
+ "credential_signing_alg_values_supported": ["ES256"],
+ "proof_types_supported": {
+ "jwt": {
+ "proof_signing_alg_values_supported": ["ES256", "ES384", "ES512"]
+ }
+ },
+ "credential_metadata": {
+ "display": [
+ {
+ "name": "Incubator Diploma",
+ "locale": "en",
+ "description": "Diploma issued by the Trust and Identity Incubator"
+ }
+ ],
+ "claims": [
+ { "path": ["diploma"], "display": [{ "name": "Diploma", "locale": "en" }] },
+ { "path": ["mail"], "display": [{ "name": "Email", "locale": "en" }] },
+ { "path": ["eppn"], "display": [{ "name": "Principal name", "locale": "en" }] },
+ { "path": ["givenName"], "display": [{ "name": "Given names", "locale": "en" }] },
+ { "path": ["familyName"], "display": [{ "name": "Family name", "locale": "en" }] },
+ { "path": ["affiliation"], "display": [{ "name": "Affiliation", "locale": "en" }] }
++ ]
++ }
++ },
++ "GeantIncubatorDiploma_W3C": {
++ "format": "vc+sd-jwt",
++ "scope": "GeantIncubatorDiploma_W3C",
++ "_issuance_configuration": {
++ "oidfed": false
++ },
++ "cryptographic_binding_methods_supported": ["did:jwk", "jwk"],
++ "credential_signing_alg_values_supported": ["ES256"],
++ "proof_types_supported": {
++ "jwt": {
++ "proof_signing_alg_values_supported": ["ES256", "ES384", "ES512"]
++ }
++ },
++ "credential_definition": {
++ "@context": [
++ "https://www.w3.org/ns/credentials/v2",
++ "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C"
++ ],
++ "type": [
++ "VerifiableCredential",
++ "GeantIncubatorDiploma_W3C"
++ ],
++ "name": [
++ { "@value": "Incubator Diploma", "@language": "en" },
++ { "@value": "Inkubaattorin tutkinto", "@language": "fi" }
++ ],
++ "description": [
++ { "@value": "Diploma issued by the Trust and Identity Incubator", "@language": "en" },
++ { "@value": "Trust and Identity Incubatorin myöntämä tutkinto", "@language": "fi" }
++ ],
++ "credentialSchema": {
++ "id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C.schema.json",
++ "type": "JsonSchema"
++ },
++ "termsOfUse": {
++ "id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C/terms",
++ "type": "IncubatorTermsOfUse"
++ },
++ "relatedResource": [
++ {
++ "id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C",
++ "digestSRI": "sha384-eIeXcHH79JdWiST9HYUoE0335npS6oIKV74bzZVqQUHWOH+v+7S+x/GLe57eCORS"
++ },
++ {
++ "id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C.schema.json",
++ "digestSRI": "sha384-5V21oQMDqipY/5lAXLyVIeL6+YnCC0fzWfcxPiiFpgddZFezHla6qpfWCkv12Qut"
++ }
++ ],
++ "evidence": {
++ "id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C/evidence",
++ "type": "Evidence",
++ "description": "Completion of the incubator programme, confirmed by the incubator board"
++ }
++ },
++ "credential_metadata": {
++ "display": [
++ {
++ "name": "Incubator Diploma, W3C",
++ "locale": "en",
++ "description": "Diploma issued by the Trust and Identity Incubator"
++ }
++ ],
++ "claims": [
++ { "path": ["credentialSubject","diploma"], "display": [{ "name": "Diploma", "locale": "en" }] },
++ { "path": ["credentialSubject","mail"], "display": [{ "name": "Email", "locale": "en" }] },
++ { "path": ["credentialSubject","eppn"], "display": [{ "name": "Principal name", "locale": "en" }] },
++ { "path": ["credentialSubject","givenName"], "display": [{ "name": "Given names", "locale": "en" }] },
++ { "path": ["credentialSubject","familyName"], "display": [{ "name": "Family name", "locale": "en" }] },
++ { "path": ["credentialSubject","affiliation"], "display": [{ "name": "Affiliation", "locale": "en" }] }
+ ]
+ }
+ },
+ "GeantIncubatorDiploma_DIDWEB": {
+ "format": "dc+sd-jwt",
+ "vct": "GeantIncubatorDiploma_DIDWEB",
+ "scope": "GeantIncubatorDiploma_DIDWEB",
+ "cryptographic_binding_methods_supported": ["did:jwk", "jwk"],
+ "credential_signing_alg_values_supported": ["ES256"],
+ "proof_types_supported": {
+ "jwt": {
+ "proof_signing_alg_values_supported": ["ES256", "ES384", "ES512"]
+ }
+ },
+ "_issuance_configuration": {
+ "issuer": "did:web",
+ "oidfed": false
+ },
+ "credential_metadata": {
+ "display": [
+ { "name": "Incubator Diploma, did:web", "locale": "en" }
+ ],
+ "claims": [
+ { "path": ["diploma"], "display": [{ "name": "Diploma", "locale": "en" }] },
+ { "path": ["mail"], "display": [{ "name": "Email", "locale": "en" }] },
+ { "path": ["eppn"], "display": [{ "name": "Principal name", "locale": "en" }] },
+ { "path": ["givenName"], "display": [{ "name": "Given names", "locale": "en" }] },
+ { "path": ["familyName"], "display": [{ "name": "Family name", "locale": "en" }] },
+ { "path": ["affiliation"], "display": [{ "name": "Affiliation", "locale": "en" }] }
+ ]
+ }
+ },
+ "GeantIncubatorDiploma_URL": {
+ "format": "dc+sd-jwt",
+ "vct": "GeantIncubatorDiploma_URL",
+ "scope": "GeantIncubatorDiploma_URL",
+ "cryptographic_binding_methods_supported": ["did:jwk", "jwk"],
+ "credential_signing_alg_values_supported": ["ES256"],
+ "proof_types_supported": {
+ "jwt": {
+ "proof_signing_alg_values_supported": ["ES256", "ES384", "ES512"]
+ }
+ },
+ "_issuance_configuration": {
+ "issuer": "url"
+ },
+ "credential_metadata": {
+ "display": [
+ { "name": "Incubator Diploma, url", "locale": "en" }
+ ],
+ "claims": [
+ { "path": ["diploma"], "display": [{ "name": "Diploma", "locale": "en" }] },
+ { "path": ["mail"], "display": [{ "name": "Email", "locale": "en" }] },
+ { "path": ["eppn"], "display": [{ "name": "Principal name", "locale": "en" }] },
+ { "path": ["givenName"], "display": [{ "name": "Given names", "locale": "en" }] },
+ { "path": ["familyName"], "display": [{ "name": "Family name", "locale": "en" }] },
+ { "path": ["affiliation"], "display": [{ "name": "Affiliation", "locale": "en" }] }
+ ]
+ }
+ }
+ }
+ }
+```
+
+Full file: [metadata/verifiable-credentials.json](docs/example/step-5/metadata/verifiable-credentials.json)
+
+</details>
+
+The [`@context`](https://www.w3.org/TR/vc-data-model-2.0/#contexts) of a `vc+sd-jwt` credential
+has two entries and both have to resolve. The first is the
+[VCDM 2.0 base context](https://www.w3.org/TR/vc-data-model-2.0/#base-context) of W3C, always
+first, which defines the standard members of a credential. The second is yours. It defines the
+claims of your `credentialSubject`, and you publish it yourself as a static file:
+
+<details>
+<summary>webapps/root/credentials/GeantIncubatorDiploma_W3C.json</summary>
+
+```json
+{
+ "@context": {
+ "diploma": "https://vocabulary.example.org/terms#diploma",
+ "mail": "https://vocabulary.example.org/terms#mail",
+ "eppn": "https://vocabulary.example.org/terms#eppn",
+ "givenName": "https://vocabulary.example.org/terms#givenName",
+ "familyName": "https://vocabulary.example.org/terms#familyName",
+ "affiliation": "https://vocabulary.example.org/terms#affiliation"
+ }
+}
+```
+
+Full file: [webapps/root/credentials/GeantIncubatorDiploma_W3C.json](docs/example/step-5/webapps/root/credentials/GeantIncubatorDiploma_W3C.json)
+
+</details>
+
+Publish it at the URL specified in `@context` with the rewrite rule below.
+
+`@context` and [`type`](https://www.w3.org/TR/vc-data-model-2.0/#types) are required and
+published. The following members are optional and appear only in the credential. You define their
+contents, and the plugin copies them unchanged into every credential.
+
+| Member | Here |
+|---|---|
+| [`name`](https://www.w3.org/TR/vc-data-model-2.0/#names-and-descriptions) | Name in English and Finnish, as [language value objects](https://www.w3.org/TR/vc-data-model-2.0/#language-and-base-direction) |
+| [`description`](https://www.w3.org/TR/vc-data-model-2.0/#names-and-descriptions) | Description in English and Finnish, as [language value objects](https://www.w3.org/TR/vc-data-model-2.0/#language-and-base-direction) |
+| [`credentialSchema`](https://www.w3.org/TR/vc-data-model-2.0/#data-schemas) | A [JSON Schema](https://www.w3.org/TR/vc-json-schema/#jsonschema) of the credential, a static file next to the context |
+| [`termsOfUse`](https://www.w3.org/TR/vc-data-model-2.0/#terms-of-use) | A policy of your own, VCDM defines no types for it |
+| [`relatedResource`](https://www.w3.org/TR/vc-data-model-2.0/#integrity-of-related-resources) | [Subresource Integrity](https://www.w3.org/TR/SRI/) digests of the context and the schema |
+| [`evidence`](https://www.w3.org/TR/vc-data-model-2.0/#evidence) | How the diploma was granted; the same for everyone |
+
+The plugin adds [`id`](https://www.w3.org/TR/vc-data-model-2.0/#identifiers), [`issuer`](https://www.w3.org/TR/vc-data-model-2.0/#issuer),
+[`validFrom` and `validUntil`](https://www.w3.org/TR/vc-data-model-2.0/#validity-period) and
+[`credentialSubject`](https://www.w3.org/TR/vc-data-model-2.0/#credential-subject) itself. You cannot configure these members. `termsOfUse` is
+the only member that both you and the plugin can set, see below. See
+[Credential Configuration settings](#credential-configuration-settings) for the full list.
+
+The example schema:
+
+<details>
+<summary>webapps/root/credentials/GeantIncubatorDiploma_W3C.schema.json</summary>
+
+```json
+{
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "$id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C.schema.json",
+ "title": "Incubator Diploma, W3C",
+ "type": "object",
+ "required": ["@context", "type", "issuer", "credentialSubject"],
+ "properties": {
+ "type": {
+ "type": "array",
+ "contains": { "const": "GeantIncubatorDiploma_W3C" }
+ },
+ "credentialSubject": {
+ "type": "object",
+ "properties": {
+ "diploma": { "type": "string" },
+ "mail": { "type": "string" },
+ "eppn": { "type": "string" },
+ "givenName": { "type": "string" },
+ "familyName": { "type": "string" },
+ "affiliation": { "type": "string" }
+ }
+ }
+ }
+}
+```
+
+Full file: [webapps/root/credentials/GeantIncubatorDiploma_W3C.schema.json](docs/example/step-5/webapps/root/credentials/GeantIncubatorDiploma_W3C.schema.json)
+
+</details>
+
+A `vc+sd-jwt` credential in the federation of
+[Step 4](#step-4-make-the-url-credential-an-openid-federation-credential) carries the Entity Identifier as
+[`termsOfUse`](https://www.w3.org/TR/vc-data-model-2.0/#terms-of-use):
+
+```json
+{
+ "termsOfUse": {
+ "type": "OpenIDFederation",
+ "policyId": "https://issuer.example.org"
}
}
```
@@ -3032,37 +2879,260 @@ the federation entry first:
The W3C credential of this story is `oidfed: false`, so it carries only its own `termsOfUse`.
-`display_name` and `logo_uri` of the federation entity are filled from Credential Issuer
-metadata. Set `openidvci.oidfed.decorateFederationEntity = false` to state them in the
-metadata file of the federation module instead.
+<details>
+<summary>etc/jetty-rewrite-rules.xml</summary>
+
+```diff
+ <?xml version="1.0"?>
+ <!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://jetty.org/configure_10_0.dtd">
+ <Configure id="Rewrite" class="org.eclipse.jetty.rewrite.handler.RuleContainer">
+ <!-- Credential Issuer metadata -->
+ <Call name="addRule">
+ <Arg>
+ <New class="org.eclipse.jetty.rewrite.handler.RewritePatternRule">
+ <Set name="pattern">/.well-known/openid-credential-issuer</Set>
+ <Set name="replacement">/idp/profile/openid/vci/issuer-metadata</Set>
+ </New>
+ </Arg>
+ </Call>
+ <!-- Authorization server metadata -->
+ <Call name="addRule">
+ <Arg>
+ <New class="org.eclipse.jetty.rewrite.handler.RewritePatternRule">
+ <Set name="pattern">/.well-known/oauth-authorization-server</Set>
+ <Set name="replacement">/idp/profile/oauth/authorization-server</Set>
+ </New>
+ </Arg>
+ </Call>
+ <!-- OP metadata, of the OP plugin -->
+ <Call name="addRule">
+ <Arg>
+ <New class="org.eclipse.jetty.rewrite.handler.RewritePatternRule">
+ <Set name="pattern">/.well-known/openid-configuration</Set>
+ <Set name="replacement">/idp/profile/oidc/configuration</Set>
++ </New>
++ </Arg>
++ </Call>
++ <!-- The JSON-LD context of the vc+sd-jwt credential is a static file of Jetty -->
++ <Call name="addRule">
++ <Arg>
++ <New class="org.eclipse.jetty.rewrite.handler.RewritePatternRule">
++ <Set name="pattern">/credentials/GeantIncubatorDiploma_W3C</Set>
++ <Set name="replacement">/credentials/GeantIncubatorDiploma_W3C.json</Set>
+ </New>
+ </Arg>
+ </Call>
+ <!-- The did:web document -->
+ <Call name="addRule">
+ <Arg>
+ <New class="org.eclipse.jetty.rewrite.handler.RewritePatternRule">
+ <Set name="pattern">/.well-known/did.json</Set>
+ <Set name="replacement">/idp/profile/did/document</Set>
+ </New>
+ </Arg>
+ </Call>
+ <!-- JWT VC issuer metadata -->
+ <Call name="addRule">
+ <Arg>
+ <New class="org.eclipse.jetty.rewrite.handler.RewritePatternRule">
+ <Set name="pattern">/.well-known/jwt-vc-issuer</Set>
+ <Set name="replacement">/idp/profile/oauth/jwt-vc-issuer</Set>
+ </New>
+ </Arg>
+ </Call>
+ <!-- Entity Configuration, of the federation plugin -->
+ <Call name="addRule">
+ <Arg>
+ <New class="org.eclipse.jetty.rewrite.handler.RewritePatternRule">
+ <Set name="pattern">/.well-known/openid-federation</Set>
+ <Set name="replacement">/idp/profile/oidfed/entity-configuration</Set>
+ </New>
+ </Arg>
+ </Call>
+ <!-- Wallets running in a browser need this -->
+ <Call name="addRule">
+ <Arg>
+ <New class="org.eclipse.jetty.rewrite.handler.HeaderPatternRule">
+ <Set name="pattern">/*</Set>
+ <Set name="headerName">Access-Control-Allow-Origin</Set>
+ <Set name="headerValue">*</Set>
+ </New>
+ </Arg>
+ </Call>
+ </Configure>
+```
+
+Full file: [etc/jetty-rewrite-rules.xml](docs/example/step-5/etc/jetty-rewrite-rules.xml)
+
+</details>
+
+<details>
+<summary>metadata/oidc-client.json</summary>
+
+```diff
+ [
+ {
+ "client_id": "offer-caller",
+ "client_name": "Credential offer caller",
+ "client_secret": "CHANGE-ME"
+ },
+ {
+ "client_id": "offer-caller/wallet",
+ "client_name": "Wallets redeeming a pre-authorized code minted by offer-caller",
+ "token_endpoint_auth_method": "none",
+ "grant_types": ["urn:ietf:params:oauth:grant-type:pre-authorized_code"]
+ },
+ {
+ "client_id": "id.animo.paradym",
+ "client_name": "Paradym Wallet",
+ "redirect_uris": ["https://paradym.id/invitation/redirect"],
+- "scope": "openid GeantIncubatorDiploma_SDJWT GeantIncubatorDiploma_DIDWEB GeantIncubatorDiploma_URL",
++ "scope": "openid GeantIncubatorDiploma_SDJWT GeantIncubatorDiploma_W3C GeantIncubatorDiploma_DIDWEB GeantIncubatorDiploma_URL",
+ "audience": [
+ "https://issuer.example.org"
+ ],
+ "token_endpoint_auth_method": "none",
+ "response_types": ["code"],
+ "grant_types": [
+ "authorization_code",
+ "urn:ietf:params:oauth:grant-type:pre-authorized_code"
+ ]
+ },
+ {
+ "client_id": "wallet-dev",
+ "client_name": "TOPPAN Wallet",
+ "redirect_uris": ["walletapp-goid-openid4vci-callback://authorization"],
+ "scope": "openid GeantIncubatorDiploma_URL",
+ "audience": [
+ "https://issuer.example.org"
+ ],
+ "token_endpoint_auth_method": "none",
+ "response_types": ["code"],
+ "grant_types": ["authorization_code"]
+ }
+ ]
+```
+
+Full file: [metadata/oidc-client.json](docs/example/step-5/metadata/oidc-client.json)
+
+</details>
+
+<details>
+<summary>static/oauth-authorization-server.json</summary>
+
+```diff
+ {
+ "issuer":"$issuer",
+ "authorization_endpoint":"$baseUrl/idp/profile/oidc/authorize",
+ "pushed_authorization_request_endpoint":"$baseUrl/idp/profile/oauth2/pushed-authorization",
+ "require_pushed_authorization_requests":true,
+ "token_endpoint":"$baseUrl/idp/profile/openid/vci/token",
+ "jwks_uri":"$baseUrl/idp/profile/oidc/keyset",
+ "token_endpoint_auth_methods_supported":[
+ "none"
+ ],
+ "response_types_supported":[
+ "code"
+ ],
+ "grant_types_supported":[
+ "authorization_code",
+ "urn:ietf:params:oauth:grant-type:pre-authorized_code"
+ ],
+ "code_challenge_methods_supported":[
+ "S256"
+ ],
+ "dpop_signing_alg_values_supported":[
+ "ES256",
+ "ES384",
+ "ES512",
+ "PS256",
+ "PS384",
+ "PS512"
+ ],
+ "scopes_supported":[
+ "openid",
+ "GeantIncubatorDiploma_SDJWT",
++ "GeantIncubatorDiploma_W3C",
+ "GeantIncubatorDiploma_DIDWEB",
+ "GeantIncubatorDiploma_URL"
+ ],
+ "authorization_details_types_supported":[
+ "openid_credential"
+ ]
+ }
+```
+
+Full file: [static/oauth-authorization-server.json](docs/example/step-5/static/oauth-authorization-server.json)
+
+</details>
+
+Add a second encoder to the attribute of Step 1 in *conf/attribute-resolver.xml*:
+
+```diff
+ <AttributeEncoder xsi:type="oidc:OIDCString" name="GeantIncubatorDiploma_SDJWT" />
++ <AttributeEncoder xsi:type="oidc:OIDCString" name="GeantIncubatorDiploma_W3C" />
+ </AttributeDefinition>
+```
+
+One attribute serves both credentials. Each `AttributeEncoder` creates a claim with the name of the
+encoder, so the wallet gets the same claims with either configuration ID, and you write the script
+only once.
+
+A Credential Offer of the W3C credential has the same flat paths as one of `dc+sd-jwt`. The plugin
+adds the `credentialSubject` nesting when it builds the credential:
+
+<details>
+<summary>Example of asking for a credential offer</summary>
+
+```bash
+curl -u 'offer-caller:CHANGE-ME' \
+ -H 'Content-Type: application/json' \
+ https://issuer.example.org/idp/profile/openid/vci/credential-offer \
+ -d '{
+ "preAuthorizedCredentials": {
+ "GeantIncubatorDiploma_W3C": [
+ { "path": ["diploma"], "value": "Scrum Master" },
+ { "path": ["mail"], "value": "gemma.erasmus at example.org" },
+ { "path": ["eppn"], "value": "gemmaer at example.org" },
+ { "path": ["givenName"], "value": "Gemma Gemina" },
+ { "path": ["familyName"], "value": "Erasmus" },
+ { "path": ["affiliation"], "value": "member" }
+ ]
+ }
+}'
+```
+
+</details>
+
### What we have now
-Steps 1 to 4 make the DIIP setup we tested:
+Steps 1 to 5 make the DIIP setup we tested:
| Credential | Issuer | Key found from | Federation | Wallet |
|---|---|---|---|---|
-| `GeantIncubatorDiploma_SDJWT`, `_W3C` | `did:jwk:…` | the identifier | no | Paradym |
+| `GeantIncubatorDiploma_SDJWT` | `did:jwk:…` | the identifier | no | Paradym |
| `GeantIncubatorDiploma_DIDWEB` | `did:web:issuer.example.org` | `/.well-known/did.json` | no | Paradym |
| `GeantIncubatorDiploma_URL` | `https://issuer.example.org` | `/.well-known/jwt-vc-issuer`, the Entity Configuration | yes | TOPPAN |
+| `GeantIncubatorDiploma_W3C` | `did:jwk:…` | the identifier | no | Paradym |
All of them are signed with the EC key of the OP. The files are in
-[docs/example/step-4](docs/example/step-4).
+[docs/example/step-5](docs/example/step-5).
-### Step 5: A HAIP setup
+### Step 6: A HAIP setup
This step is a HAIP setup with two credentials for a HAIP wallet. HAIP takes a credential as
SD-JWT VC or as ISO mdoc, see
[HAIP 1.0](https://openid.net/specs/openid4vc-high-assurance-interoperability-profile-1_0-final.html#vc-profiles).
This step has one of each.
-This setup does not build on Steps 2–4. Start again from Step 1 and keep the general parts:
+This setup does not build on Steps 2–5. Start again from Step 1 and keep the general parts:
installation, [Metadata endpoints](#metadata-endpoints), the client `offer-caller`, the attribute
definition and the [Status List](#status-list). Do not include the credential configurations, the Paradym client, or the pre-authorized code flow
wallet client, `offer-caller/wallet`. That client authenticates with `none`, whereas the wallets in this
setup authenticate with a Wallet Attestation. The diffs below show the changes to the Step 1 files.
-In theory, one IdP can run both the DIIP setup from Steps 1–4 and this HAIP setup at the same time.
+In theory, one IdP can run both the DIIP setup from Steps 1–5 and this HAIP setup at the same time.
In practice, this gets complicated because the metadata is shared by all clients and credentials,
and wallets act on what the issuer publishes, not on what is registered for them:
@@ -3152,7 +3222,7 @@ Status List signer signs the Status List Tokens:
</beans>
```
-Full file: [conf/openid-vci-credentials.xml](docs/example/step-5/conf/openid-vci-credentials.xml)
+Full file: [conf/openid-vci-credentials.xml](docs/example/step-6/conf/openid-vci-credentials.xml)
</details>
@@ -3225,75 +3295,6 @@ attestation required:
- { "path": ["givenName"], "display": [{ "name": "Given names", "locale": "en" }] },
- { "path": ["familyName"], "display": [{ "name": "Family name", "locale": "en" }] },
- { "path": ["affiliation"], "display": [{ "name": "Affiliation", "locale": "en" }] }
-- ]
-- }
-- },
-- "GeantIncubatorDiploma_W3C": {
-- "format": "vc+sd-jwt",
-- "scope": "GeantIncubatorDiploma_W3C",
-- "cryptographic_binding_methods_supported": ["did:jwk", "jwk"],
-- "credential_signing_alg_values_supported": ["ES256"],
-- "proof_types_supported": {
-- "jwt": {
-- "proof_signing_alg_values_supported": ["ES256", "ES384", "ES512"]
-- }
-- },
-- "credential_definition": {
-- "@context": [
-- "https://www.w3.org/ns/credentials/v2",
-- "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C"
-- ],
-- "type": [
-- "VerifiableCredential",
-- "GeantIncubatorDiploma_W3C"
-- ],
-- "name": [
-- { "@value": "Incubator Diploma", "@language": "en" },
-- { "@value": "Inkubaattorin tutkinto", "@language": "fi" }
-- ],
-- "description": [
-- { "@value": "Diploma issued by the Trust and Identity Incubator", "@language": "en" },
-- { "@value": "Trust and Identity Incubatorin myöntämä tutkinto", "@language": "fi" }
-- ],
-- "credentialSchema": {
-- "id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C.schema.json",
-- "type": "JsonSchema"
-- },
-- "termsOfUse": {
-- "id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C/terms",
-- "type": "IncubatorTermsOfUse"
-- },
-- "relatedResource": [
-- {
-- "id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C",
-- "digestSRI": "sha384-eIeXcHH79JdWiST9HYUoE0335npS6oIKV74bzZVqQUHWOH+v+7S+x/GLe57eCORS"
-- },
-- {
-- "id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C.schema.json",
-- "digestSRI": "sha384-5V21oQMDqipY/5lAXLyVIeL6+YnCC0fzWfcxPiiFpgddZFezHla6qpfWCkv12Qut"
-- }
-- ],
-- "evidence": {
-- "id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C/evidence",
-- "type": "Evidence",
-- "description": "Completion of the incubator programme, confirmed by the incubator board"
-- }
-- },
-- "credential_metadata": {
-- "display": [
-- {
-- "name": "Incubator Diploma, W3C",
-- "locale": "en",
-- "description": "Diploma issued by the Trust and Identity Incubator"
-- }
-- ],
-- "claims": [
-- { "path": ["credentialSubject","diploma"], "display": [{ "name": "Diploma", "locale": "en" }] },
-- { "path": ["credentialSubject","mail"], "display": [{ "name": "Email", "locale": "en" }] },
-- { "path": ["credentialSubject","eppn"], "display": [{ "name": "Principal name", "locale": "en" }] },
-- { "path": ["credentialSubject","givenName"], "display": [{ "name": "Given names", "locale": "en" }] },
-- { "path": ["credentialSubject","familyName"], "display": [{ "name": "Family name", "locale": "en" }] },
-- { "path": ["credentialSubject","affiliation"], "display": [{ "name": "Affiliation", "locale": "en" }] }
+ { "path": ["givenName"], "display": [{ "name": "Given names", "locale": "en" }] },
+ { "path": ["familyName"], "display": [{ "name": "Family name", "locale": "en" }] },
+ { "path": ["affiliation"], "display": [{ "name": "Affiliation", "locale": "en" }] }
@@ -3304,7 +3305,7 @@ attestation required:
}
```
-Full file: [metadata/verifiable-credentials.json](docs/example/step-5/metadata/verifiable-credentials.json)
+Full file: [metadata/verifiable-credentials.json](docs/example/step-6/metadata/verifiable-credentials.json)
</details>
@@ -3422,7 +3423,7 @@ change that.
}
```
-Full file: [metadata/verifiable-credentials.json](docs/example/step-5/metadata/verifiable-credentials.json)
+Full file: [metadata/verifiable-credentials.json](docs/example/step-6/metadata/verifiable-credentials.json)
</details>
@@ -3508,7 +3509,7 @@ Paradym policy of Step 1.
</AttributeFilterPolicyGroup>
```
-Full file: [conf/attribute-filter.xml](docs/example/step-5/conf/attribute-filter.xml)
+Full file: [conf/attribute-filter.xml](docs/example/step-6/conf/attribute-filter.xml)
</details>
@@ -3522,7 +3523,7 @@ need to trust the certificate of the wallet provider’s attester CA. In our tes
Wallet got its attestations from the EUDI wallet provider, https://wallet-provider.eudiw.dev. Its CA is
*PID Issuer CA 02, EUDI Wallet Reference Implementation, EU*, a root, with SHA-256 fingerprint
`3B:0A:22:3E:87:48:F3:C4:22:17:29:8A:D9:05:EC:F1:A1:04:E7:3C:D2:C5:4F:F2:1D:A1:6F:DA:80:70:B2:97`.
-Copy [credentials/eudiw-pid-issuer-ca02.crt](docs/example/step-5/credentials/eudiw-pid-issuer-ca02.crt)
+Copy [credentials/eudiw-pid-issuer-ca02.crt](docs/example/step-6/credentials/eudiw-pid-issuer-ca02.crt)
to *credentials/*. The same certificate is available in the wallet source code as
[Wallet/Certificate/pidissuerca02_eu.der](https://github.com/hopae-official/hopae-eudi-ref-wallet/tree/main/Wallet/Certificate)
and at https://preprod.pki.eudiw.dev/aia/PIDIssuerCA02-EU.cacert.pem. Add it as a trust anchor in
@@ -3542,7 +3543,7 @@ and at https://preprod.pki.eudiw.dev/aia/PIDIssuerCA02-EU.cacert.pem. Add it as
</util:list>
```
-Full file: [conf/global.xml](docs/example/step-5/conf/global.xml)
+Full file: [conf/global.xml](docs/example/step-6/conf/global.xml)
The plugin checks key attestation for every credential that has `key_attestations_required`. Without
trust anchors, such a request is rejected. For the conformance suite, add its attester CA certificate
@@ -3623,7 +3624,7 @@ provider gave the Hopae EUDI Wallet the client ID `eudiw-abca`. Configure it in
- "client_id": "id.animo.paradym",
- "client_name": "Paradym Wallet",
- "redirect_uris": ["https://paradym.id/invitation/redirect"],
-- "scope": "openid GeantIncubatorDiploma_SDJWT GeantIncubatorDiploma_W3C",
+- "scope": "openid GeantIncubatorDiploma_SDJWT",
- "audience": [
- "https://issuer.example.org"
- ],
@@ -3644,7 +3645,7 @@ provider gave the Hopae EUDI Wallet the client ID `eudiw-abca`. Configure it in
]
```
-Full file: [metadata/oidc-client.json](docs/example/step-5/metadata/oidc-client.json)
+Full file: [metadata/oidc-client.json](docs/example/step-6/metadata/oidc-client.json)
</details>
@@ -3757,7 +3758,7 @@ for PKCE, PAR and `iss`. Both token and PAR endpoints take the Wallet Attestatio
</beans>
```
-Full file: [conf/relying-party.xml](docs/example/step-5/conf/relying-party.xml)
+Full file: [conf/relying-party.xml](docs/example/step-6/conf/relying-party.xml)
</details>
@@ -3816,8 +3817,7 @@ pre-authorized code:
],
"scopes_supported":[
"openid",
-- "GeantIncubatorDiploma_SDJWT",
-- "GeantIncubatorDiploma_W3C"
+- "GeantIncubatorDiploma_SDJWT"
+ "GeantIncubatorDiploma_HAIP",
+ "GeantIncubatorDiploma_MDOC"
],
@@ -3827,15 +3827,15 @@ pre-authorized code:
}
```
-Full file: [static/oauth-authorization-server.json](docs/example/step-5/static/oauth-authorization-server.json)
+Full file: [static/oauth-authorization-server.json](docs/example/step-6/static/oauth-authorization-server.json)
</details>
-### Step 6: Rolling the signing key
+### Step 7: Rolling the signing key
This applies to both setups:
-- the DIIP setup (Steps 1–4)
-- the HAIP setup (Step 5)
+- the DIIP setup (Steps 1–5)
+- the HAIP setup (Step 6)
#### Publish the new key before using it
@@ -3874,7 +3874,7 @@ longer served, the endpoint answers `404 unknown_status_list`.
Change the signing key for Status List Tokens in the same way, using
**openidvci.status-list.SigningCredentials**. Status List Tokens may have a key of their own, as in
-[Step 5](#certificate-chain). While any credential is did:jwk, keep the keys that signed them in
+[Step 6](#certificate-chain). While any credential is did:jwk, keep the keys that signed them in
that list too.
#### Apply the configuration changes
@@ -4276,7 +4276,7 @@ Foundation conformance suite, the mdoc with the EUDI Reference Wallet and the co
</details>
-The remaining settings are the same as those for [The mdoc credential](#the-mdoc-credential) in Step 5.
+The remaining settings are the same as those for [The mdoc credential](#the-mdoc-credential) in Step 6.
The new points here are:
- A `claim_types` path is a Claims Path Pointer, just like the paths in the metadata. It specifies
@@ -4547,7 +4547,7 @@ The places to configure, in order:
The token endpoint is the token endpoint of the OP plugin with the pre-authorized code grant added.
Two of its features matter for credentials: refresh tokens, and attribute resolution at the token
-endpoint. Of the steps above only [Step 5](#step-5-a-haip-setup) uses refresh tokens.
+endpoint. Of the steps above only [Step 6](#step-6-a-haip-setup) uses refresh tokens.
### Refresh tokens
@@ -4998,7 +4998,7 @@ A list replaces the OP’s credentials; it does not add to them. The first key t
algorithm is used for signing. The other keys are published in the `did:web` document and the Entity Configuration.
They also sign the Status List Tokens of the `did:jwk` credentials they signed. Only EC keys are supported. A key with
certificates includes `x5c` when the issuer is an HTTPS URL. See
-[Step 6](#step-6-rolling-the-signing-key).
+[Step 7](#step-7-rolling-the-signing-key).
### Beans
@@ -5314,7 +5314,7 @@ Add the credential configuration IDs to `scopes_supported`. For Wallet Attestati
</details>
The complete *etc/jetty-rewrite-rules.xml* file for the DIIP setup: [etc/jetty-rewrite-rules.xml](docs/example/step-4/etc/jetty-rewrite-rules.xml).
-The HAIP setup of Step 5 has only the rules of Step 1: [etc/jetty-rewrite-rules.xml](docs/example/step-5/etc/jetty-rewrite-rules.xml).
+The HAIP setup of Step 6 has only the rules of Step 1: [etc/jetty-rewrite-rules.xml](docs/example/step-6/etc/jetty-rewrite-rules.xml).
### Relying party configuration
@@ -5323,4 +5323,4 @@ The HAIP setup of Step 5 has only the rules of Step 1: [etc/jetty-rewrite-rules.
The *conf/relying-party.xml* file for the DIIP setup described in
[First installation, by example](#first-installation-by-example) is available [here](docs/example/step-4/conf/relying-party.xml).
-The file for the HAIP setup is available [here](docs/example/step-5/conf/relying-party.xml).
+The file for the HAIP setup is available [here](docs/example/step-6/conf/relying-party.xml).
diff --git a/docs/example/step-1/etc/jetty-rewrite-rules.xml b/docs/example/step-1/etc/jetty-rewrite-rules.xml
index d7017ac..80f0c9a 100644
--- a/docs/example/step-1/etc/jetty-rewrite-rules.xml
+++ b/docs/example/step-1/etc/jetty-rewrite-rules.xml
@@ -28,15 +28,6 @@
</New>
</Arg>
</Call>
- <!-- The JSON-LD context of the vc+sd-jwt credential is a static file of Jetty -->
- <Call name="addRule">
- <Arg>
- <New class="org.eclipse.jetty.rewrite.handler.RewritePatternRule">
- <Set name="pattern">/credentials/GeantIncubatorDiploma_W3C</Set>
- <Set name="replacement">/credentials/GeantIncubatorDiploma_W3C.json</Set>
- </New>
- </Arg>
- </Call>
<!-- Wallets running in a browser need this -->
<Call name="addRule">
<Arg>
diff --git a/docs/example/step-1/metadata/oidc-client.json b/docs/example/step-1/metadata/oidc-client.json
index 2aba01c..f608f4b 100644
--- a/docs/example/step-1/metadata/oidc-client.json
+++ b/docs/example/step-1/metadata/oidc-client.json
@@ -14,7 +14,7 @@
"client_id": "id.animo.paradym",
"client_name": "Paradym Wallet",
"redirect_uris": ["https://paradym.id/invitation/redirect"],
- "scope": "openid GeantIncubatorDiploma_SDJWT GeantIncubatorDiploma_W3C",
+ "scope": "openid GeantIncubatorDiploma_SDJWT",
"audience": [
"https://issuer.example.org"
],
diff --git a/docs/example/step-1/metadata/verifiable-credentials.json b/docs/example/step-1/metadata/verifiable-credentials.json
index 620908d..7b52ad0 100644
--- a/docs/example/step-1/metadata/verifiable-credentials.json
+++ b/docs/example/step-1/metadata/verifiable-credentials.json
@@ -28,75 +28,6 @@
{ "path": ["affiliation"], "display": [{ "name": "Affiliation", "locale": "en" }] }
]
}
- },
- "GeantIncubatorDiploma_W3C": {
- "format": "vc+sd-jwt",
- "scope": "GeantIncubatorDiploma_W3C",
- "cryptographic_binding_methods_supported": ["did:jwk", "jwk"],
- "credential_signing_alg_values_supported": ["ES256"],
- "proof_types_supported": {
- "jwt": {
- "proof_signing_alg_values_supported": ["ES256", "ES384", "ES512"]
- }
- },
- "credential_definition": {
- "@context": [
- "https://www.w3.org/ns/credentials/v2",
- "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C"
- ],
- "type": [
- "VerifiableCredential",
- "GeantIncubatorDiploma_W3C"
- ],
- "name": [
- { "@value": "Incubator Diploma", "@language": "en" },
- { "@value": "Inkubaattorin tutkinto", "@language": "fi" }
- ],
- "description": [
- { "@value": "Diploma issued by the Trust and Identity Incubator", "@language": "en" },
- { "@value": "Trust and Identity Incubatorin myöntämä tutkinto", "@language": "fi" }
- ],
- "credentialSchema": {
- "id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C.schema.json",
- "type": "JsonSchema"
- },
- "termsOfUse": {
- "id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C/terms",
- "type": "IncubatorTermsOfUse"
- },
- "relatedResource": [
- {
- "id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C",
- "digestSRI": "sha384-eIeXcHH79JdWiST9HYUoE0335npS6oIKV74bzZVqQUHWOH+v+7S+x/GLe57eCORS"
- },
- {
- "id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C.schema.json",
- "digestSRI": "sha384-5V21oQMDqipY/5lAXLyVIeL6+YnCC0fzWfcxPiiFpgddZFezHla6qpfWCkv12Qut"
- }
- ],
- "evidence": {
- "id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C/evidence",
- "type": "Evidence",
- "description": "Completion of the incubator programme, confirmed by the incubator board"
- }
- },
- "credential_metadata": {
- "display": [
- {
- "name": "Incubator Diploma, W3C",
- "locale": "en",
- "description": "Diploma issued by the Trust and Identity Incubator"
- }
- ],
- "claims": [
- { "path": ["credentialSubject","diploma"], "display": [{ "name": "Diploma", "locale": "en" }] },
- { "path": ["credentialSubject","mail"], "display": [{ "name": "Email", "locale": "en" }] },
- { "path": ["credentialSubject","eppn"], "display": [{ "name": "Principal name", "locale": "en" }] },
- { "path": ["credentialSubject","givenName"], "display": [{ "name": "Given names", "locale": "en" }] },
- { "path": ["credentialSubject","familyName"], "display": [{ "name": "Family name", "locale": "en" }] },
- { "path": ["credentialSubject","affiliation"], "display": [{ "name": "Affiliation", "locale": "en" }] }
- ]
- }
}
}
}
diff --git a/docs/example/step-1/static/oauth-authorization-server.json b/docs/example/step-1/static/oauth-authorization-server.json
index fd7ac81..05e475d 100644
--- a/docs/example/step-1/static/oauth-authorization-server.json
+++ b/docs/example/step-1/static/oauth-authorization-server.json
@@ -28,8 +28,7 @@
],
"scopes_supported":[
"openid",
- "GeantIncubatorDiploma_SDJWT",
- "GeantIncubatorDiploma_W3C"
+ "GeantIncubatorDiploma_SDJWT"
],
"authorization_details_types_supported":[
"openid_credential"
diff --git a/docs/example/step-1/webapps/root/credentials/GeantIncubatorDiploma_W3C.json b/docs/example/step-1/webapps/root/credentials/GeantIncubatorDiploma_W3C.json
deleted file mode 100644
index 3f2fb9a..0000000
--- a/docs/example/step-1/webapps/root/credentials/GeantIncubatorDiploma_W3C.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "@context": {
- "diploma": "https://vocabulary.example.org/terms#diploma",
- "mail": "https://vocabulary.example.org/terms#mail",
- "eppn": "https://vocabulary.example.org/terms#eppn",
- "givenName": "https://vocabulary.example.org/terms#givenName",
- "familyName": "https://vocabulary.example.org/terms#familyName",
- "affiliation": "https://vocabulary.example.org/terms#affiliation"
- }
-}
diff --git a/docs/example/step-1/webapps/root/credentials/GeantIncubatorDiploma_W3C.schema.json b/docs/example/step-1/webapps/root/credentials/GeantIncubatorDiploma_W3C.schema.json
deleted file mode 100644
index e8a1863..0000000
--- a/docs/example/step-1/webapps/root/credentials/GeantIncubatorDiploma_W3C.schema.json
+++ /dev/null
@@ -1,24 +0,0 @@
-{
- "$schema": "https://json-schema.org/draft/2020-12/schema",
- "$id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C.schema.json",
- "title": "Incubator Diploma, W3C",
- "type": "object",
- "required": ["@context", "type", "issuer", "credentialSubject"],
- "properties": {
- "type": {
- "type": "array",
- "contains": { "const": "GeantIncubatorDiploma_W3C" }
- },
- "credentialSubject": {
- "type": "object",
- "properties": {
- "diploma": { "type": "string" },
- "mail": { "type": "string" },
- "eppn": { "type": "string" },
- "givenName": { "type": "string" },
- "familyName": { "type": "string" },
- "affiliation": { "type": "string" }
- }
- }
- }
-}
diff --git a/docs/example/step-2/etc/jetty-rewrite-rules.xml b/docs/example/step-2/etc/jetty-rewrite-rules.xml
index ef1ffe6..bbe108d 100644
--- a/docs/example/step-2/etc/jetty-rewrite-rules.xml
+++ b/docs/example/step-2/etc/jetty-rewrite-rules.xml
@@ -28,15 +28,6 @@
</New>
</Arg>
</Call>
- <!-- The JSON-LD context of the vc+sd-jwt credential is a static file of Jetty -->
- <Call name="addRule">
- <Arg>
- <New class="org.eclipse.jetty.rewrite.handler.RewritePatternRule">
- <Set name="pattern">/credentials/GeantIncubatorDiploma_W3C</Set>
- <Set name="replacement">/credentials/GeantIncubatorDiploma_W3C.json</Set>
- </New>
- </Arg>
- </Call>
<!-- The did:web document -->
<Call name="addRule">
<Arg>
diff --git a/docs/example/step-2/metadata/oidc-client.json b/docs/example/step-2/metadata/oidc-client.json
index 8a573e2..722d667 100644
--- a/docs/example/step-2/metadata/oidc-client.json
+++ b/docs/example/step-2/metadata/oidc-client.json
@@ -14,7 +14,7 @@
"client_id": "id.animo.paradym",
"client_name": "Paradym Wallet",
"redirect_uris": ["https://paradym.id/invitation/redirect"],
- "scope": "openid GeantIncubatorDiploma_SDJWT GeantIncubatorDiploma_W3C GeantIncubatorDiploma_DIDWEB",
+ "scope": "openid GeantIncubatorDiploma_SDJWT GeantIncubatorDiploma_DIDWEB",
"audience": [
"https://issuer.example.org"
],
diff --git a/docs/example/step-2/metadata/verifiable-credentials.json b/docs/example/step-2/metadata/verifiable-credentials.json
index c8dc76e..a524103 100644
--- a/docs/example/step-2/metadata/verifiable-credentials.json
+++ b/docs/example/step-2/metadata/verifiable-credentials.json
@@ -29,75 +29,6 @@
]
}
},
- "GeantIncubatorDiploma_W3C": {
- "format": "vc+sd-jwt",
- "scope": "GeantIncubatorDiploma_W3C",
- "cryptographic_binding_methods_supported": ["did:jwk", "jwk"],
- "credential_signing_alg_values_supported": ["ES256"],
- "proof_types_supported": {
- "jwt": {
- "proof_signing_alg_values_supported": ["ES256", "ES384", "ES512"]
- }
- },
- "credential_definition": {
- "@context": [
- "https://www.w3.org/ns/credentials/v2",
- "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C"
- ],
- "type": [
- "VerifiableCredential",
- "GeantIncubatorDiploma_W3C"
- ],
- "name": [
- { "@value": "Incubator Diploma", "@language": "en" },
- { "@value": "Inkubaattorin tutkinto", "@language": "fi" }
- ],
- "description": [
- { "@value": "Diploma issued by the Trust and Identity Incubator", "@language": "en" },
- { "@value": "Trust and Identity Incubatorin myöntämä tutkinto", "@language": "fi" }
- ],
- "credentialSchema": {
- "id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C.schema.json",
- "type": "JsonSchema"
- },
- "termsOfUse": {
- "id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C/terms",
- "type": "IncubatorTermsOfUse"
- },
- "relatedResource": [
- {
- "id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C",
- "digestSRI": "sha384-eIeXcHH79JdWiST9HYUoE0335npS6oIKV74bzZVqQUHWOH+v+7S+x/GLe57eCORS"
- },
- {
- "id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C.schema.json",
- "digestSRI": "sha384-5V21oQMDqipY/5lAXLyVIeL6+YnCC0fzWfcxPiiFpgddZFezHla6qpfWCkv12Qut"
- }
- ],
- "evidence": {
- "id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C/evidence",
- "type": "Evidence",
- "description": "Completion of the incubator programme, confirmed by the incubator board"
- }
- },
- "credential_metadata": {
- "display": [
- {
- "name": "Incubator Diploma, W3C",
- "locale": "en",
- "description": "Diploma issued by the Trust and Identity Incubator"
- }
- ],
- "claims": [
- { "path": ["credentialSubject","diploma"], "display": [{ "name": "Diploma", "locale": "en" }] },
- { "path": ["credentialSubject","mail"], "display": [{ "name": "Email", "locale": "en" }] },
- { "path": ["credentialSubject","eppn"], "display": [{ "name": "Principal name", "locale": "en" }] },
- { "path": ["credentialSubject","givenName"], "display": [{ "name": "Given names", "locale": "en" }] },
- { "path": ["credentialSubject","familyName"], "display": [{ "name": "Family name", "locale": "en" }] },
- { "path": ["credentialSubject","affiliation"], "display": [{ "name": "Affiliation", "locale": "en" }] }
- ]
- }
- },
"GeantIncubatorDiploma_DIDWEB": {
"format": "dc+sd-jwt",
"vct": "GeantIncubatorDiploma_DIDWEB",
diff --git a/docs/example/step-2/static/oauth-authorization-server.json b/docs/example/step-2/static/oauth-authorization-server.json
index 25684d1..f28a4e4 100644
--- a/docs/example/step-2/static/oauth-authorization-server.json
+++ b/docs/example/step-2/static/oauth-authorization-server.json
@@ -29,7 +29,6 @@
"scopes_supported":[
"openid",
"GeantIncubatorDiploma_SDJWT",
- "GeantIncubatorDiploma_W3C",
"GeantIncubatorDiploma_DIDWEB"
],
"authorization_details_types_supported":[
diff --git a/docs/example/step-2/webapps/root/credentials/GeantIncubatorDiploma_W3C.json b/docs/example/step-2/webapps/root/credentials/GeantIncubatorDiploma_W3C.json
deleted file mode 100644
index 3f2fb9a..0000000
--- a/docs/example/step-2/webapps/root/credentials/GeantIncubatorDiploma_W3C.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "@context": {
- "diploma": "https://vocabulary.example.org/terms#diploma",
- "mail": "https://vocabulary.example.org/terms#mail",
- "eppn": "https://vocabulary.example.org/terms#eppn",
- "givenName": "https://vocabulary.example.org/terms#givenName",
- "familyName": "https://vocabulary.example.org/terms#familyName",
- "affiliation": "https://vocabulary.example.org/terms#affiliation"
- }
-}
diff --git a/docs/example/step-2/webapps/root/credentials/GeantIncubatorDiploma_W3C.schema.json b/docs/example/step-2/webapps/root/credentials/GeantIncubatorDiploma_W3C.schema.json
deleted file mode 100644
index e8a1863..0000000
--- a/docs/example/step-2/webapps/root/credentials/GeantIncubatorDiploma_W3C.schema.json
+++ /dev/null
@@ -1,24 +0,0 @@
-{
- "$schema": "https://json-schema.org/draft/2020-12/schema",
- "$id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C.schema.json",
- "title": "Incubator Diploma, W3C",
- "type": "object",
- "required": ["@context", "type", "issuer", "credentialSubject"],
- "properties": {
- "type": {
- "type": "array",
- "contains": { "const": "GeantIncubatorDiploma_W3C" }
- },
- "credentialSubject": {
- "type": "object",
- "properties": {
- "diploma": { "type": "string" },
- "mail": { "type": "string" },
- "eppn": { "type": "string" },
- "givenName": { "type": "string" },
- "familyName": { "type": "string" },
- "affiliation": { "type": "string" }
- }
- }
- }
-}
diff --git a/docs/example/step-3/etc/jetty-rewrite-rules.xml b/docs/example/step-3/etc/jetty-rewrite-rules.xml
index b5b91fa..f4c41cc 100644
--- a/docs/example/step-3/etc/jetty-rewrite-rules.xml
+++ b/docs/example/step-3/etc/jetty-rewrite-rules.xml
@@ -28,15 +28,6 @@
</New>
</Arg>
</Call>
- <!-- The JSON-LD context of the vc+sd-jwt credential is a static file of Jetty -->
- <Call name="addRule">
- <Arg>
- <New class="org.eclipse.jetty.rewrite.handler.RewritePatternRule">
- <Set name="pattern">/credentials/GeantIncubatorDiploma_W3C</Set>
- <Set name="replacement">/credentials/GeantIncubatorDiploma_W3C.json</Set>
- </New>
- </Arg>
- </Call>
<!-- The did:web document -->
<Call name="addRule">
<Arg>
diff --git a/docs/example/step-3/metadata/oidc-client.json b/docs/example/step-3/metadata/oidc-client.json
index 16d3b7a..dbb2422 100644
--- a/docs/example/step-3/metadata/oidc-client.json
+++ b/docs/example/step-3/metadata/oidc-client.json
@@ -14,7 +14,7 @@
"client_id": "id.animo.paradym",
"client_name": "Paradym Wallet",
"redirect_uris": ["https://paradym.id/invitation/redirect"],
- "scope": "openid GeantIncubatorDiploma_SDJWT GeantIncubatorDiploma_W3C GeantIncubatorDiploma_DIDWEB GeantIncubatorDiploma_URL",
+ "scope": "openid GeantIncubatorDiploma_SDJWT GeantIncubatorDiploma_DIDWEB GeantIncubatorDiploma_URL",
"audience": [
"https://issuer.example.org"
],
diff --git a/docs/example/step-3/metadata/verifiable-credentials.json b/docs/example/step-3/metadata/verifiable-credentials.json
index 5c0f72d..725e933 100644
--- a/docs/example/step-3/metadata/verifiable-credentials.json
+++ b/docs/example/step-3/metadata/verifiable-credentials.json
@@ -29,75 +29,6 @@
]
}
},
- "GeantIncubatorDiploma_W3C": {
- "format": "vc+sd-jwt",
- "scope": "GeantIncubatorDiploma_W3C",
- "cryptographic_binding_methods_supported": ["did:jwk", "jwk"],
- "credential_signing_alg_values_supported": ["ES256"],
- "proof_types_supported": {
- "jwt": {
- "proof_signing_alg_values_supported": ["ES256", "ES384", "ES512"]
- }
- },
- "credential_definition": {
- "@context": [
- "https://www.w3.org/ns/credentials/v2",
- "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C"
- ],
- "type": [
- "VerifiableCredential",
- "GeantIncubatorDiploma_W3C"
- ],
- "name": [
- { "@value": "Incubator Diploma", "@language": "en" },
- { "@value": "Inkubaattorin tutkinto", "@language": "fi" }
- ],
- "description": [
- { "@value": "Diploma issued by the Trust and Identity Incubator", "@language": "en" },
- { "@value": "Trust and Identity Incubatorin myöntämä tutkinto", "@language": "fi" }
- ],
- "credentialSchema": {
- "id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C.schema.json",
- "type": "JsonSchema"
- },
- "termsOfUse": {
- "id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C/terms",
- "type": "IncubatorTermsOfUse"
- },
- "relatedResource": [
- {
- "id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C",
- "digestSRI": "sha384-eIeXcHH79JdWiST9HYUoE0335npS6oIKV74bzZVqQUHWOH+v+7S+x/GLe57eCORS"
- },
- {
- "id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C.schema.json",
- "digestSRI": "sha384-5V21oQMDqipY/5lAXLyVIeL6+YnCC0fzWfcxPiiFpgddZFezHla6qpfWCkv12Qut"
- }
- ],
- "evidence": {
- "id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C/evidence",
- "type": "Evidence",
- "description": "Completion of the incubator programme, confirmed by the incubator board"
- }
- },
- "credential_metadata": {
- "display": [
- {
- "name": "Incubator Diploma, W3C",
- "locale": "en",
- "description": "Diploma issued by the Trust and Identity Incubator"
- }
- ],
- "claims": [
- { "path": ["credentialSubject","diploma"], "display": [{ "name": "Diploma", "locale": "en" }] },
- { "path": ["credentialSubject","mail"], "display": [{ "name": "Email", "locale": "en" }] },
- { "path": ["credentialSubject","eppn"], "display": [{ "name": "Principal name", "locale": "en" }] },
- { "path": ["credentialSubject","givenName"], "display": [{ "name": "Given names", "locale": "en" }] },
- { "path": ["credentialSubject","familyName"], "display": [{ "name": "Family name", "locale": "en" }] },
- { "path": ["credentialSubject","affiliation"], "display": [{ "name": "Affiliation", "locale": "en" }] }
- ]
- }
- },
"GeantIncubatorDiploma_DIDWEB": {
"format": "dc+sd-jwt",
"vct": "GeantIncubatorDiploma_DIDWEB",
diff --git a/docs/example/step-3/static/oauth-authorization-server.json b/docs/example/step-3/static/oauth-authorization-server.json
index 6f5ae89..3767eb7 100644
--- a/docs/example/step-3/static/oauth-authorization-server.json
+++ b/docs/example/step-3/static/oauth-authorization-server.json
@@ -29,7 +29,6 @@
"scopes_supported":[
"openid",
"GeantIncubatorDiploma_SDJWT",
- "GeantIncubatorDiploma_W3C",
"GeantIncubatorDiploma_DIDWEB",
"GeantIncubatorDiploma_URL"
],
diff --git a/docs/example/step-3/webapps/root/credentials/GeantIncubatorDiploma_W3C.json b/docs/example/step-3/webapps/root/credentials/GeantIncubatorDiploma_W3C.json
deleted file mode 100644
index 3f2fb9a..0000000
--- a/docs/example/step-3/webapps/root/credentials/GeantIncubatorDiploma_W3C.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "@context": {
- "diploma": "https://vocabulary.example.org/terms#diploma",
- "mail": "https://vocabulary.example.org/terms#mail",
- "eppn": "https://vocabulary.example.org/terms#eppn",
- "givenName": "https://vocabulary.example.org/terms#givenName",
- "familyName": "https://vocabulary.example.org/terms#familyName",
- "affiliation": "https://vocabulary.example.org/terms#affiliation"
- }
-}
diff --git a/docs/example/step-3/webapps/root/credentials/GeantIncubatorDiploma_W3C.schema.json b/docs/example/step-3/webapps/root/credentials/GeantIncubatorDiploma_W3C.schema.json
deleted file mode 100644
index e8a1863..0000000
--- a/docs/example/step-3/webapps/root/credentials/GeantIncubatorDiploma_W3C.schema.json
+++ /dev/null
@@ -1,24 +0,0 @@
-{
- "$schema": "https://json-schema.org/draft/2020-12/schema",
- "$id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C.schema.json",
- "title": "Incubator Diploma, W3C",
- "type": "object",
- "required": ["@context", "type", "issuer", "credentialSubject"],
- "properties": {
- "type": {
- "type": "array",
- "contains": { "const": "GeantIncubatorDiploma_W3C" }
- },
- "credentialSubject": {
- "type": "object",
- "properties": {
- "diploma": { "type": "string" },
- "mail": { "type": "string" },
- "eppn": { "type": "string" },
- "givenName": { "type": "string" },
- "familyName": { "type": "string" },
- "affiliation": { "type": "string" }
- }
- }
- }
-}
diff --git a/docs/example/step-4/etc/jetty-rewrite-rules.xml b/docs/example/step-4/etc/jetty-rewrite-rules.xml
index 9b8ed66..3b0fe1f 100644
--- a/docs/example/step-4/etc/jetty-rewrite-rules.xml
+++ b/docs/example/step-4/etc/jetty-rewrite-rules.xml
@@ -28,15 +28,6 @@
</New>
</Arg>
</Call>
- <!-- The JSON-LD context of the vc+sd-jwt credential is a static file of Jetty -->
- <Call name="addRule">
- <Arg>
- <New class="org.eclipse.jetty.rewrite.handler.RewritePatternRule">
- <Set name="pattern">/credentials/GeantIncubatorDiploma_W3C</Set>
- <Set name="replacement">/credentials/GeantIncubatorDiploma_W3C.json</Set>
- </New>
- </Arg>
- </Call>
<!-- The did:web document -->
<Call name="addRule">
<Arg>
diff --git a/docs/example/step-4/metadata/oidc-client.json b/docs/example/step-4/metadata/oidc-client.json
index 16d3b7a..dbb2422 100644
--- a/docs/example/step-4/metadata/oidc-client.json
+++ b/docs/example/step-4/metadata/oidc-client.json
@@ -14,7 +14,7 @@
"client_id": "id.animo.paradym",
"client_name": "Paradym Wallet",
"redirect_uris": ["https://paradym.id/invitation/redirect"],
- "scope": "openid GeantIncubatorDiploma_SDJWT GeantIncubatorDiploma_W3C GeantIncubatorDiploma_DIDWEB GeantIncubatorDiploma_URL",
+ "scope": "openid GeantIncubatorDiploma_SDJWT GeantIncubatorDiploma_DIDWEB GeantIncubatorDiploma_URL",
"audience": [
"https://issuer.example.org"
],
diff --git a/docs/example/step-4/metadata/verifiable-credentials.json b/docs/example/step-4/metadata/verifiable-credentials.json
index 16482e0..6591401 100644
--- a/docs/example/step-4/metadata/verifiable-credentials.json
+++ b/docs/example/step-4/metadata/verifiable-credentials.json
@@ -32,78 +32,6 @@
]
}
},
- "GeantIncubatorDiploma_W3C": {
- "format": "vc+sd-jwt",
- "scope": "GeantIncubatorDiploma_W3C",
- "_issuance_configuration": {
- "oidfed": false
- },
- "cryptographic_binding_methods_supported": ["did:jwk", "jwk"],
- "credential_signing_alg_values_supported": ["ES256"],
- "proof_types_supported": {
- "jwt": {
- "proof_signing_alg_values_supported": ["ES256", "ES384", "ES512"]
- }
- },
- "credential_definition": {
- "@context": [
- "https://www.w3.org/ns/credentials/v2",
- "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C"
- ],
- "type": [
- "VerifiableCredential",
- "GeantIncubatorDiploma_W3C"
- ],
- "name": [
- { "@value": "Incubator Diploma", "@language": "en" },
- { "@value": "Inkubaattorin tutkinto", "@language": "fi" }
- ],
- "description": [
- { "@value": "Diploma issued by the Trust and Identity Incubator", "@language": "en" },
- { "@value": "Trust and Identity Incubatorin myöntämä tutkinto", "@language": "fi" }
- ],
- "credentialSchema": {
- "id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C.schema.json",
- "type": "JsonSchema"
- },
- "termsOfUse": {
- "id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C/terms",
- "type": "IncubatorTermsOfUse"
- },
- "relatedResource": [
- {
- "id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C",
- "digestSRI": "sha384-eIeXcHH79JdWiST9HYUoE0335npS6oIKV74bzZVqQUHWOH+v+7S+x/GLe57eCORS"
- },
- {
- "id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C.schema.json",
- "digestSRI": "sha384-5V21oQMDqipY/5lAXLyVIeL6+YnCC0fzWfcxPiiFpgddZFezHla6qpfWCkv12Qut"
- }
- ],
- "evidence": {
- "id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C/evidence",
- "type": "Evidence",
- "description": "Completion of the incubator programme, confirmed by the incubator board"
- }
- },
- "credential_metadata": {
- "display": [
- {
- "name": "Incubator Diploma, W3C",
- "locale": "en",
- "description": "Diploma issued by the Trust and Identity Incubator"
- }
- ],
- "claims": [
- { "path": ["credentialSubject","diploma"], "display": [{ "name": "Diploma", "locale": "en" }] },
- { "path": ["credentialSubject","mail"], "display": [{ "name": "Email", "locale": "en" }] },
- { "path": ["credentialSubject","eppn"], "display": [{ "name": "Principal name", "locale": "en" }] },
- { "path": ["credentialSubject","givenName"], "display": [{ "name": "Given names", "locale": "en" }] },
- { "path": ["credentialSubject","familyName"], "display": [{ "name": "Family name", "locale": "en" }] },
- { "path": ["credentialSubject","affiliation"], "display": [{ "name": "Affiliation", "locale": "en" }] }
- ]
- }
- },
"GeantIncubatorDiploma_DIDWEB": {
"format": "dc+sd-jwt",
"vct": "GeantIncubatorDiploma_DIDWEB",
diff --git a/docs/example/step-4/static/oauth-authorization-server.json b/docs/example/step-4/static/oauth-authorization-server.json
index 6f5ae89..3767eb7 100644
--- a/docs/example/step-4/static/oauth-authorization-server.json
+++ b/docs/example/step-4/static/oauth-authorization-server.json
@@ -29,7 +29,6 @@
"scopes_supported":[
"openid",
"GeantIncubatorDiploma_SDJWT",
- "GeantIncubatorDiploma_W3C",
"GeantIncubatorDiploma_DIDWEB",
"GeantIncubatorDiploma_URL"
],
diff --git a/docs/example/step-4/webapps/root/credentials/GeantIncubatorDiploma_W3C.json b/docs/example/step-4/webapps/root/credentials/GeantIncubatorDiploma_W3C.json
deleted file mode 100644
index 3f2fb9a..0000000
--- a/docs/example/step-4/webapps/root/credentials/GeantIncubatorDiploma_W3C.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "@context": {
- "diploma": "https://vocabulary.example.org/terms#diploma",
- "mail": "https://vocabulary.example.org/terms#mail",
- "eppn": "https://vocabulary.example.org/terms#eppn",
- "givenName": "https://vocabulary.example.org/terms#givenName",
- "familyName": "https://vocabulary.example.org/terms#familyName",
- "affiliation": "https://vocabulary.example.org/terms#affiliation"
- }
-}
diff --git a/docs/example/step-4/webapps/root/credentials/GeantIncubatorDiploma_W3C.schema.json b/docs/example/step-4/webapps/root/credentials/GeantIncubatorDiploma_W3C.schema.json
deleted file mode 100644
index e8a1863..0000000
--- a/docs/example/step-4/webapps/root/credentials/GeantIncubatorDiploma_W3C.schema.json
+++ /dev/null
@@ -1,24 +0,0 @@
-{
- "$schema": "https://json-schema.org/draft/2020-12/schema",
- "$id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C.schema.json",
- "title": "Incubator Diploma, W3C",
- "type": "object",
- "required": ["@context", "type", "issuer", "credentialSubject"],
- "properties": {
- "type": {
- "type": "array",
- "contains": { "const": "GeantIncubatorDiploma_W3C" }
- },
- "credentialSubject": {
- "type": "object",
- "properties": {
- "diploma": { "type": "string" },
- "mail": { "type": "string" },
- "eppn": { "type": "string" },
- "givenName": { "type": "string" },
- "familyName": { "type": "string" },
- "affiliation": { "type": "string" }
- }
- }
- }
-}
diff --git a/docs/example/step-5/conf/attribute-filter.xml b/docs/example/step-5/conf/attribute-filter.xml
index 1d86ead..8973aed 100644
--- a/docs/example/step-5/conf/attribute-filter.xml
+++ b/docs/example/step-5/conf/attribute-filter.xml
@@ -4,13 +4,18 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:mace:shibboleth:2.0:afp http://shibboleth.net/schema/idp/shibboleth-afp.xsd">
- <AttributeFilterPolicy id="GeantIncubatorDiplomaToHAIPWallets">
+ <AttributeFilterPolicy id="GeantIncubatorDiplomaToWallets">
<PolicyRequirementRule xsi:type="Requester"
- value="eudiw-abca" />
+ value="id.animo.paradym" />
<AttributeRule attributeID="GeantIncubatorDiploma">
<PermitValueRule xsi:type="ANY" />
</AttributeRule>
- <AttributeRule attributeID="GeantIncubatorDiplomaMdoc">
+ </AttributeFilterPolicy>
+
+ <AttributeFilterPolicy id="GeantIncubatorDiplomaToToppan">
+ <PolicyRequirementRule xsi:type="Requester"
+ value="wallet-dev" />
+ <AttributeRule attributeID="GeantIncubatorDiploma">
<PermitValueRule xsi:type="ANY" />
</AttributeRule>
</AttributeFilterPolicy>
diff --git a/docs/example/step-5/conf/global.xml b/docs/example/step-5/conf/global.xml
deleted file mode 100644
index 4e041b9..0000000
--- a/docs/example/step-5/conf/global.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:context="http://www.springframework.org/schema/context"
- xmlns:util="http://www.springframework.org/schema/util"
- xmlns:p="http://www.springframework.org/schema/p"
- xmlns:c="http://www.springframework.org/schema/c"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
- http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
- http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd"
- default-init-method="initialize"
- default-destroy-method="destroy">
-
- <import resource="openid-vci-credentials.xml"/>
-
- <util:list id="openidvci.KeyAttestationTrustAnchors">
- <bean parent="shibboleth.BasicX509CredentialFactoryBean"
- p:entity="%{idp.home}/credentials/eudiw-pid-issuer-ca02.crt"
- p:certificates="#{{'%{idp.home}/credentials/eudiw-pid-issuer-ca02.crt'}}" />
- </util:list>
-
- <util:list id="openidvci.ClientAttestationTrustAnchors">
- <bean parent="shibboleth.BasicX509CredentialFactoryBean"
- p:entity="%{idp.home}/credentials/eudiw-pid-issuer-ca02.crt"
- p:certificates="#{{'%{idp.home}/credentials/eudiw-pid-issuer-ca02.crt'}}" />
- </util:list>
-
-</beans>
diff --git a/docs/example/step-5/conf/openid-vci-credentials.xml b/docs/example/step-5/conf/openid-vci-credentials.xml
index 8e4f237..09dbf29 100644
--- a/docs/example/step-5/conf/openid-vci-credentials.xml
+++ b/docs/example/step-5/conf/openid-vci-credentials.xml
@@ -8,34 +8,11 @@
default-init-method="initialize"
default-destroy-method="destroy">
- <bean id="openidvci.X509ESSigningCredential" parent="shibboleth.BasicX509CredentialFactoryBean"
- p:privateKey="%{idp.home}/credentials/vci-signing.key">
- <property name="certificates">
- <list>
- <value>%{idp.home}/credentials/vci-signing.crt</value>
- </list>
- </property>
- </bean>
-
- <bean id="openidvci.X509StatusListSigningCredential" parent="shibboleth.BasicX509CredentialFactoryBean"
- p:privateKey="%{idp.home}/credentials/vci-status-list.key">
- <property name="certificates">
- <list>
- <value>%{idp.home}/credentials/vci-status-list.crt</value>
- </list>
- </property>
- </bean>
+ <bean id="openidvci.OPESSigningCredential" parent="shibboleth.JWKCredential"
+ p:resource="%{idp.signing.oidc.es.key}" />
<util:list id="openidvci.SigningCredentials">
- <ref bean="openidvci.X509ESSigningCredential" />
- </util:list>
-
- <util:list id="openidvci.status-list.SigningCredentials">
- <ref bean="openidvci.X509StatusListSigningCredential" />
- </util:list>
-
- <util:list id="openidvci.issuerMetadata.SigningCredentials">
- <ref bean="openidvci.X509ESSigningCredential" />
+ <ref bean="openidvci.OPESSigningCredential" />
</util:list>
</beans>
diff --git a/docs/example/step-5/conf/relying-party.xml b/docs/example/step-5/conf/relying-party.xml
index edd5b26..1f892f5 100644
--- a/docs/example/step-5/conf/relying-party.xml
+++ b/docs/example/step-5/conf/relying-party.xml
@@ -28,6 +28,12 @@
<ref bean="OIDC.Configuration" />
<!-- Of the OP plugin. Needed for the audience values of the wallet -->
<ref bean="OAUTH2.TokenAudience" />
+ <!-- A verifier resolves the did:web identifier from this -->
+ <ref bean="DID.Document" />
+ <!-- A verifier finds the key of a url issuer through this -->
+ <ref bean="OAuth.JWTVCIssuer" />
+ <!-- Of the federation plugin. Serves the Entity Configuration -->
+ <ref bean="OIDFED.Configuration" />
</list>
</property>
</bean>
@@ -54,22 +60,50 @@
</property>
</bean>
+ <bean parent="RelyingPartyByName" c:relyingPartyIds="offer-caller/wallet">
+ <property name="profileConfigurations">
+ <list>
+ <bean parent="OpenID.VCI.Token"
+ p:accessTokenClaimsSetManipulationStrategy-ref="openidvci.TokenManipulationStrategy"
+ p:tokenEndpointAuthMethods="#{{'none'}}" />
+ <bean parent="OpenID.VCI.Credentials" />
+ </list>
+ </property>
+ </bean>
+
<bean parent="RelyingPartyByName"
- c:relyingPartyIds="#{{'eudiw-abca'}}">
+ c:relyingPartyIds="#{{'id.animo.paradym'}}">
<property name="profileConfigurations">
<list>
<bean parent="OIDC.SSO"
p:requireAuthenticationRequest="false"
p:authorizationCodeClaimsSetManipulationStrategy-ref="openidvci.TokenManipulationStrategy"
- p:forcePKCE="true" p:requirePushedAuthorizationRequest="true"
- p:includeIssuerInResponse="true" p:authorizeCodeLifetime="PT1M" />
+ p:forcePKCE="true"
+ p:requirePushedAuthorizationRequest="true" />
<bean parent="OpenID.VCI.Token"
- p:accessTokenClaimsSetManipulationStrategy-ref="openidvci.TokenManipulationStrategy"
- p:refreshTokenClaimsSetManipulationStrategy-ref="openidvci.TokenManipulationStrategy"
- p:tokenEndpointAuthMethods="#{{'attest_jwt_client_auth'}}"
- p:requireDpopProof="true" />
+ p:tokenEndpointAuthMethods="#{{'none'}}"
+ p:accessTokenClaimsSetManipulationStrategy-ref="openidvci.TokenManipulationStrategy" />
+ <bean parent="OpenID.VCI.Credentials" />
+ <bean parent="OAUTH2.PAR" p:tokenEndpointAuthMethods="#{{'none'}}"
+ p:requireAuthenticationRequest="false" />
+ </list>
+ </property>
+ </bean>
+
+ <bean parent="RelyingPartyByName"
+ c:relyingPartyIds="#{{'wallet-dev'}}">
+ <property name="profileConfigurations">
+ <list>
+ <bean parent="OIDC.SSO"
+ p:requireAuthenticationRequest="false"
+ p:authorizationCodeClaimsSetManipulationStrategy-ref="openidvci.TokenManipulationStrategy"
+ p:forcePKCE="true"
+ p:requirePushedAuthorizationRequest="true" />
+ <bean parent="OpenID.VCI.Token"
+ p:tokenEndpointAuthMethods="#{{'none'}}"
+ p:accessTokenClaimsSetManipulationStrategy-ref="openidvci.TokenManipulationStrategy" />
<bean parent="OpenID.VCI.Credentials" />
- <bean parent="OAUTH2.PAR" p:tokenEndpointAuthMethods="#{{'attest_jwt_client_auth'}}"
+ <bean parent="OAUTH2.PAR" p:tokenEndpointAuthMethods="#{{'none'}}"
p:requireAuthenticationRequest="false" />
</list>
</property>
diff --git a/docs/example/step-5/credentials/eudiw-pid-issuer-ca02.crt b/docs/example/step-5/credentials/eudiw-pid-issuer-ca02.crt
deleted file mode 100644
index afcd0cd..0000000
--- a/docs/example/step-5/credentials/eudiw-pid-issuer-ca02.crt
+++ /dev/null
@@ -1,18 +0,0 @@
------BEGIN CERTIFICATE-----
-MIIC0zCCAnmgAwIBAgIUXRXxkLbUM6+njr/XT0IIw/HA/uowCgYIKoZIzj0EAwMw
-VzEZMBcGA1UEAwwQUElEIElzc3VlciBDQSAwMjEtMCsGA1UECgwkRVVESSBXYWxs
-ZXQgUmVmZXJlbmNlIEltcGxlbWVudGF0aW9uMQswCQYDVQQGEwJFVTAeFw0yNTA0
-MDkwMDAzMzBaFw0zNDA3MDYwMDAzMjlaMFcxGTAXBgNVBAMMEFBJRCBJc3N1ZXIg
-Q0EgMDIxLTArBgNVBAoMJEVVREkgV2FsbGV0IFJlZmVyZW5jZSBJbXBsZW1lbnRh
-dGlvbjELMAkGA1UEBhMCRVUwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAARkqdLm
-wIlv+SSWr00tAIrt7EAMztgd3w9qA6qEm16yVfsLcyx2f4oIWuH45wa37J9GoNWp
-deo27VoSoNMCzxOYo4IBITCCAR0wEgYDVR0TAQH/BAgwBgEB/wIBADAfBgNVHSME
-GDAWgBRCUFC+ELgQ8J1EXI2/qxAI7ifcSTATBgNVHSUEDDAKBggrgQICAAABBzBD
-BgNVHR8EPDA6MDigNqA0hjJodHRwczovL3ByZXByb2QucGtpLmV1ZGl3LmRldi9j
-cmwvcGlkX0NBX0VVXzAyLmNybDAdBgNVHQ4EFgQUQlBQvhC4EPCdRFyNv6sQCO4n
-3EkwDgYDVR0PAQH/BAQDAgEGMF0GA1UdEgRWMFSGUmh0dHBzOi8vZ2l0aHViLmNv
-bS9ldS1kaWdpdGFsLWlkZW50aXR5LXdhbGxldC9hcmNoaXRlY3R1cmUtYW5kLXJl
-ZmVyZW5jZS1mcmFtZXdvcmswCgYIKoZIzj0EAwMDSAAwRQIhAIavYfC5o0VVLKfg
-TKkzzWgc09hzDMsCl3O2le2sQfG7AiA2soqAN5gtUOLQKWK00DUz22EW79rvaV+V
-JPvfdQeokA==
------END CERTIFICATE-----
diff --git a/docs/example/step-5/etc/jetty-rewrite-rules.xml b/docs/example/step-5/etc/jetty-rewrite-rules.xml
index d7017ac..9b8ed66 100644
--- a/docs/example/step-5/etc/jetty-rewrite-rules.xml
+++ b/docs/example/step-5/etc/jetty-rewrite-rules.xml
@@ -37,6 +37,33 @@
</New>
</Arg>
</Call>
+ <!-- The did:web document -->
+ <Call name="addRule">
+ <Arg>
+ <New class="org.eclipse.jetty.rewrite.handler.RewritePatternRule">
+ <Set name="pattern">/.well-known/did.json</Set>
+ <Set name="replacement">/idp/profile/did/document</Set>
+ </New>
+ </Arg>
+ </Call>
+ <!-- JWT VC issuer metadata -->
+ <Call name="addRule">
+ <Arg>
+ <New class="org.eclipse.jetty.rewrite.handler.RewritePatternRule">
+ <Set name="pattern">/.well-known/jwt-vc-issuer</Set>
+ <Set name="replacement">/idp/profile/oauth/jwt-vc-issuer</Set>
+ </New>
+ </Arg>
+ </Call>
+ <!-- Entity Configuration, of the federation plugin -->
+ <Call name="addRule">
+ <Arg>
+ <New class="org.eclipse.jetty.rewrite.handler.RewritePatternRule">
+ <Set name="pattern">/.well-known/openid-federation</Set>
+ <Set name="replacement">/idp/profile/oidfed/entity-configuration</Set>
+ </New>
+ </Arg>
+ </Call>
<!-- Wallets running in a browser need this -->
<Call name="addRule">
<Arg>
diff --git a/docs/example/step-5/metadata/oidc-client.json b/docs/example/step-5/metadata/oidc-client.json
index 3ab3641..16d3b7a 100644
--- a/docs/example/step-5/metadata/oidc-client.json
+++ b/docs/example/step-5/metadata/oidc-client.json
@@ -5,13 +5,36 @@
"client_secret": "CHANGE-ME"
},
{
- "client_id": "eudiw-abca",
- "client_name": "Hopae EUDI Wallet",
- "redirect_uris": ["eu.europa.ec.euidi://authorization"],
- "scope": "openid GeantIncubatorDiploma_HAIP GeantIncubatorDiploma_MDOC",
- "audience": "https://issuer.example.org",
- "token_endpoint_auth_method": "attest_jwt_client_auth",
+ "client_id": "offer-caller/wallet",
+ "client_name": "Wallets redeeming a pre-authorized code minted by offer-caller",
+ "token_endpoint_auth_method": "none",
+ "grant_types": ["urn:ietf:params:oauth:grant-type:pre-authorized_code"]
+ },
+ {
+ "client_id": "id.animo.paradym",
+ "client_name": "Paradym Wallet",
+ "redirect_uris": ["https://paradym.id/invitation/redirect"],
+ "scope": "openid GeantIncubatorDiploma_SDJWT GeantIncubatorDiploma_W3C GeantIncubatorDiploma_DIDWEB GeantIncubatorDiploma_URL",
+ "audience": [
+ "https://issuer.example.org"
+ ],
+ "token_endpoint_auth_method": "none",
+ "response_types": ["code"],
+ "grant_types": [
+ "authorization_code",
+ "urn:ietf:params:oauth:grant-type:pre-authorized_code"
+ ]
+ },
+ {
+ "client_id": "wallet-dev",
+ "client_name": "TOPPAN Wallet",
+ "redirect_uris": ["walletapp-goid-openid4vci-callback://authorization"],
+ "scope": "openid GeantIncubatorDiploma_URL",
+ "audience": [
+ "https://issuer.example.org"
+ ],
+ "token_endpoint_auth_method": "none",
"response_types": ["code"],
- "grant_types": ["authorization_code", "refresh_token"]
+ "grant_types": ["authorization_code"]
}
]
diff --git a/docs/example/step-5/metadata/verifiable-credentials.json b/docs/example/step-5/metadata/verifiable-credentials.json
index aa2ceb5..16482e0 100644
--- a/docs/example/step-5/metadata/verifiable-credentials.json
+++ b/docs/example/step-5/metadata/verifiable-credentials.json
@@ -1,34 +1,127 @@
{
"credential_configurations_supported": {
- "GeantIncubatorDiploma_HAIP": {
+ "GeantIncubatorDiploma_SDJWT": {
"format": "dc+sd-jwt",
- "vct": "GeantIncubatorDiploma_HAIP",
- "scope": "GeantIncubatorDiploma_HAIP",
- "cryptographic_binding_methods_supported": ["jwk"],
+ "vct": "GeantIncubatorDiploma_SDJWT",
+ "scope": "GeantIncubatorDiploma_SDJWT",
+ "_issuance_configuration": {
+ "oidfed": false
+ },
+ "cryptographic_binding_methods_supported": ["did:jwk", "jwk"],
"credential_signing_alg_values_supported": ["ES256"],
"proof_types_supported": {
"jwt": {
- "proof_signing_alg_values_supported": ["ES256", "ES384", "ES512"],
- "key_attestations_required": {
- "key_storage": ["iso_18045_high"],
- "user_authentication": ["iso_18045_high"]
+ "proof_signing_alg_values_supported": ["ES256", "ES384", "ES512"]
+ }
+ },
+ "credential_metadata": {
+ "display": [
+ {
+ "name": "Incubator Diploma",
+ "locale": "en",
+ "description": "Diploma issued by the Trust and Identity Incubator"
}
+ ],
+ "claims": [
+ { "path": ["diploma"], "display": [{ "name": "Diploma", "locale": "en" }] },
+ { "path": ["mail"], "display": [{ "name": "Email", "locale": "en" }] },
+ { "path": ["eppn"], "display": [{ "name": "Principal name", "locale": "en" }] },
+ { "path": ["givenName"], "display": [{ "name": "Given names", "locale": "en" }] },
+ { "path": ["familyName"], "display": [{ "name": "Family name", "locale": "en" }] },
+ { "path": ["affiliation"], "display": [{ "name": "Affiliation", "locale": "en" }] }
+ ]
+ }
+ },
+ "GeantIncubatorDiploma_W3C": {
+ "format": "vc+sd-jwt",
+ "scope": "GeantIncubatorDiploma_W3C",
+ "_issuance_configuration": {
+ "oidfed": false
+ },
+ "cryptographic_binding_methods_supported": ["did:jwk", "jwk"],
+ "credential_signing_alg_values_supported": ["ES256"],
+ "proof_types_supported": {
+ "jwt": {
+ "proof_signing_alg_values_supported": ["ES256", "ES384", "ES512"]
+ }
+ },
+ "credential_definition": {
+ "@context": [
+ "https://www.w3.org/ns/credentials/v2",
+ "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C"
+ ],
+ "type": [
+ "VerifiableCredential",
+ "GeantIncubatorDiploma_W3C"
+ ],
+ "name": [
+ { "@value": "Incubator Diploma", "@language": "en" },
+ { "@value": "Inkubaattorin tutkinto", "@language": "fi" }
+ ],
+ "description": [
+ { "@value": "Diploma issued by the Trust and Identity Incubator", "@language": "en" },
+ { "@value": "Trust and Identity Incubatorin myöntämä tutkinto", "@language": "fi" }
+ ],
+ "credentialSchema": {
+ "id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C.schema.json",
+ "type": "JsonSchema"
+ },
+ "termsOfUse": {
+ "id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C/terms",
+ "type": "IncubatorTermsOfUse"
},
- "attestation": {
- "proof_signing_alg_values_supported": ["ES256", "ES384", "ES512"],
- "key_attestations_required": {
- "key_storage": ["iso_18045_high"],
- "user_authentication": ["iso_18045_high"]
+ "relatedResource": [
+ {
+ "id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C",
+ "digestSRI": "sha384-eIeXcHH79JdWiST9HYUoE0335npS6oIKV74bzZVqQUHWOH+v+7S+x/GLe57eCORS"
+ },
+ {
+ "id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C.schema.json",
+ "digestSRI": "sha384-5V21oQMDqipY/5lAXLyVIeL6+YnCC0fzWfcxPiiFpgddZFezHla6qpfWCkv12Qut"
}
+ ],
+ "evidence": {
+ "id": "https://issuer.example.org/credentials/GeantIncubatorDiploma_W3C/evidence",
+ "type": "Evidence",
+ "description": "Completion of the incubator programme, confirmed by the incubator board"
+ }
+ },
+ "credential_metadata": {
+ "display": [
+ {
+ "name": "Incubator Diploma, W3C",
+ "locale": "en",
+ "description": "Diploma issued by the Trust and Identity Incubator"
+ }
+ ],
+ "claims": [
+ { "path": ["credentialSubject","diploma"], "display": [{ "name": "Diploma", "locale": "en" }] },
+ { "path": ["credentialSubject","mail"], "display": [{ "name": "Email", "locale": "en" }] },
+ { "path": ["credentialSubject","eppn"], "display": [{ "name": "Principal name", "locale": "en" }] },
+ { "path": ["credentialSubject","givenName"], "display": [{ "name": "Given names", "locale": "en" }] },
+ { "path": ["credentialSubject","familyName"], "display": [{ "name": "Family name", "locale": "en" }] },
+ { "path": ["credentialSubject","affiliation"], "display": [{ "name": "Affiliation", "locale": "en" }] }
+ ]
+ }
+ },
+ "GeantIncubatorDiploma_DIDWEB": {
+ "format": "dc+sd-jwt",
+ "vct": "GeantIncubatorDiploma_DIDWEB",
+ "scope": "GeantIncubatorDiploma_DIDWEB",
+ "cryptographic_binding_methods_supported": ["did:jwk", "jwk"],
+ "credential_signing_alg_values_supported": ["ES256"],
+ "proof_types_supported": {
+ "jwt": {
+ "proof_signing_alg_values_supported": ["ES256", "ES384", "ES512"]
}
},
"_issuance_configuration": {
- "issuer": "url",
+ "issuer": "did:web",
"oidfed": false
},
"credential_metadata": {
"display": [
- { "name": "Incubator Diploma, HAIP", "locale": "en" }
+ { "name": "Incubator Diploma, did:web", "locale": "en" }
],
"claims": [
{ "path": ["diploma"], "display": [{ "name": "Diploma", "locale": "en" }] },
@@ -40,45 +133,31 @@
]
}
},
- "GeantIncubatorDiploma_MDOC": {
- "format": "mso_mdoc",
- "doctype": "org.geant.incubator.diploma.1",
- "scope": "GeantIncubatorDiploma_MDOC",
- "cryptographic_binding_methods_supported": ["cose_key"],
- "credential_signing_alg_values_supported": [-7, -9],
+ "GeantIncubatorDiploma_URL": {
+ "format": "dc+sd-jwt",
+ "vct": "GeantIncubatorDiploma_URL",
+ "scope": "GeantIncubatorDiploma_URL",
+ "cryptographic_binding_methods_supported": ["did:jwk", "jwk"],
+ "credential_signing_alg_values_supported": ["ES256"],
"proof_types_supported": {
"jwt": {
- "proof_signing_alg_values_supported": ["ES256", "ES384", "ES512"],
- "key_attestations_required": {
- "key_storage": ["iso_18045_high"],
- "user_authentication": ["iso_18045_high"]
- }
- },
- "attestation": {
- "proof_signing_alg_values_supported": ["ES256", "ES384", "ES512"],
- "key_attestations_required": {
- "key_storage": ["iso_18045_high"],
- "user_authentication": ["iso_18045_high"]
- }
+ "proof_signing_alg_values_supported": ["ES256", "ES384", "ES512"]
}
},
"_issuance_configuration": {
- "issuer": "url",
- "lifetime": "P45D",
- "claim_types": [
- { "path": ["org.geant.incubator.1", "issue_date"], "type": "full-date" }
- ]
+ "issuer": "url"
},
"credential_metadata": {
"display": [
- { "name": "Incubator Diploma, mdoc", "locale": "en" }
+ { "name": "Incubator Diploma, url", "locale": "en" }
],
"claims": [
- { "path": ["org.geant.incubator.1", "diploma"], "display": [{ "name": "Diploma", "locale": "en" }] },
- { "path": ["org.geant.incubator.1", "issue_date"], "display": [{ "name": "Issued", "locale": "en" }] },
- { "path": ["org.geant.incubator.1", "mail"], "display": [{ "name": "Email", "locale": "en" }] },
- { "path": ["org.geant.incubator.1", "given_name"], "display": [{ "name": "Given names", "locale": "en" }] },
- { "path": ["org.geant.incubator.1", "family_name"], "display": [{ "name": "Family name", "locale": "en" }] }
+ { "path": ["diploma"], "display": [{ "name": "Diploma", "locale": "en" }] },
+ { "path": ["mail"], "display": [{ "name": "Email", "locale": "en" }] },
+ { "path": ["eppn"], "display": [{ "name": "Principal name", "locale": "en" }] },
+ { "path": ["givenName"], "display": [{ "name": "Given names", "locale": "en" }] },
+ { "path": ["familyName"], "display": [{ "name": "Family name", "locale": "en" }] },
+ { "path": ["affiliation"], "display": [{ "name": "Affiliation", "locale": "en" }] }
]
}
}
diff --git a/docs/example/step-5/static/oauth-authorization-server.json b/docs/example/step-5/static/oauth-authorization-server.json
index d8d01f7..6f5ae89 100644
--- a/docs/example/step-5/static/oauth-authorization-server.json
+++ b/docs/example/step-5/static/oauth-authorization-server.json
@@ -6,20 +6,14 @@
"token_endpoint":"$baseUrl/idp/profile/openid/vci/token",
"jwks_uri":"$baseUrl/idp/profile/oidc/keyset",
"token_endpoint_auth_methods_supported":[
- "attest_jwt_client_auth"
+ "none"
],
- "client_attestation_signing_alg_values_supported":[
- "ES256"
- ],
- "client_attestation_pop_signing_alg_values_supported":[
- "ES256"
- ],
- "authorization_response_iss_parameter_supported":true,
"response_types_supported":[
"code"
],
"grant_types_supported":[
- "authorization_code"
+ "authorization_code",
+ "urn:ietf:params:oauth:grant-type:pre-authorized_code"
],
"code_challenge_methods_supported":[
"S256"
@@ -34,8 +28,10 @@
],
"scopes_supported":[
"openid",
- "GeantIncubatorDiploma_HAIP",
- "GeantIncubatorDiploma_MDOC"
+ "GeantIncubatorDiploma_SDJWT",
+ "GeantIncubatorDiploma_W3C",
+ "GeantIncubatorDiploma_DIDWEB",
+ "GeantIncubatorDiploma_URL"
],
"authorization_details_types_supported":[
"openid_credential"
diff --git a/openid-vci-impl/src/main/resources/org/geant/shibboleth/plugin/openidvci/metadata/verifiable-credentials.json b/openid-vci-impl/src/main/resources/org/geant/shibboleth/plugin/openidvci/metadata/verifiable-credentials.json
new file mode 100644
index 0000000..7b52ad0
--- /dev/null
+++ b/openid-vci-impl/src/main/resources/org/geant/shibboleth/plugin/openidvci/metadata/verifiable-credentials.json
@@ -0,0 +1,33 @@
+{
+ "credential_configurations_supported": {
+ "GeantIncubatorDiploma_SDJWT": {
+ "format": "dc+sd-jwt",
+ "vct": "GeantIncubatorDiploma_SDJWT",
+ "scope": "GeantIncubatorDiploma_SDJWT",
+ "cryptographic_binding_methods_supported": ["did:jwk", "jwk"],
+ "credential_signing_alg_values_supported": ["ES256"],
+ "proof_types_supported": {
+ "jwt": {
+ "proof_signing_alg_values_supported": ["ES256", "ES384", "ES512"]
+ }
+ },
+ "credential_metadata": {
+ "display": [
+ {
+ "name": "Incubator Diploma",
+ "locale": "en",
+ "description": "Diploma issued by the Trust and Identity Incubator"
+ }
+ ],
+ "claims": [
+ { "path": ["diploma"], "display": [{ "name": "Diploma", "locale": "en" }] },
+ { "path": ["mail"], "display": [{ "name": "Email", "locale": "en" }] },
+ { "path": ["eppn"], "display": [{ "name": "Principal name", "locale": "en" }] },
+ { "path": ["givenName"], "display": [{ "name": "Given names", "locale": "en" }] },
+ { "path": ["familyName"], "display": [{ "name": "Family name", "locale": "en" }] },
+ { "path": ["affiliation"], "display": [{ "name": "Affiliation", "locale": "en" }] }
+ ]
+ }
+ }
+ }
+}
diff --git a/openid-vci-impl/src/main/resources/org/geant/shibboleth/plugin/openidvci/module.properties b/openid-vci-impl/src/main/resources/org/geant/shibboleth/plugin/openidvci/module.properties
index f59c763..64cd906 100644
--- a/openid-vci-impl/src/main/resources/org/geant/shibboleth/plugin/openidvci/module.properties
+++ b/openid-vci-impl/src/main/resources/org/geant/shibboleth/plugin/openidvci/module.properties
@@ -28,6 +28,9 @@ OpenID-VCI.5.dest = static/jwt-vc-issuer.json
OpenID-VCI.6.src = /org/geant/shibboleth/plugin/openidvci/static/oauth-authorization-server.json
OpenID-VCI.6.dest = static/oauth-authorization-server.json
+OpenID-VCI.7.src = /org/geant/shibboleth/plugin/openidvci/metadata/verifiable-credentials.json
+OpenID-VCI.7.dest = metadata/verifiable-credentials.json
+
OpenID-VCI.postenable = Add <import resource="openid-vci-credentials.xml" /> in conf/credentials.xml \
if you want to sign Verifiable Credentials, or Status List Tokens, with keys of their own. Until \
that, Credentials are signed with OP's own signing credentials. That file lists every signing \
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list