[java-idp-plugin-vci] branch dev/VCDM updated: Remove audience, not used and does not make sense here. Change validFrom and validUntil formatting.

Codeberg noreply at shibboleth.net
Tue Apr 28 05:42:30 UTC 2026


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

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

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

The following commit(s) were added to refs/heads/dev/VCDM by this push:
     new e99fda5  Remove audience, not used and does not make sense here. Change validFrom and validUntil formatting.
e99fda5 is described below

commit e99fda511a01ba0ef3f28e74b94f28e35d36a2d2
Author: Janne Lauros <janne.lauros at csc.fi>
AuthorDate: Tue Apr 28 08:42:19 2026 +0300

    Remove audience, not used and does not make sense here. Change validFrom and validUntil formatting.
---
 .../shibboleth/plugin/openidvci/profile/impl/AddCredentialShell.java | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/openid-vci-impl/src/main/java/org/geant/shibboleth/plugin/openidvci/profile/impl/AddCredentialShell.java b/openid-vci-impl/src/main/java/org/geant/shibboleth/plugin/openidvci/profile/impl/AddCredentialShell.java
index 5d9a082..9478dd5 100644
--- a/openid-vci-impl/src/main/java/org/geant/shibboleth/plugin/openidvci/profile/impl/AddCredentialShell.java
+++ b/openid-vci-impl/src/main/java/org/geant/shibboleth/plugin/openidvci/profile/impl/AddCredentialShell.java
@@ -232,7 +232,6 @@ public class AddCredentialShell extends AbstractProfileAction {
     private ClaimsSet createShell() {
         ClaimsSet shell = new ClaimsSet();
         shell.setIssuer(new Issuer(issuerId));
-        shell.setAudience(new Audience(rpCtx.getRelyingPartyId()));
         ZonedDateTime now = ZonedDateTime.now();
         if ("dc+sd-jwt".equals(ctx.getCredentialConfiguration().getFormat())) {
             shell.setClaim("iat", now.toEpochSecond());
@@ -240,9 +239,9 @@ public class AddCredentialShell extends AbstractProfileAction {
             shell.setClaim("vct", ctx.getCredentialIdentifier());
         }
         if ("vc+sd-jwt".equals(ctx.getCredentialConfiguration().getFormat())) {
-            shell.setClaim("validFrom", DateTimeFormatter.ISO_DATE_TIME.format(now));
+            shell.setClaim("validFrom", DateTimeFormatter.ISO_INSTANT.format(now));
             shell.setClaim("validUntil",
-                    DateTimeFormatter.ISO_DATE_TIME.format(now.plusSeconds(expiration.getSeconds())));
+                    DateTimeFormatter.ISO_INSTANT.format(now.plusSeconds(expiration.getSeconds())));
         }
         return shell;
     }

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


More information about the commits mailing list