Skip to content

Commit 515fa86

Browse files
authored
add mdoc as example for COSE-based Referenced Token (#347)
* add mdoc as example for COSE-based Referenced Token * merge Referenced Section for CWT with base COSE section
1 parent 6541ce9 commit 515fa86

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

draft-ietf-oauth-status-list.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -565,18 +565,16 @@ The resulting payload of the example above:
565565

566566
## Referenced Token in COSE {#referenced-token-cose}
567567

568-
The Referenced Token MAY be encoded as a "CBOR Web Token (CWT)" object according to {{RFC8392}} or other formats based on COSE. Referenced Tokens in CBOR should share the same core data structure for a status list reference:
568+
The Referenced Token MAY be encoded as a "CBOR Web Token (CWT)" object according to {{RFC8392}}, as an ISO mdoc according to {{ISO.mdoc}} or other formats based on COSE. Referenced Tokens in CBOR should share the same core data structure for a status list reference:
569569

570570
* The `Status` CBOR structure is a Map that MUST include at least one data item that refers to a status mechanism. Each data item in the `Status` CBOR structure comprises a key-value pair, where the key must be a CBOR text string (major type 3) specifying the identifier of the status mechanism and the corresponding value defines its contents.
571571
* `status_list` (status list): REQUIRED when the status mechanism defined in this specification is used. It has the same definition as the `status_list` claim in [](#referenced-token-jose) but MUST be encoded as a `StatusListInfo` CBOR structure with the following fields:
572572
* `idx`: REQUIRED. Unsigned integer (major type 0). The `idx` (index) claim MUST specify a non-negative Integer that represents the index to check for status information in the Status List for the current Referenced Token.
573573
* `uri`: REQUIRED. Text string (major type 3). The `uri` (URI) claim MUST specify a String value that identifies the Status List Token containing the status information for the Referenced Token. The value of `uri` MUST be a URI conforming to {{RFC3986}}.
574574

575-
### CBOR Web Token (CWT) {#referenced-token-cwt}
575+
If the Referenced Token is a CWT, the following content applies to the CWT Claims Set:
576576

577-
The following content applies to the CWT Claims Set:
578-
579-
* `65535` (status): REQUIRED. The status claim contains the `Status` CBOR structure as described in [](#referenced-token-cose).
577+
* `65535` (status): REQUIRED. The status claim contains the `Status` CBOR structure as described in this section.
580578

581579
Application of additional restrictions and policies are at the discretion of the Relying Party.
582580

0 commit comments

Comments
 (0)