Repository navigation
[OID4VCI] Add REST endpoints to revoke all issued credentials for a user - #53645
Open
forkimenjeckayang wants to merge 2 commits into
Open
forkimenjeckayang wants to merge 2 commits into
forkimenjeckayang wants to merge 2 commits into
Conversation
Contributor
There was a problem hiding this comment.
Copilot review overview
🔵 Needs a closer look
The destructive cross-storage operation and pending cache-invalidation integration warrant final human review.
Review effort: Balanced
Findings: None
What changed in this PR
Adds admin and account endpoints to bulk-revoke a user’s issued verifiable credential records.
Changes:
- Adds authorized bulk-revocation REST endpoints and admin-client methods.
- Implements efficient local and federated JPA bulk deletion.
- Adds coverage for isolation, idempotency, authorization, and federated users.
| File | Description |
|---|---|
tests/base/.../IssuedVerifiableCredentialTest.java |
Tests the admin endpoint. |
tests/base/.../FederatedIssuedVerifiableCredentialTest.java |
Tests federated bulk deletion. |
tests/base/.../AccountRestServiceRolesTest.java |
Tests account endpoint behavior and authorization. |
services/.../AccountIssuedVerifiableCredentialResource.java |
Adds the account endpoint. |
services/.../UserVerifiableCredentialResource.java |
Adds the admin endpoint and event. |
server-spi/.../UserProvider.java |
Defines the bulk-removal operation. |
model/storage/.../UserVerifiableCredentialFederatedStorage.java |
Extends federated storage API. |
model/storage-private/.../UserStorageManager.java |
Routes removal by storage type. |
model/jpa/.../JpaUserFederatedStorageProvider.java |
Implements federated bulk deletion. |
model/jpa/.../JpaUserProvider.java |
Implements local bulk deletion and reuses it during cleanup. |
model/infinispan/.../UserCacheSession.java |
Delegates the new model operation. |
js/libs/.../users.ts |
Adds the JavaScript admin-client method. |
integration/admin-client-core/.../UserVerifiableCredentialResource.java |
Adds the Java admin-client method. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
forkimenjeckayang
force-pushed
the
issue-49816
branch
from
October 7, 2026 08:40
5bd8624 to
29ea920
Compare
forkimenjeckayang
force-pushed
the
issue-49816
branch
from
October 7, 2026 10:50
29ea920 to
e81c1d1
Compare
forkimenjeckayang
10BC8
force-pushed
the
issue-49816
branch
from
October 7, 2026 11:38
e81c1d1 to
4f4b2d8
Compare
forkimenjeckayang
force-pushed
the
issue-49816
branch
from
October 7, 2026 12:52
4f4b2d8 to
a6b5d09
Compare
forkimenjeckayang
force-pushed
the
issue-49816
branch
from
October 7, 2026 13:06
a6b5d09 to
747f40d
Compare
forkimenjeckayang
force-pushed
the
issue-49816
branch
from
October 7, 2026 13:14
747f40d to
ce2e633
Compare
wistefan
suggested changes
Nov 19, 2026
Contributor
There was a problem hiding this comment.
code LGTM, just something on the doc
Signed-off-by: forkimenjeckayang <forkimenjeckayang@gmail.com>
Signed-off-by: forkimenjeckayang <forkimenjeckayang@gmail.com>
forkimenjeckayang
force-pushed
the
issue-49816
branch
from
November 26, 2026 09:13
1ee5f42 to
61c8f03
10BC8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Description
Adds admin and account REST endpoints for revoking all issued verifiable credential records belonging to a user.
New endpoints
DELETE /admin/realms/{realm}/users/{userId}/vc/issued-credentialsDELETE /realms/{realm}/account/issued-verifiable-credentialsBoth endpoints return
204 No Contentand are idempotent when the user has no issued credential records.Implementation
removeIssuedVerifiableCredentialsmodel operation.manage-accountormanage-verifiable-credentialson the account endpoint.Cache integration
This change is based on the current
mainbranch, where issued credential records are not yet cached. Once #53332 is merged, the bulk operation will need to invalidate the affected user's issued-credential cache entry and include cluster-aware cache invalidation coverage.Closes #49816