Skip to content

cs-01: Reintroduce Pre-Authorised Code Flow (issue #213) - #265

Open
georgepadayatti wants to merge 2 commits into
webuild-consortium:mainfrom
decentralised-dataexchange:main
Open

cs-01: Reintroduce Pre-Authorised Code Flow (issue #213)#265
georgepadayatti wants to merge 2 commits into
webuild-consortium:mainfrom
decentralised-dataexchange:main

Conversation

@georgepadayatti

@georgepadayatti georgepadayatti commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

Closes #213. Builds on #258 by @tblachowicz. All of that PR's content is included here, restructured per the review feedback on it. Supersedes #258.

georgepadayatti and others added 2 commits July 21, 2026 16:44
CS-01 only permitted the Authorisation Code Flow, but several
Issuer-initiated use cases depend on pre-auth. Reintroduce the
OpenID4VCI Pre-Authorised Code grant, folded into the existing
Credential Offer flow (6.2) rather than as a separate chapter:
both grants share 6.2.1-6.2.4, diverge at the token step (6.2.5
auth code, 6.2.6 pre-auth) and converge at 6.2.7.

- Issuers MAY support the pre-auth grant; WUs MUST handle it,
  since a WU does not control which grant an Issuer offers
- tx_code REQUIRED for pre-auth offers, delivered out-of-band,
  as the replay mitigation named by OpenID4VCI 13.6.1 (the code
  has no PKCE-like session binding; see CS01_03/CS01_04)
- New CS01_05: trusted-issuer check MUST and issuer-endpoint
  display SHOULD, per OpenID4VCI 13.6.2 tx_code phishing
- Offers carry credential_configuration_ids, not scope; WU
  resolves scope from credential_configurations_supported
- authorization_server added to both grant objects
- WIA client authentication REQUIRED at Token Endpoint (OPTIONAL
  in OpenID4VCI for this grant); anonymous access prohibited
- README: CS-001 to v1.1

Closes webuild-consortium#213
Supersedes webuild-consortium#258

Co-authored-by: Tomasz Błachowicz <147986+tblachowicz@users.noreply.github.com>

@lalc lalc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me @tblachowicz @georgepadayatti

@lalc
lalc requested review from Saramandus and gfour July 21, 2026 11:35

@tblachowicz tblachowicz left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good. No further comments. Thanks @georgepadayatti for making the changes.

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.

RE-introduce pre-auth in CS01

4 participants