Skip to content

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.

2 participants