Skip to content

[OID4VCI] Issuer-initiated credential offer state is removed after the first credential request, breaking multi-credential issuance #50889

Closed as not planned

Description

@dominikschlosser

Before reporting an issue

  • I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.

Area

oid4vc

Describe the bug

In the issuer_initiated OID4VCI flow, the credential offer state is deleted after the first successful credential issuance. Any subsequent credential request made with the same access token (same authorized session) then fails, because the token's authorization_details still references the now-removed offer id.

This blocks legitimate multi-request flows, e.g. requesting a second credential (or re-requesting with an encryption parameter / fresh proof) after an initial issuance from an issuer-initiated offer.

Version

Nightly

Regression

  • The issue is a regression

Expected behavior

A credential offer created via the issuer-initiated (AIA) flow should support multiple credential requests within the lifetime of the authorized session, while the offer URI remains single-use. Offer-URI consumption should be decoupled from the authorization state that later credential requests depend on.

Actual behavior

After the first successful issuance, OID4VCIssuerEndpoint removes the offer state. A second credential request whose token authorization_details still carries the credentials_offer_id then fails with:

INVALID_CREDENTIAL_REQUEST: No credential offer state for: offerId

How to Reproduce?

  1. Enable the OID4VCI feature and create a credential offer via the issuer-initiated / AIA path (offer with no target client, as in the conformance suite).
  2. Complete the authorization code flow and obtain an access token whose authorization_details reference the offer id.
  3. Send a credential request to the credential endpoint. This succeeds but the offer state is removed.
  4. Send a second credential request with the same access token (e.g. requesting an encrypted credential response). This fails with No credential offer state for: offerId.

Note: the same encrypted "second request" scenario passes under the wallet_initiated flow, so the failure is specific to the issuer-initiated offer-state coupling.

Anything else?

#50577 has to exclude the variant issuer_initiated / encrypted variant of oid4vci-1_0-issuer-happy-flow because this variant makes a second credential request in the same authorized flow, which currently fails.

Activity

  1. added
    kind/bug
    on Jul 14, 2026
  2. forkimenjeckayang commented on Jul 24, 2026

    @forkimenjeckayang
    Contributor

    Hello @dominikschlosser
    Check this #48586
    Especially @mposolda last comment on this : #48586 (review)

  3. added
    area/oid4vc
    on Aug 17, 2026
  4. mposolda commented on Aug 26, 2026

    @mposolda
    Contributor

    Closing as I think this is already resolved in latest main - see last comment from @forkimenjeckayang .

    @dominikschlosser Feel free to re-open if still an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/oid4vckind/bugteam/core-protocols

    Type

    Fields

    No fields configured for bug.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions