Skip to content

Commit 61817c0

Browse files
Support returning "202 Accepted" from the batch credential endpoint
OpenID4VCI PR 293 "rework credential and batch credential endpoint" has added the following new requirement. - If all requests are responded to using a `transaction_id`, the Issuer MUST use the HTTP status code 202 (as detailed in Section 15.3.3 of [@!RFC9110]).
1 parent 21bdc07 commit 61817c0

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<properties>
1313
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1414

15-
<authlete.java.common.version>3.94</authlete.java.common.version>
15+
<authlete.java.common.version>4.2</authlete.java.common.version>
1616
<authlete.java.jaxrs.version>2.70</authlete.java.jaxrs.version>
1717
<authlete.cbor.version>1.14</authlete.cbor.version>
1818
<javax.servlet-api.version>3.0.1</javax.servlet-api.version>

src/main/java/com/authlete/jaxrs/server/api/vci/BatchCredentialEndpoint.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,12 @@ private Response issue(
165165
case OK_JWT:
166166
return ResponseUtil.okJwt(content, headers);
167167

168+
case ACCEPTED:
169+
return ResponseUtil.acceptedJson(content, headers);
170+
171+
case ACCEPTED_JWT:
172+
return ResponseUtil.acceptedJwt(content, headers);
173+
168174
case INTERNAL_SERVER_ERROR:
169175
default:
170176
return ResponseUtil.internalServerErrorJson(content, headers);

0 commit comments

Comments
 (0)