Repository navigation
Fix spec examples: 401 with Bearer challenge, DCQL type_values, Client Identifier Prefix names - #52
frostevent wants to merge 3 commits into
Conversation
…efix names RFC 9110 requires a WWW-Authenticate challenge on every 401, and x401 defines none, so the examples use 403. OpenID4VP 1.0 defines type_values for jwt_vc_json as an array of string arrays, and names the prefixes decentralized_identifier: and openid_federation:. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
dan-proof
left a comment
There was a problem hiding this comment.
I think this may be a case of something we might be comfortable leaving, even if the pedantic nature of 401 use doesn't technically align. To have all examples be 403 just because one detail of an RFC that no one really turns their code on exists seems like it may add more confusion than it does clarity.
Deploying x401 with
|
| Latest commit: |
a763f14
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://2bc65f28.x401.pages.dev |
| Branch Preview URL: | https://jeremie-spec-examples.x401.pages.dev |
|
@dan-proof I agree I'd rather leave 401 too. What if we returned 401 with a |
|
@frostevent I think it is fine to modify the language to strongly encourage compliance, but the reality is that adherence to the presence of WWW-Authenticate in the wild is spotty, and it's not the end of the world. I think most companies will use OAuth token exchange, so that can certainly be the SHOULD primary implementation/example the spec articulates. |
Ok, updated, a left a SHOULD recommendation. |
Changes
401examples carryWWW-Authenticate: Bearer. RFC 9110 §15.5.2 requires a challenge on every 401. The four examples keep401 Unauthorizedand add aBearerchallenge, which the Agent can satisfy with a Verification Token from theoauthtoken exchange leg. Status Code Independence gains one sentence: a Verifier that returns 401 SHOULD include aWWW-Authenticatechallenge, as RFC 9110 requires, and SHOULD include theoauthmember. The<data>carrier sentence no longer says "non-401".type_valuesis an array of string arrays. OpenID4VP 1.0 Appendix B.1 forjwt_vc_json: "REQUIRED. A non-empty array of string arrays." Both examples now read[["FinancialCustomerCredential"]].decentralized_identifier:andopenid_federation:;did:andhttps:were draft names.🤖 Generated with Claude Code