[java-idp-oidc] 01/02: JOIDC-317 - Stricter enforcement of single-use for storage-based PAR records

Codeberg noreply at shibboleth.net
Wed Nov 25 11:04:58 UTC 2026


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

codeberg pushed a commit to branch maint-4.4
in repository java-idp-oidc.

View the commit online:
https://codeberg.org/Shibboleth/java-idp-oidc/commit/394cf7f8d0b0e7816b34ddb2d3a4a151b07d54d7

commit 394cf7f8d0b0e7816b34ddb2d3a4a151b07d54d7
Author: Henri Mikkonen <henri.mikkonen at iki.fi>
AuthorDate: Wed Nov 25 10:13:27 2026 +0200

    JOIDC-317 - Stricter enforcement of single-use for storage-based PAR records
    
    https://shibboleth.atlassian.net/browse/JOIDC-317
---
 ...geServicePushedAuthorizationRequestUriDeserializationFunction.java | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/idp-oidc-extension-impl/src/main/java/net/shibboleth/idp/plugin/oidc/op/profile/logic/StorageServicePushedAuthorizationRequestUriDeserializationFunction.java b/idp-oidc-extension-impl/src/main/java/net/shibboleth/idp/plugin/oidc/op/profile/logic/StorageServicePushedAuthorizationRequestUriDeserializationFunction.java
index 81f0b38b..86430877 100644
--- a/idp-oidc-extension-impl/src/main/java/net/shibboleth/idp/plugin/oidc/op/profile/logic/StorageServicePushedAuthorizationRequestUriDeserializationFunction.java
+++ b/idp-oidc-extension-impl/src/main/java/net/shibboleth/idp/plugin/oidc/op/profile/logic/StorageServicePushedAuthorizationRequestUriDeserializationFunction.java
@@ -91,6 +91,7 @@ public class StorageServicePushedAuthorizationRequestUriDeserializationFunction
     @Override @Nullable
     public Map<String,Object> apply(@Nullable final ProfileRequestContext profileRequestContext,
             @Nullable final URI uri) {
+        checkComponentActive();
         if (uri != null) {
             final String jti = uri.toString().replace(PAR_REQUEST_URI_STORAGE_PREFIX, "");
             assert jti != null;
@@ -102,6 +103,9 @@ public class StorageServicePushedAuthorizationRequestUriDeserializationFunction
                 }
                 if (storageService.delete(STORAGE_CONTEXT_NAME, jti)) {
                     log.debug("Storage record {} successfully deleted", jti);
+                } else {
+                    log.warn("Could not delete existing record {}", jti);
+                    return null;
                 }
                 final Map<String,Object> result = objectMapper.readValue(storageRecord.getValue(),
                         new TypeReference<LinkedHashMap<String, Object>>() {});

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


More information about the commits mailing list