Repository navigation
INJICERT #1212 [Fix] OpenAPI spec doesn't match the current nonce and issuer metadata behaviour - #1223
INJICERT #1212 [Fix] OpenAPI spec doesn't match the current nonce and issuer metadata behaviour#1223bernard42 wants to merge 1 commit into
Conversation
… issuer metadata behaviour - Document the nonce endpoint at /nonce instead of /issuance/nonce - Remove c_nonce and c_nonce_expires_in from the token and credential error responses - Add nonce_endpoint and credential_metadata to the issuer metadata Signed-off-by: bernardlamptey42 <bernardlamptey42@yahoo.com>
|
No actionable comments were generated in the recent review. WalkthroughThe OpenAPI specification renames the nonce endpoint to Merge Risk:
|
mayuradesh
left a comment
There was a problem hiding this comment.
Optional (#1212): update the status update API docs (OpenAPI YAML only, no code change)
The code already does the right thing. PUT /credentials/status looks up the status list by its UUID (status_list_credential.id), and if id is sent it must match statusListCredential. But the example in the spec sends the full URL plus id: …#5, so anyone who copies it gets STATUS_ID_MISMATCH or STATUS_LIST_NOT_FOUND.
Please make these changes in docs/stoplight_docs/inji-certify-openapi.yaml only:
- Request example: use the UUID and remove
id:credentialStatus: statusPurpose: revocation statusListIndex: 5 type: BitstringStatusListEntry statusListCredential: '7bf52e81-f3bb-40ec-a0f9-a714847fd067' status: false
statusListCredentialdescription:The UUID of the Status List Credential (status_list_credential.id), not the status list URL.iddescription:Optional. If sent, it must equal statusListCredential.- 404 description:
No status list credential exists for the given statusListCredential ID.(remove the reference tocredentialId)
No Java changes are needed for this.
Closes #1212
Updates
inji-certify-openapi.yamlto match the code:POST /nonce(was/issuance/nonce)c_nonce/c_nonce_expires_inremoved from the token and credential error responsesnonce_endpoint; per-configurationclaims/display/orderreplaced bycredential_metadataTesting: spec parses and all
$refs resolve; each change checked against the code.Other spec gaps raised with @mayuradesh & @hegdenitin on #1212.
Summary by CodeRabbit
/nonceand document when issuer metadata includes a nonce endpoint.