@@ -695,19 +695,28 @@ Per Section 4.1.9 of {{RFC7515}}, the "typ" Header Parameter declares the
695695media type of the complete JWS.
696696To keep header values compact, producers are RECOMMENDED to omit the
697697" application/" prefix from "typ" when no other "/" appears in the media type,
698- as specified in that section;
698+ as specified in that section, unless application requirements or interoperability
699+ needs call for including the prefix;
699700recipients using the media type value MUST treat a "typ" value with no "/"
700701as if "application/" were prepended.
701- When explicit typing is employed, implementations SHOULD register and use the
702- full media type name "application/example+jwt", where "example" identifies the
703- specific kind of JWT, and SHOULD set the corresponding "typ" value to
704- " example+jwt" , because distinct types make cross-JWT substitution harder when
705- validators check "typ", and because misapplying the Section 4.1.9 prefix rule
706- can cause validators to reject otherwise valid tokens or accept the wrong type.
707- This pairing SHOULD be omitted only when the JWT cannot be confused with other
708- kinds of JWTs in its application context.
702+ When explicit typing is employed :
703+
704+ * Implementations SHOULD register the full media type name
705+ " application/example+jwt" , where "example" identifies the specific kind
706+ of JWT.
707+
708+ * Implementations SHOULD set the corresponding "typ" value to "example+jwt".
709+
710+ These recommendations apply unless the JWT cannot be confused with other
711+ kinds of JWTs in its application context, in which case the media type and
712+ " typ" pairing MAY be omitted.
713+
714+ Distinct types make cross-JWT substitution harder when validators check "typ".
715+ Misapplying the Section 4.1.9 prefix rule can cause validators to reject
716+ otherwise valid tokens or accept the wrong type.
717+
709718For example, for Security Event Tokens (SETs) {{RFC8417}}, the media type is
710- " application/secevent+jwt" and the "typ" value SHOULD be "secevent+jwt", because
719+ " application/secevent+jwt" and the "typ" value should be "secevent+jwt", because
711720SETs are often issued in contexts where they could otherwise be mistaken for
712721other kinds of JWTs.
713722
@@ -893,6 +902,10 @@ This document obsoletes RFC 8725 and provides several significant improvements a
893902
894903[[Note to RFC Editor : please remove before publication.]]
895904
905+ # # draft-ietf-oauth-rfc8725bis-07
906+
907+ * Applied ARTART review suggestions regarding explicit typing (Section 3.11).
908+
896909# # draft-ietf-oauth-rfc8725bis-06
897910
898911* AD review followup: promoted selected lowercase must/should guidance to normative MUST language.
0 commit comments