Skip to content

feat: add issuer_state to credential request body too #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: wip/verify
Choose a base branch
from

Conversation

berkes
Copy link

@berkes berkes commented Jun 16, 2025

In order to support any OIDC server, we need to add the issuer state to the body. The OIDC4VCI spec doesn't define a standard way to relay the issuer state, many implementations presume it is part of the access token. But the spec also requires the access token to be considered "opaque". And most OIDC servers won't pass the issuer_state in their access token along - if they have a JWT in the first place! The spec allow additional attributes so adding it, should not cause trouble at issuers - they should simply ignore it if they cannot handdle it.

Hence, we duplicate the issuer_state in the body - e.g. the Sphereon agent handles this extra attribute.

In order to support any OIDC server, we need to add the issuer state to the body.
The OIDC4VCI spec doesn't define a standard way to relay the issuer state, many implementations presume it is part of the access token.
But the spec also requires the access token to be considered "opaque".
And most OIDC servers won't pass the issuer_state in their access token along - if they have a JWT in the first place!
The spec allow additional attributes so adding it, should not cause trouble at issuers - they should simply ignore it if they cannot handdle it.

Hence, we duplicate the issuer_state in the body - e.g. the Sphereon agent handles this extra attribute.
@berkes berkes requested a review from jessevanmuijden June 16, 2025 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant