@@ -697,19 +697,28 @@ Per Section 4.1.9 of {{RFC7515}}, the "typ" Header Parameter declares the
697697media type of the complete JWS.
698698To keep header values compact, producers are RECOMMENDED to omit the
699699" application/" prefix from "typ" when no other "/" appears in the media type,
700- as specified in that section;
700+ as specified in that section, unless application requirements or interoperability
701+ needs call for including the prefix;
701702recipients using the media type value MUST treat a "typ" value with no "/"
702703as if "application/" were prepended.
703- When explicit typing is employed, implementations SHOULD register and use the
704- full media type name "application/example+jwt", where "example" identifies the
705- specific kind of JWT, and SHOULD set the corresponding "typ" value to
706- " example+jwt" , because distinct types make cross-JWT substitution harder when
707- validators check "typ", and because misapplying the Section 4.1.9 prefix rule
708- can cause validators to reject otherwise valid tokens or accept the wrong type.
709- This pairing SHOULD be omitted only when the JWT cannot be confused with other
710- kinds of JWTs in its application context.
704+ When explicit typing is employed :
705+
706+ * Implementations SHOULD register the full media type name
707+ " application/example+jwt" , where "example" identifies the specific kind
708+ of JWT.
709+
710+ * Implementations SHOULD set the corresponding "typ" value to "example+jwt".
711+
712+ These recommendations apply unless the JWT cannot be confused with other
713+ kinds of JWTs in its application context, in which case the media type and
714+ " typ" pairing MAY be omitted.
715+
716+ Distinct types make cross-JWT substitution harder when validators check "typ".
717+ Misapplying the Section 4.1.9 prefix rule can cause validators to reject
718+ otherwise valid tokens or accept the wrong type.
719+
711720For example, for Security Event Tokens (SETs) {{RFC8417}}, the media type is
712- " application/secevent+jwt" and the "typ" value SHOULD be "secevent+jwt", because
721+ " application/secevent+jwt" and the "typ" value should be "secevent+jwt", because
713722SETs are often issued in contexts where they could otherwise be mistaken for
714723other kinds of JWTs.
715724
@@ -898,6 +907,7 @@ This document obsoletes RFC 8725 and provides several significant improvements a
898907# # draft-ietf-oauth-rfc8725bis-07
899908
900909* Applied ARTART review suggestions for SHOULD language in Sections 3.1, 3.2, 3.6, and 3.10.
910+ * Applied ARTART review suggestions regarding explicit typing (Section 3.11).
901911
902912# # draft-ietf-oauth-rfc8725bis-06
903913
0 commit comments