<?xml version='1.0' encoding='utf-8'?>
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" version="3" category="std" consensus="true" docName="draft-ietf-ace-oscore-profile-19" indexInclude="true" ipr="trust200902" number="9203" prepTime="2022-08-31T13:48:05" scripts="Common,Latin" sortRefs="true" submissionType="IETF" symRefs="true" tocDepth="3" tocInclude="true" xml:lang="en">
  <link href="https://datatracker.ietf.org/doc/draft-ietf-ace-oscore-profile-19" rel="prev"/>
  <link href="https://dx.doi.org/10.17487/rfc9203" rel="alternate"/>
  <link href="urn:issn:2070-1721" rel="alternate"/>
  <front>
    <title abbrev="OSCORE Profile of ACE">The Object Security for Constrained RESTful Environments (OSCORE) Profile of the Authentication and Authorization for Constrained Environments (ACE) Framework</title>
    <seriesInfo name="RFC" value="9203" stream="IETF"/>
    <author initials="F." surname="Palombini" fullname="Francesca Palombini">
      <organization showOnFrontPage="true">Ericsson AB</organization>
      <address>
        <email>francesca.palombini@ericsson.com</email>
      </address>
    </author>
    <author fullname="Ludwig Seitz" initials="L." surname="Seitz">
      <organization showOnFrontPage="true">Combitech</organization>
      <address>
        <postal>
          <street>Djäknegatan 31</street>
          <city>Malmö</city>
          <code>211 35</code>
          <country>Sweden</country>
        </postal>
        <email>ludwig.seitz@combitech.com</email>
      </address>
    </author>
    <author fullname="Göran Selander" initials="G." surname="Selander">
      <organization showOnFrontPage="true">Ericsson AB</organization>
      <address>
        <email>goran.selander@ericsson.com</email>
      </address>
    </author>
    <author fullname="Martin Gunnarsson" initials="M." surname="Gunnarsson">
      <organization showOnFrontPage="true">RISE</organization>
      <address>
        <postal>
          <street>Scheelevägen 17</street>
          <city>Lund</city>
          <code>22370</code>
          <country>Sweden</country>
        </postal>
        <email>martin.gunnarsson@ri.se</email>
      </address>
    </author>
    <date month="08" year="2022"/>
    <area>Security</area>
    <workgroup>ACE</workgroup>
    <keyword>CoAP</keyword>
    <keyword>OAuth 2.0</keyword>
    <keyword>Access Control</keyword>
    <keyword>Authorization</keyword>
    <keyword>Internet of Things</keyword>
    <abstract pn="section-abstract">
      <t indent="0" pn="section-abstract-1">
        This document specifies a profile for the Authentication and Authorization for Constrained Environments (ACE) framework.  It utilizes Object Security for Constrained RESTful Environments (OSCORE) to provide communication security and proof-of-possession for a key owned by the client and bound to an OAuth 2.0 access token.
      </t>
    </abstract>
    <boilerplate>
      <section anchor="status-of-memo" numbered="false" removeInRFC="false" toc="exclude" pn="section-boilerplate.1">
        <name slugifiedName="name-status-of-this-memo">Status of This Memo</name>
        <t indent="0" pn="section-boilerplate.1-1">
            This is an Internet Standards Track document.
        </t>
        <t indent="0" pn="section-boilerplate.1-2">
            This document is a product of the Internet Engineering Task Force
            (IETF).  It represents the consensus of the IETF community.  It has
            received public review and has been approved for publication by
            the Internet Engineering Steering Group (IESG).  Further
            information on Internet Standards is available in Section 2 of 
            RFC 7841.
        </t>
        <t indent="0" pn="section-boilerplate.1-3">
            Information about the current status of this document, any
            errata, and how to provide feedback on it may be obtained at
            <eref target="https://www.rfc-editor.org/info/rfc9203" brackets="none"/>.
        </t>
      </section>
      <section anchor="copyright" numbered="false" removeInRFC="false" toc="exclude" pn="section-boilerplate.2">
        <name slugifiedName="name-copyright-notice">Copyright Notice</name>
        <t indent="0" pn="section-boilerplate.2-1">
            Copyright (c) 2022 IETF Trust and the persons identified as the
            document authors. All rights reserved.
        </t>
        <t indent="0" pn="section-boilerplate.2-2">
            This document is subject to BCP 78 and the IETF Trust's Legal
            Provisions Relating to IETF Documents
            (<eref target="https://trustee.ietf.org/license-info" brackets="none"/>) in effect on the date of
            publication of this document. Please review these documents
            carefully, as they describe your rights and restrictions with
            respect to this document. Code Components extracted from this
            document must include Revised BSD License text as described in
            Section 4.e of the Trust Legal Provisions and are provided without
            warranty as described in the Revised BSD License.
        </t>
      </section>
    </boilerplate>
    <toc>
      <section anchor="toc" numbered="false" removeInRFC="false" toc="exclude" pn="section-toc.1">
        <name slugifiedName="name-table-of-contents">Table of Contents</name>
        <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1">
          <li pn="section-toc.1-1.1">
            <t indent="0" keepWithNext="true" pn="section-toc.1-1.1.1"><xref derivedContent="1" format="counter" sectionFormat="of" target="section-1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-introduction">Introduction</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.1.2">
              <li pn="section-toc.1-1.1.2.1">
                <t indent="0" keepWithNext="true" pn="section-toc.1-1.1.2.1.1"><xref derivedContent="1.1" format="counter" sectionFormat="of" target="section-1.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-terminology">Terminology</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.2">
            <t indent="0" keepWithNext="true" pn="section-toc.1-1.2.1"><xref derivedContent="2" format="counter" sectionFormat="of" target="section-2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-protocol-overview">Protocol Overview</xref></t>
          </li>
          <li pn="section-toc.1-1.3">
            <t indent="0" pn="section-toc.1-1.3.1"><xref derivedContent="3" format="counter" sectionFormat="of" target="section-3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-client-as-communication">Client-AS Communication</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.3.2">
              <li pn="section-toc.1-1.3.2.1">
                <t indent="0" pn="section-toc.1-1.3.2.1.1"><xref derivedContent="3.1" format="counter" sectionFormat="of" target="section-3.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-c-to-as-post-to-token-endpo">C-to-AS: POST to Token Endpoint</xref></t>
              </li>
              <li pn="section-toc.1-1.3.2.2">
                <t indent="0" pn="section-toc.1-1.3.2.2.1"><xref derivedContent="3.2" format="counter" sectionFormat="of" target="section-3.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-as-to-c-access-token">AS-to-C: Access Token</xref></t>
                <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.3.2.2.2">
                  <li pn="section-toc.1-1.3.2.2.2.1">
                    <t indent="0" pn="section-toc.1-1.3.2.2.2.1.1"><xref derivedContent="3.2.1" format="counter" sectionFormat="of" target="section-3.2.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-the-oscore_input_material">The OSCORE_Input_Material</xref></t>
                  </li>
                </ul>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.4">
            <t indent="0" pn="section-toc.1-1.4.1"><xref derivedContent="4" format="counter" sectionFormat="of" target="section-4"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-client-rs-communication">Client-RS Communication</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.4.2">
              <li pn="section-toc.1-1.4.2.1">
                <t indent="0" pn="section-toc.1-1.4.2.1.1"><xref derivedContent="4.1" format="counter" sectionFormat="of" target="section-4.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-c-to-rs-post-to-authz-info-">C-to-RS: POST to authz-info Endpoint</xref></t>
                <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.4.2.1.2">
                  <li pn="section-toc.1-1.4.2.1.2.1">
                    <t indent="0" pn="section-toc.1-1.4.2.1.2.1.1"><xref derivedContent="4.1.1" format="counter" sectionFormat="of" target="section-4.1.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-the-nonce-1-parameter">The Nonce 1 Parameter</xref></t>
                  </li>
                  <li pn="section-toc.1-1.4.2.1.2.2">
                    <t indent="0" pn="section-toc.1-1.4.2.1.2.2.1"><xref derivedContent="4.1.2" format="counter" sectionFormat="of" target="section-4.1.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-the-ace_client_recipientid-">The ace_client_recipientid Parameter</xref></t>
                  </li>
                </ul>
              </li>
              <li pn="section-toc.1-1.4.2.2">
                <t indent="0" pn="section-toc.1-1.4.2.2.1"><xref derivedContent="4.2" format="counter" sectionFormat="of" target="section-4.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-rs-to-c-201-created">RS-to-C: 2.01 (Created)</xref></t>
                <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.4.2.2.2">
                  <li pn="section-toc.1-1.4.2.2.2.1">
                    <t indent="0" pn="section-toc.1-1.4.2.2.2.1.1"><xref derivedContent="4.2.1" format="counter" sectionFormat="of" target="section-4.2.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-the-nonce-2-parameter">The Nonce 2 Parameter</xref></t>
                  </li>
                  <li pn="section-toc.1-1.4.2.2.2.2">
                    <t indent="0" pn="section-toc.1-1.4.2.2.2.2.1"><xref derivedContent="4.2.2" format="counter" sectionFormat="of" target="section-4.2.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-the-ace_server_recipientid-">The ace_server_recipientid Parameter</xref></t>
                  </li>
                </ul>
              </li>
              <li pn="section-toc.1-1.4.2.3">
                <t indent="0" pn="section-toc.1-1.4.2.3.1"><xref derivedContent="4.3" format="counter" sectionFormat="of" target="section-4.3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-oscore-setup">OSCORE Setup</xref></t>
              </li>
              <li pn="section-toc.1-1.4.2.4">
                <t indent="0" pn="section-toc.1-1.4.2.4.1"><xref derivedContent="4.4" format="counter" sectionFormat="of" target="section-4.4"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-access-rights-verification">Access Rights Verification</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.5">
            <t indent="0" pn="section-toc.1-1.5.1"><xref derivedContent="5" format="counter" sectionFormat="of" target="section-5"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-secure-communication-with-a">Secure Communication with AS</xref></t>
          </li>
          <li pn="section-toc.1-1.6">
            <t indent="0" pn="section-toc.1-1.6.1"><xref derivedContent="6" format="counter" sectionFormat="of" target="section-6"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-discarding-the-security-con">Discarding the Security Context</xref></t>
          </li>
          <li pn="section-toc.1-1.7">
            <t indent="0" pn="section-toc.1-1.7.1"><xref derivedContent="7" format="counter" sectionFormat="of" target="section-7"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-security-considerations">Security Considerations</xref></t>
          </li>
          <li pn="section-toc.1-1.8">
            <t indent="0" pn="section-toc.1-1.8.1"><xref derivedContent="8" format="counter" sectionFormat="of" target="section-8"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-privacy-considerations">Privacy Considerations</xref></t>
          </li>
          <li pn="section-toc.1-1.9">
            <t indent="0" pn="section-toc.1-1.9.1"><xref derivedContent="9" format="counter" sectionFormat="of" target="section-9"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-iana-considerations">IANA Considerations</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.9.2">
              <li pn="section-toc.1-1.9.2.1">
                <t indent="0" pn="section-toc.1-1.9.2.1.1"><xref derivedContent="9.1" format="counter" sectionFormat="of" target="section-9.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-ace-profile-registry">ACE Profile Registry</xref></t>
              </li>
              <li pn="section-toc.1-1.9.2.2">
                <t indent="0" pn="section-toc.1-1.9.2.2.1"><xref derivedContent="9.2" format="counter" sectionFormat="of" target="section-9.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-oauth-parameters-registry">OAuth Parameters Registry</xref></t>
              </li>
              <li pn="section-toc.1-1.9.2.3">
                <t indent="0" pn="section-toc.1-1.9.2.3.1"><xref derivedContent="9.3" format="counter" sectionFormat="of" target="section-9.3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-oauth-parameters-cbor-mappi">OAuth Parameters CBOR Mappings Registry</xref></t>
              </li>
              <li pn="section-toc.1-1.9.2.4">
                <t indent="0" pn="section-toc.1-1.9.2.4.1"><xref derivedContent="9.4" format="counter" sectionFormat="of" target="section-9.4"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-oscore-security-context-par">OSCORE Security Context Parameters Registry</xref></t>
              </li>
              <li pn="section-toc.1-1.9.2.5">
                <t indent="0" pn="section-toc.1-1.9.2.5.1"><xref derivedContent="9.5" format="counter" sectionFormat="of" target="section-9.5"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-cwt-confirmation-methods-re">CWT Confirmation Methods Registry</xref></t>
              </li>
              <li pn="section-toc.1-1.9.2.6">
                <t indent="0" pn="section-toc.1-1.9.2.6.1"><xref derivedContent="9.6" format="counter" sectionFormat="of" target="section-9.6"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-jwt-confirmation-methods-re">JWT Confirmation Methods Registry</xref></t>
              </li>
              <li pn="section-toc.1-1.9.2.7">
                <t indent="0" pn="section-toc.1-1.9.2.7.1"><xref derivedContent="9.7" format="counter" sectionFormat="of" target="section-9.7"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-expert-review-instructions">Expert Review Instructions</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.10">
            <t indent="0" pn="section-toc.1-1.10.1"><xref derivedContent="10" format="counter" sectionFormat="of" target="section-10"/>. <xref derivedContent="" format="title" sectionFormat="of" target="name-references">References</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.10.2">
              <li pn="section-toc.1-1.10.2.1">
                <t indent="0" pn="section-toc.1-1.10.2.1.1"><xref derivedContent="10.1" format="counter" sectionFormat="of" target="section-10.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-normative-references">Normative References</xref></t>
              </li>
              <li pn="section-toc.1-1.10.2.2">
                <t indent="0" pn="section-toc.1-1.10.2.2.1"><xref derivedContent="10.2" format="counter" sectionFormat="of" target="section-10.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-informative-references">Informative References</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.11">
            <t indent="0" pn="section-toc.1-1.11.1"><xref derivedContent="Appendix A" format="default" sectionFormat="of" target="section-appendix.a"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-profile-requirements">Profile Requirements</xref></t>
          </li>
          <li pn="section-toc.1-1.12">
            <t indent="0" pn="section-toc.1-1.12.1"><xref derivedContent="" format="none" sectionFormat="of" target="section-appendix.b"/><xref derivedContent="" format="title" sectionFormat="of" target="name-acknowledgments">Acknowledgments</xref></t>
          </li>
          <li pn="section-toc.1-1.13">
            <t indent="0" pn="section-toc.1-1.13.1"><xref derivedContent="" format="none" sectionFormat="of" target="section-appendix.c"/><xref derivedContent="" format="title" sectionFormat="of" target="name-authors-addresses">Authors' Addresses</xref></t>
          </li>
        </ul>
      </section>
    </toc>
  </front>
  <middle>
    <section anchor="introduction" numbered="true" toc="include" removeInRFC="false" pn="section-1">
      <name slugifiedName="name-introduction">Introduction</name>
      <t indent="0" pn="section-1-1">
        This document specifies the <tt>coap_oscore</tt> profile of the ACE framework <xref target="RFC9200" format="default" sectionFormat="of" derivedContent="RFC9200"/>.  In this profile, a client (C) and a resource server (RS) use the Constrained Application Protocol (CoAP) <xref target="RFC7252" format="default" sectionFormat="of" derivedContent="RFC7252"/> to communicate.  The client uses an access token, bound to a symmetric key (the proof-of-possession (PoP) key) to authorize its access to the resource server.  Note that this profile uses a symmetric-crypto-based scheme, where the symmetric secret is used as input material for keying material derivation.  In order to provide communication security and PoP, the client and resource server use Object Security for Constrained RESTful Environments (OSCORE) as defined in <xref target="RFC8613" format="default" sectionFormat="of" derivedContent="RFC8613"/>.  Note that the PoP is not achieved through a dedicated protocol element but rather occurs after the first message exchange using OSCORE.
      </t>
      <t indent="0" pn="section-1-2">
        OSCORE specifies how to use CBOR Object Signing and Encryption (COSE) <xref target="RFC9052" format="default" sectionFormat="of" derivedContent="RFC9052"/> <xref target="RFC9053" format="default" sectionFormat="of" derivedContent="RFC9053"/> to secure CoAP messages.
        Note that OSCORE can be used to secure CoAP messages, as well as HTTP and combinations of HTTP and CoAP; a profile of ACE similar to the one described in this document, with the difference of using HTTP instead of CoAP as the communication protocol, could be specified analogously to this one.
      </t>
      <section anchor="terminology" numbered="true" toc="include" removeInRFC="false" pn="section-1.1">
        <name slugifiedName="name-terminology">Terminology</name>
        <t indent="0" pn="section-1.1-1">
    The key words "<bcp14>MUST</bcp14>", "<bcp14>MUST NOT</bcp14>", "<bcp14>REQUIRED</bcp14>", "<bcp14>SHALL</bcp14>", "<bcp14>SHALL NOT</bcp14>", "<bcp14>SHOULD</bcp14>", "<bcp14>SHOULD NOT</bcp14>", "<bcp14>RECOMMENDED</bcp14>", "<bcp14>NOT RECOMMENDED</bcp14>",
    "<bcp14>MAY</bcp14>", and "<bcp14>OPTIONAL</bcp14>" in this document are to be interpreted as
    described in BCP 14 <xref target="RFC2119" format="default" sectionFormat="of" derivedContent="RFC2119"/> <xref target="RFC8174" format="default" sectionFormat="of" derivedContent="RFC8174"/>
    when, and only when, they appear in all capitals, as shown here.
        </t>
        <t indent="0" pn="section-1.1-2">
          Certain security-related terms such as "authentication", "authorization", "confidentiality", "(data) integrity", "Message Authentication Code (MAC)", "Hash-based Message Authentication Code (HMAC)", and "verify" are taken from <xref target="RFC4949" format="default" sectionFormat="of" derivedContent="RFC4949"/>.
        </t>
        <t indent="0" pn="section-1.1-3">
          RESTful terminology follows HTTP <xref target="RFC9110" format="default" sectionFormat="of" derivedContent="RFC9110"/>.
        </t>
        <t indent="0" pn="section-1.1-4">
          Readers are expected to be familiar with the terms and concepts defined in OSCORE <xref target="RFC8613" format="default" sectionFormat="of" derivedContent="RFC8613"/>, such as "security context" and "Recipient ID".
        </t>
        <t indent="0" pn="section-1.1-5">
          Terminology for entities in the architecture is defined in OAuth 2.0 <xref target="RFC6749" format="default" sectionFormat="of" derivedContent="RFC6749"/>, such as client (C), resource server (RS), and authorization server (AS). It is assumed in this document that a given resource on a specific RS is associated to a unique AS.
        </t>
        <t indent="0" pn="section-1.1-6">
          Concise Binary Object Representation (CBOR) <xref target="RFC8949" format="default" sectionFormat="of" derivedContent="RFC8949"/> and Concise Data Definition Language (CDDL) <xref target="RFC8610" format="default" sectionFormat="of" derivedContent="RFC8610"/> are used in this document. CDDL predefined type names, especially "bstr" for CBOR byte strings and "tstr" for CBOR text strings, are used extensively in this document.
        </t>
        <t indent="0" pn="section-1.1-7">
          Note that the term "endpoint" is used as in <xref target="RFC9200" format="default" sectionFormat="of" derivedContent="RFC9200"/>, following its OAuth definition, which is to denote resources such as token and introspect at the AS and authz-info at the RS.

	  The CoAP definition, which is "[a]n entity participating in the CoAP protocol" <xref target="RFC7252" format="default" sectionFormat="of" derivedContent="RFC7252"/>, is not used in this document.
        </t>
        <t indent="0" pn="section-1.1-8">Throughout this document, examples for CBOR data items are expressed in
           CBOR extended diagnostic notation as defined in
           <xref section="8" sectionFormat="of" target="RFC8949" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8949#section-8" derivedContent="RFC8949"/> and
           <xref section="G" sectionFormat="of" target="RFC8610" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8610#appendix-G" derivedContent="RFC8610"/>
           ("diagnostic notation"), unless noted otherwise.
           We often use diagnostic notation comments to provide
           a textual representation of the numeric parameter names and values.
        </t>
        <t indent="0" pn="section-1.1-9">In this document, the term "base64-encoded" refers to URL-Safe base64 encoding (see <xref section="5" sectionFormat="of" target="RFC4648" format="default" derivedLink="https://rfc-editor.org/rfc/rfc4648#section-5" derivedContent="RFC4648"/>) without padding.
        </t>
      </section>
    </section>
    <section numbered="true" toc="include" removeInRFC="false" pn="section-2">
      <name slugifiedName="name-protocol-overview">Protocol Overview</name>
      <t indent="0" pn="section-2-1">
        This section gives an overview of how to use the ACE Framework <xref target="RFC9200" format="default" sectionFormat="of" derivedContent="RFC9200"/> to secure the communication between a client and a resource server using OSCORE <xref target="RFC8613" format="default" sectionFormat="of" derivedContent="RFC8613"/>. The parameters needed by the client to negotiate the use of this profile with the AS, as well as the OSCORE setup process, are described in detail in the following sections.
      </t>
      <t indent="0" pn="section-2-2">
        The RS maintains a collection of OSCORE security contexts with associated authorization information for all the clients that it is communicating with. The
        authorization information is maintained as policy that is used as input to processing requests from those clients.
      </t>
      <t indent="0" pn="section-2-3">
        This profile requires a client to retrieve an access token from the AS for the resource it wants to access on an RS, by sending an access token request to the token endpoint, as specified in <xref target="RFC9200" sectionFormat="of" section="5.8" format="default" derivedLink="https://rfc-editor.org/rfc/rfc9200#section-5.8" derivedContent="RFC9200"/>. The access token request and response <bcp14>MUST</bcp14> be confidentiality protected and ensure authenticity.  The use of OSCORE between the client and AS is <bcp14>RECOMMENDED</bcp14> in this profile, to reduce the number of libraries the client has to support, but other protocols fulfilling the security requirements defined in <xref target="RFC9200" sectionFormat="of" section="5" format="default" derivedLink="https://rfc-editor.org/rfc/rfc9200#section-5" derivedContent="RFC9200"/> <bcp14>MAY</bcp14> alternatively be used, such as TLS <xref target="RFC8446" format="default" sectionFormat="of" derivedContent="RFC8446"/> or DTLS <xref target="RFC9147" format="default" sectionFormat="of" derivedContent="RFC9147"/>.
      </t>
      <t indent="0" pn="section-2-4">
        Once the client has retrieved the access token, it generates a nonce N1, as defined in this document (see <xref target="nonce1" format="default" sectionFormat="of" derivedContent="Section 4.1.1"/>). The client also generates its own OSCORE Recipient ID, ID1 (see <xref target="RFC8613" sectionFormat="of" section="3.1" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8613#section-3.1" derivedContent="RFC8613"/>), for use with the keying material associated to the RS. The client posts the token, N1, and its Recipient ID to the RS using the authz-info endpoint and mechanisms specified in <xref target="RFC9200" sectionFormat="of" section="5.8" format="default" derivedLink="https://rfc-editor.org/rfc/rfc9200#section-5.8" derivedContent="RFC9200"/> and Content-Format = application/ace+cbor. When using this profile, the communication with the authz-info endpoint is not protected, except for the update of access rights.
      </t>
      <t indent="0" pn="section-2-5">
        If the access token is valid, the RS replies to this request with a 2.01 (Created) response with Content-Format = application/ace+cbor, which contains a nonce N2 and its newly generated OSCORE Recipient ID, ID2, for use with the keying material associated to the client. Moreover, the server concatenates the input salt received in the token, N1, and N2 to obtain the Master Salt of the OSCORE security context (see <xref target="RFC8613" sectionFormat="of" section="3" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8613#section-3" derivedContent="RFC8613"/>).
        The RS then derives the complete security context associated with the received token from the Master Salt; the OSCORE Recipient ID generated by the client (set as its OSCORE Sender ID); its own OSCORE Recipient ID; plus the parameters received in the access token from the AS, following <xref target="RFC8613" sectionFormat="of" section="3.2" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8613#section-3.2" derivedContent="RFC8613"/>.
      </t>
      <t indent="0" pn="section-2-6">
        In a similar way, after receiving the nonce N2, the client concatenates the input salt, N1, and N2 to obtain the Master Salt of the OSCORE security context. The client then derives the complete security context from the Master Salt; the OSCORE Recipient ID generated by the RS (set as its OSCORE Sender ID); its own OSCORE Recipient ID; plus the parameters received from the AS.
      </t>
      <t indent="0" pn="section-2-7">
        Finally, the client starts the communication with the RS by sending a request protected with OSCORE to the RS. If the request is successfully verified, the server stores the complete security context state that is ready for use in protecting messages and uses it in the response, and in further communications with the client, until token deletion due to, for example, expiration. This security context is discarded when a token (whether the same or a different one) is used to successfully derive a new security context for that client.
      </t>
      <t indent="0" pn="section-2-8">
        The use of nonces N1 and N2 during the exchange prevents the reuse of an
        Authenticated Encryption with Associated Data (AEAD) nonce/key pair
        for two different messages. Reuse might otherwise occur when the
        client and RS derive a new security context from an existing (non-expired)
        access token, as might occur when either party has just rebooted, and that might lead to loss of both confidentiality and integrity.
        Instead, by using the exchanged nonces N1 and N2 as part of the Master Salt, the request to the authz-info endpoint posting the same token results in a different security context, by OSCORE construction, since even though the Master Secret, Sender ID, and Recipient ID are the same, the Master Salt is different (see <xref target="RFC8613" sectionFormat="of" section="3.2.1" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8613#section-3.2.1" derivedContent="RFC8613"/>). If the exchanged nonces were reused, a node reusing a non-expired old token would be susceptible to on-path attackers provoking the creation of an OSCORE message using an old AEAD key and nonce.
      </t>
      <t indent="0" pn="section-2-9">

        After the whole message exchange has taken place, the client can contact the AS to request an update of its access rights, sending a similar request to the token endpoint that also includes an identifier so that the AS can find the correct OSCORE Input Material it has previously shared with the client. This specific identifier, encoded as a byte string, is assigned by the AS to be unique in the sets of its OSCORE Input Materials, and it is not used as input material to derive the full OSCORE security context.
      </t>
      <t indent="0" pn="section-2-10">
        An overview of the profile flow for the OSCORE profile is given in <xref target="prof-overview" format="default" sectionFormat="of" derivedContent="Figure 1"/>. The names of messages coincide with those of <xref target="RFC9200" format="default" sectionFormat="of" derivedContent="RFC9200"/> when applicable.
      </t>
      <figure anchor="prof-overview" align="left" suppress-title="false" pn="figure-1">
        <name slugifiedName="name-protocol-overview-2">Protocol Overview</name>
        <artwork name="" type="" align="left" alt="" pn="section-2-11.1">
   C                            RS                   AS
   |                            |                     |
   | ----- POST /token  ----------------------------&gt; |
   |                            |                     |
   | &lt;---------------------------- Access Token ----- |
   |                           + Access Information   |
   | ---- POST /authz-info ---&gt; |                     |
   |   (access_token, N1, ID1)  |                     |
   |                            |                     |
   | &lt;- 2.01 Created (N2, ID2)- |                     |
   |                            |                     |
 /Sec Context             /Sec Context                |
   derivation/              derivation/               |
   |                            |                     |
   | ---- OSCORE Request -----&gt; |                     |
   |                            |                     |
   |                    /proof-of-possession          |
   |                    Sec Context storage/          |
   |                            |                     |
   | &lt;--- OSCORE Response ----- |                     |
   |                            |                     |
/proof-of-possession            |                     |
Sec Context storage/            |                     |
   |                            |                     |
   | ---- OSCORE Request -----&gt; |                     |
   |                            |                     |
   | &lt;--- OSCORE Response ----- |                     |
   |                            |                     |
   |           ...              |                     |
        </artwork>
      </figure>
    </section>
    <section anchor="client-as" numbered="true" toc="include" removeInRFC="false" pn="section-3">
      <name slugifiedName="name-client-as-communication">Client-AS Communication</name>
      <t indent="0" pn="section-3-1">
        The following subsections describe the details of the POST request and response to the token endpoint between the client and AS. <xref target="RFC8613" sectionFormat="of" section="3.2" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8613#section-3.2" derivedContent="RFC8613"/> defines how to derive a security context based on a shared Master Secret and a set of other parameters, established between the client and server, which the client receives from the AS in this exchange.  The PoP key included in the response from the AS <bcp14>MUST</bcp14> be used as a Master Secret in OSCORE.
      </t>
      <section anchor="c-as" numbered="true" toc="include" removeInRFC="false" pn="section-3.1">
        <name slugifiedName="name-c-to-as-post-to-token-endpo">C-to-AS: POST to Token Endpoint</name>
        <t indent="0" pn="section-3.1-1">
          The client-to-AS request is specified in <xref target="RFC9200" sectionFormat="of" section="5.8.1" format="default" derivedLink="https://rfc-editor.org/rfc/rfc9200#section-5.8.1" derivedContent="RFC9200"/>.
        </t>
        <t indent="0" pn="section-3.1-2">
          The client must send this POST request to the token endpoint over a secure channel that guarantees authentication, message integrity, and confidentiality (see <xref target="introsp" format="default" sectionFormat="of" derivedContent="Section 5"/>).
        </t>
        <t indent="0" pn="section-3.1-3">
          An example of such a request is shown in <xref target="ex0" format="default" sectionFormat="of" derivedContent="Figure 2"/>.
        </t>
        <figure anchor="ex0" align="left" suppress-title="false" pn="figure-2">
          <name slugifiedName="name-example-c-to-as-post-token-">Example C-to-AS POST /token Request for an Access Token Bound to a Symmetric Key</name>
          <sourcecode name="" type="cbor-diag" markers="false" pn="section-3.1-4.1">
    Header: POST (Code=0.02)
    Uri-Host: "as.example.com"
    Uri-Path: "token"
    Content-Format: application/ace+cbor
    Payload:
    {
      / audience / 5 : "tempSensor4711",
         / scope / 9 : "read"
    }
</sourcecode>
        </figure>
        <t indent="0" pn="section-3.1-5">
          If the client wants to update its access rights without changing an existing OSCORE security context, it <bcp14>MUST</bcp14> include a <tt>req_cnf</tt> object in its POST request to the token endpoint, with the <tt>kid</tt> field carrying a CBOR byte string containing the OSCORE Input Material identifier (assigned as discussed in <xref target="as-c" format="default" sectionFormat="of" derivedContent="Section 3.2"/>). This identifier, together with other information such as audience (see <xref target="RFC9200" sectionFormat="of" section="5.8.1" format="default" derivedLink="https://rfc-editor.org/rfc/rfc9200#section-5.8.1" derivedContent="RFC9200"/>), can be used by the AS to determine the shared secret bound to the proof-of-possession token; therefore, it <bcp14>MUST</bcp14> identify a symmetric key that was previously generated by the AS as a shared secret for the communication between the client and the RS. The AS <bcp14>MUST</bcp14> verify that the received value identifies a proof-of-possession key that has previously been issued to the requesting client. If that is not the case, the client-to-AS request <bcp14>MUST</bcp14> be declined with the error code <tt>invalid_request</tt> as defined in <xref target="RFC9200" sectionFormat="of" section="5.8.3" format="default" derivedLink="https://rfc-editor.org/rfc/rfc9200#section-5.8.3" derivedContent="RFC9200"/>.
        </t>
        <t indent="0" pn="section-3.1-6">
          An example of such a request is shown in <xref target="ex7" format="default" sectionFormat="of" derivedContent="Figure 3"/>.
        </t>
        <figure anchor="ex7" align="left" suppress-title="false" pn="figure-3">
          <name slugifiedName="name-example-c-to-as-post-token-r">Example C-to-AS POST /token Request for Updating Rights to an Access Token Bound to a Symmetric Key</name>
          <sourcecode name="" type="cbor-diag" markers="false" pn="section-3.1-7.1">
    Header: POST (Code=0.02)
    Uri-Host: "as.example.com"
    Uri-Path: "token"
    Content-Format: application/ace+cbor
    Payload:
    {
      / audience / 5 : "tempSensor4711",
         / scope / 9 : "write",
       / req_cnf / 4 : {
             / kid / 3 : h'01'
      }
    }
</sourcecode>
        </figure>
      </section>
      <section anchor="as-c" numbered="true" toc="include" removeInRFC="false" pn="section-3.2">
        <name slugifiedName="name-as-to-c-access-token">AS-to-C: Access Token</name>
        <t indent="0" pn="section-3.2-1">
          After verifying the POST request to the token endpoint and that the client is authorized to obtain an access token corresponding to its access token request, the AS responds as defined in <xref target="RFC9200" sectionFormat="of" section="5.8.2" format="default" derivedLink="https://rfc-editor.org/rfc/rfc9200#section-5.8.2" derivedContent="RFC9200"/>. If the client request was invalid, or not authorized, the AS returns an error response as described in <xref target="RFC9200" sectionFormat="of" section="5.8.3" format="default" derivedLink="https://rfc-editor.org/rfc/rfc9200#section-5.8.3" derivedContent="RFC9200"/>.
        </t>
        <t indent="0" pn="section-3.2-2">
          The AS can signal that the use of OSCORE is <bcp14>REQUIRED</bcp14> for a specific access token by including the <tt>ace_profile</tt> parameter with the value <tt>coap_oscore</tt> in the access token response.  This means that the client <bcp14>MUST</bcp14> use OSCORE towards all resource servers for which this access token is valid, and follow <xref target="oscore-setup" format="default" sectionFormat="of" derivedContent="Section 4.3"/> to derive the security context to run OSCORE.
Usually, it is assumed that constrained devices will be preconfigured with the necessary profile, so that this kind of profile signaling can be omitted.	
        </t>
        <t indent="0" pn="section-3.2-3">
          Moreover, the AS <bcp14>MUST</bcp14> send the following data:
        </t>
        <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-3.2-4">
          <li pn="section-3.2-4.1">a Master Secret</li>
          <li pn="section-3.2-4.2">an identifier of the OSCORE Input Material</li>
        </ul>
        <t indent="0" pn="section-3.2-5">
          Additionally, the AS <bcp14>MAY</bcp14> send the following data, in the same response.
        </t>
        <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-3.2-6">
          <li pn="section-3.2-6.1">a context identifier</li>
          <li pn="section-3.2-6.2">an AEAD algorithm</li>
          <li pn="section-3.2-6.3">an HMAC-based key derivation function (HKDF) algorithm <xref target="RFC5869" format="default" sectionFormat="of" derivedContent="RFC5869"/>. It is specified by the HMAC algorithm value; see <xref target="RFC9053" sectionFormat="of" section="3.1" format="default" derivedLink="https://rfc-editor.org/rfc/rfc9053#section-3.1" derivedContent="RFC9053"/>.</li>
          <li pn="section-3.2-6.4">a salt</li>
          <li pn="section-3.2-6.5">the OSCORE version number</li>
        </ul>
        <t indent="0" pn="section-3.2-7">
          This data is transported in the OSCORE_Input_Material. The OSCORE_Input_Material is a CBOR map object, defined in <xref target="oscore-sec-ctx" format="default" sectionFormat="of" derivedContent="Section 3.2.1"/>. This object is transported in the <tt>cnf</tt> parameter of the access token response, as defined in <xref target="RFC9201" sectionFormat="of" section="3.2" format="default" derivedLink="https://rfc-editor.org/rfc/rfc9201#section-3.2" derivedContent="RFC9201"/>, as the value of a field named <tt>osc</tt>, which is registered in Sections <xref target="osc-cwt" format="counter" sectionFormat="of" derivedContent="9.5"/> and <xref target="osc-jwt" format="counter" sectionFormat="of" derivedContent="9.6"/>.
        </t>
        <t indent="0" pn="section-3.2-8">
          The AS <bcp14>MAY</bcp14> assign an identifier to the context (context identifier). This identifier is used as ID Context in the OSCORE context as described in <xref target="RFC8613" sectionFormat="of" section="3.1" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8613#section-3.1" derivedContent="RFC8613"/>. If assigned, these parameters <bcp14>MUST</bcp14> be communicated as the <tt>contextId</tt> field in the OSCORE_Input_Material. The application needs to consider that this identifier is sent in the clear and may reveal information about the endpoints, as mentioned in <xref target="RFC8613" sectionFormat="of" section="12.8" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8613#section-12.8" derivedContent="RFC8613"/>.
        </t>
        <t indent="0" pn="section-3.2-9">	
          The Master Secret and the identifier of the OSCORE_Input_Material <bcp14>MUST</bcp14> be communicated as the <tt>ms</tt> and <tt>id</tt> field in the <tt>osc</tt> field in the <tt>cnf</tt> parameter of the access token response. If included, the following are sent: the AEAD algorithm in the <tt>alg</tt> parameter in the OSCORE_Input_Material; the HKDF algorithm in the <tt>hkdf</tt> parameter of the OSCORE_Input_Material; a salt in the <tt>salt</tt> parameter of the OSCORE_Input_Material; and the OSCORE version in the <tt>version</tt> parameter of the OSCORE_Input_Material.
        </t>
        <t indent="0" pn="section-3.2-10">
        	The same parameters <bcp14>MUST</bcp14> be included in the claims associated with the access token.
          The OSCORE Master Secret <bcp14>MUST</bcp14> be encrypted by the authorization server so that only the resource server can decrypt it (see <xref target="RFC9200" sectionFormat="of" section="6.1" format="default" derivedLink="https://rfc-editor.org/rfc/rfc9200#section-6.1" derivedContent="RFC9200"/>). The use of a CBOR Web Token (CWT) protected with COSE_Encrypt/COSE_Encrypt0 as specified in <xref target="RFC8392" format="default" sectionFormat="of" derivedContent="RFC8392"/> is <bcp14>RECOMMENDED</bcp14> in this profile. If the token is a CWT, the same OSCORE_Input_Material structure defined above <bcp14>MUST</bcp14> be placed in the <tt>osc</tt> field of the <tt>cnf</tt> claim of this token.
        </t>
        <t indent="0" pn="section-3.2-11">
          The AS <bcp14>MUST</bcp14> send a different OSCORE_Input_Material (and therefore different access tokens) to different authorized clients, in order for the RS to differentiate between clients.
        </t>
        <t indent="0" pn="section-3.2-12">
          <xref target="ex1" format="default" sectionFormat="of" derivedContent="Figure 4"/> shows an example of an AS response. The access token has been truncated for readability.
        </t>
        <figure anchor="ex1" align="left" suppress-title="false" pn="figure-4">
          <name slugifiedName="name-example-as-to-c-access-toke">Example AS-to-C Access Token Response with an OSCORE Profile</name>
          <sourcecode name="" type="cbor-diag" markers="false" pn="section-3.2-13.1">
    Header: Created (Code=2.01)
    Content-Type: application/ace+cbor
    Payload:
    {
      / access_token / 1 : h'8343a1010aa2044c53/...
       (remainder of access token (CWT) omitted for brevity)/',
      / ace_profile / 38 : / coap_oscore / 2,
        / expires_in / 2 : 3600,
               / cnf / 8 : {
                 / osc / 4 : {
                    / id / 0 : h'01',
                    / ms / 2 : h'f9af838368e353e78888e1426bd94e6f'
        }
      }
    }
</sourcecode>
        </figure>
        <t indent="0" pn="section-3.2-14">
          <xref target="ex2" format="default" sectionFormat="of" derivedContent="Figure 5"/> shows an example CWT Claims Set, including the relevant OSCORE parameters in the <tt>cnf</tt> claim.
        </t>
        <figure anchor="ex2" align="left" suppress-title="false" pn="figure-5">
          <name slugifiedName="name-example-cwt-claims-set-with">Example CWT Claims Set with OSCORE Parameters</name>
          <sourcecode name="" type="cbor-diag" markers="false" pn="section-3.2-15.1">
{
    / aud / 3 : "tempSensorInLivingRoom",
    / iat / 6 : 1360189224,
    / exp / 4 : 1360289224,
  / scope / 9 :  "temperature_g firmware_p",
    / cnf / 8 : {
      / osc / 4 : {
         / id / 0 : h'01',
         / ms / 2 : h'f9af838368e353e78888e1426bd94e6f'
    }
  }
}

</sourcecode>
        </figure>
        <t indent="0" pn="section-3.2-16">
          The same CWT Claims Set as in <xref target="ex2" format="default" sectionFormat="of" derivedContent="Figure 5"/>, using the value abbreviations defined in <xref target="RFC9200" format="default" sectionFormat="of" derivedContent="RFC9200"/> and <xref target="RFC8747" format="default" sectionFormat="of" derivedContent="RFC8747"/> and encoded in CBOR, is shown in <xref target="ex2-cbor" format="default" sectionFormat="of" derivedContent="Figure 6"/>. The bytes in hexadecimal are reported in the first column, while their corresponding CBOR meaning is reported after the <tt>#</tt> sign on the second column, for readability.
        </t>
        <figure anchor="ex2-cbor" align="left" suppress-title="false" pn="figure-6">
          <name slugifiedName="name-example-cwt-claims-set-with-">Example CWT Claims Set with OSCORE Parameters Using CBOR Encoding</name>
          <sourcecode name="" type="cbor-pretty" markers="false" pn="section-3.2-17.1">
A5                              # map(5)
   03                           # unsigned(3)
   76                           # text(22)
      74656D7053656E736F72496E4C6976696E67526F6F6D
                                # "tempSensorInLivingRoom"
   06                           # unsigned(6)
   1A 5112D728                  # unsigned(1360189224)
   04                           # unsigned(4)
   1A 51145DC8                  # unsigned(1360289224)
   09                           # unsigned(9)
   78 18                        # text(24)
      74656D70657261747572655F67206669726D776172655F70
                                # "temperature_g firmware_p"
   08                           # unsigned(8)
      A1                        # map(1)
         04                     # unsigned(4)
            A2                  # map(2)
               00               # unsigned(0)
               41               # bytes(1)
                  01
               02               # unsigned(2)
               50               # bytes(16)
                  F9AF838368E353E78888E1426BD94E6F
</sourcecode>
        </figure>
        <t indent="0" pn="section-3.2-18">
          If the client has requested an update to its access rights using the same OSCORE security context, which is valid and authorized, the AS <bcp14>MUST</bcp14> omit the <tt>cnf</tt> parameter in the response and <bcp14>MUST</bcp14> carry the OSCORE Input Material identifier in the <tt>kid</tt> field in the <tt>cnf</tt> claim of the token. This identifier needs to be included in the token in order for the RS to identify the correct OSCORE Input Material.
        </t>
        <t indent="0" pn="section-3.2-19">
          <xref target="ex5" format="default" sectionFormat="of" derivedContent="Figure 7"/> shows an example of such an AS response. The access token has been truncated for readability.
        </t>
        <figure anchor="ex5" align="left" suppress-title="false" pn="figure-7">
          <name slugifiedName="name-example-as-to-c-access-token">Example AS-to-C Access Token Response with an OSCORE Profile for the Update of Access Rights</name>
          <sourcecode name="" type="cbor-diag" markers="false" pn="section-3.2-20.1">
    Header: Created (Code=2.01)
    Content-Type: application/ace+cbor
    Payload:
    {
      / access_token / 1 : h'8343a1010aa2044c53/ ...
       (remainder of access token (CWT) omitted for brevity)/',
      / ace_profile / 38 : / coap_oscore / 2,
        / expires_in / 2 : 3600
    }
</sourcecode>
        </figure>
        <t indent="0" pn="section-3.2-21">
          <xref target="ex6" format="default" sectionFormat="of" derivedContent="Figure 8"/> shows an example CWT Claims Set that contains the necessary OSCORE parameters in the <tt>cnf</tt> claim for the update of access rights.
        </t>
        <figure anchor="ex6" align="left" suppress-title="false" pn="figure-8">
          <name slugifiedName="name-example-cwt-claims-set-with-o">Example CWT Claims Set with OSCORE Parameters for the Update of Access Rights</name>
          <sourcecode name="" type="cbor-diag" markers="false" pn="section-3.2-22.1">
  {
      / aud / 3 : "tempSensorInLivingRoom",
      / iat / 6 : 1360189224,
      / exp / 4 : 1360289224,
    / scope / 9 :  "temperature_h",
      / cnf / 8 : {
        / kid / 3 : h'01'
    }
  }
</sourcecode>
        </figure>
        <section anchor="oscore-sec-ctx" numbered="true" toc="include" removeInRFC="false" pn="section-3.2.1">
          <name slugifiedName="name-the-oscore_input_material">The OSCORE_Input_Material</name>
          <t indent="0" pn="section-3.2.1-1">
            An OSCORE_Input_Material is an object that represents the input material to derive an OSCORE security context, i.e., the local set of information elements necessary to carry out the cryptographic operations in OSCORE (<xref target="RFC8613" sectionFormat="of" section="3.1" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8613#section-3.1" derivedContent="RFC8613"/>). In particular, the OSCORE_Input_Material is defined to be serialized and transported between nodes, as specified by this document, but it can also be used by other specifications if needed. The OSCORE_Input_Material can be encoded as either a JSON object or a CBOR map. The set of common parameters that can appear in an OSCORE_Input_Material can be found in the IANA "OSCORE Security Context Parameters" registry (<xref target="sec-ctx-params-reg" format="default" sectionFormat="of" derivedContent="Section 9.4"/>), defined for extensibility, and the initial set of parameters defined in this document is specified below.
            All parameters are optional.
            <xref target="key-labels" format="default" sectionFormat="of" derivedContent="Table 1"/> provides a summary of the OSCORE_Input_Material parameters defined in this section.
          </t>
          <table anchor="key-labels" align="center" pn="table-1">
            <name slugifiedName="name-oscore_input_material-param">OSCORE_Input_Material Parameters</name>
            <thead>
              <tr>
                <th align="left" colspan="1" rowspan="1">name</th>
                <th align="left" colspan="1" rowspan="1">CBOR label</th>
                <th align="left" colspan="1" rowspan="1">CBOR type</th>
                <th align="left" colspan="1" rowspan="1">registry</th>
                <th align="left" colspan="1" rowspan="1">description</th>
              </tr>
            </thead>
            <tbody>
              <tr>
                <td align="left" colspan="1" rowspan="1">id</td>
                <td align="left" colspan="1" rowspan="1">0</td>
                <td align="left" colspan="1" rowspan="1">byte string</td>
                <td align="left" colspan="1" rowspan="1"/>
                <td align="left" colspan="1" rowspan="1">OSCORE Input Material identifier</td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">version</td>
                <td align="left" colspan="1" rowspan="1">1</td>
                <td align="left" colspan="1" rowspan="1">unsigned integer</td>
                <td align="left" colspan="1" rowspan="1"/>
                <td align="left" colspan="1" rowspan="1">OSCORE version</td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">ms</td>
                <td align="left" colspan="1" rowspan="1">2</td>
                <td align="left" colspan="1" rowspan="1">byte string</td>
                <td align="left" colspan="1" rowspan="1"/>
                <td align="left" colspan="1" rowspan="1">OSCORE Master Secret value</td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">hkdf</td>
                <td align="left" colspan="1" rowspan="1">3</td>
                <td align="left" colspan="1" rowspan="1">text string / integer</td>
                <td align="left" colspan="1" rowspan="1">
                  <xref target="COSE.Algorithms" format="default" sectionFormat="of" derivedContent="COSE.Algorithms"/> values (HMAC-based)</td>
                <td align="left" colspan="1" rowspan="1">OSCORE HKDF value</td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">alg</td>
                <td align="left" colspan="1" rowspan="1">4</td>
                <td align="left" colspan="1" rowspan="1">text string / integer</td>
                <td align="left" colspan="1" rowspan="1">
                  <xref target="COSE.Algorithms" format="default" sectionFormat="of" derivedContent="COSE.Algorithms"/> values (AEAD)</td>
                <td align="left" colspan="1" rowspan="1">OSCORE AEAD Algorithm value</td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">salt</td>
                <td align="left" colspan="1" rowspan="1">5</td>
                <td align="left" colspan="1" rowspan="1">byte string</td>
                <td align="left" colspan="1" rowspan="1"/>
                <td align="left" colspan="1" rowspan="1">an input to OSCORE Master Salt value</td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">contextId</td>
                <td align="left" colspan="1" rowspan="1">6</td>
                <td align="left" colspan="1" rowspan="1">byte string</td>
                <td align="left" colspan="1" rowspan="1"/>
                <td align="left" colspan="1" rowspan="1">OSCORE ID Context value</td>
              </tr>
            </tbody>
          </table>
          <dl newline="false" spacing="normal" indent="3" pn="section-3.2.1-3">
            <dt pn="section-3.2.1-3.1">id:</dt>
            <dd pn="section-3.2.1-3.2">
                This parameter identifies the OSCORE_Input_Material and is encoded as a byte string.
                In JSON, the <tt>id</tt> value is a base64-encoded byte string.
                In CBOR, the <tt>id</tt> type is a byte string, and it has label 0.
              </dd>
            <dt pn="section-3.2.1-3.3">version:</dt>
            <dd pn="section-3.2.1-3.4">
                This parameter identifies the OSCORE version number, which is an unsigned integer. For more information about this field, see <xref target="RFC8613" sectionFormat="of" section="5.4" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8613#section-5.4" derivedContent="RFC8613"/>.
                In JSON, the <tt>version</tt> value is an integer.
                In CBOR, the <tt>version</tt> type is an integer, and it has label 1.
              </dd>
            <dt pn="section-3.2.1-3.5">ms:</dt>
            <dd pn="section-3.2.1-3.6">
                This parameter identifies the OSCORE Master Secret value, which is a byte string. For more information about this field, see <xref target="RFC8613" sectionFormat="of" section="3.1" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8613#section-3.1" derivedContent="RFC8613"/>.
                In JSON, the <tt>ms</tt> value is a base64-encoded byte string.
                In CBOR, the <tt>ms</tt> type is byte string, and it has label 2.
              </dd>
            <dt pn="section-3.2.1-3.7">hkdf:</dt>
            <dd pn="section-3.2.1-3.8">
                This parameter identifies the OSCORE HKDF Algorithm. For more information about this field, see <xref target="RFC8613" sectionFormat="of" section="3.1" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8613#section-3.1" derivedContent="RFC8613"/>.
                The values used <bcp14>MUST</bcp14> be registered in the IANA "COSE Algorithms" registry (see <xref target="COSE.Algorithms" format="default" sectionFormat="of" derivedContent="COSE.Algorithms"/>) and <bcp14>MUST</bcp14> be HMAC-based HKDF algorithms (see <xref target="RFC9053" sectionFormat="of" section="3.1" format="default" derivedLink="https://rfc-editor.org/rfc/rfc9053#section-3.1" derivedContent="RFC9053"/>). The value can be either the integer or the text-string value of the HMAC-based HKDF algorithm in the "COSE Algorithms" registry.
                In JSON, the <tt>hkdf</tt> value is a case-sensitive ASCII string or an integer.
                In CBOR, the <tt>hkdf</tt> type is a text string or integer, and it has label 3.
              </dd>
            <dt pn="section-3.2.1-3.9">alg:</dt>
            <dd pn="section-3.2.1-3.10">
                This parameter identifies the OSCORE AEAD Algorithm. For more information about this field, see <xref target="RFC8613" sectionFormat="of" section="3.1" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8613#section-3.1" derivedContent="RFC8613"/>.
                The values used <bcp14>MUST</bcp14> be registered in the IANA "COSE Algorithms" registry (see <xref target="COSE.Algorithms" format="default" sectionFormat="of" derivedContent="COSE.Algorithms"/>) and <bcp14>MUST</bcp14> be AEAD algorithms. The value can be either the integer or the text-string value of the HMAC-based HKDF algorithm in the "COSE Algorithms" registry.
                In JSON, the <tt>alg</tt> value is a case-sensitive ASCII string or an integer.
                In CBOR, the <tt>alg</tt> type is a text string or integer, and it has label 4.
              </dd>
            <dt pn="section-3.2.1-3.11">salt:</dt>
            <dd pn="section-3.2.1-3.12">
                This parameter identifies an input to the OSCORE Master Salt value, which is a byte string. For more information about this field, see <xref target="RFC8613" sectionFormat="of" section="3.1" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8613#section-3.1" derivedContent="RFC8613"/>.
                In JSON, the <tt>salt</tt> value is a base64-encoded byte string.
                In CBOR, the <tt>salt</tt> type is a byte string, and it has label 5.
              </dd>
            <dt pn="section-3.2.1-3.13">contextId:</dt>
            <dd pn="section-3.2.1-3.14">
                This parameter identifies the security context as a byte string. This identifier is used as OSCORE ID Context. For more information about this field, see <xref target="RFC8613" sectionFormat="of" section="3.1" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8613#section-3.1" derivedContent="RFC8613"/>.
                In JSON, the <tt>contextID</tt> value is a base64-encoded byte string.
                In CBOR, the <tt>contextID</tt> type is a byte string, and it has label 6.
              </dd>
          </dl>
          <t indent="0" pn="section-3.2.1-4">
            An example of JSON OSCORE_Input_Material is given in <xref target="JSON-osc" format="default" sectionFormat="of" derivedContent="Figure 9"/>.
          </t>
          <figure anchor="JSON-osc" align="left" suppress-title="false" pn="figure-9">
            <name slugifiedName="name-example-json-oscore_input_m">Example JSON OSCORE_Input_Material</name>
            <sourcecode name="" type="json" markers="false" pn="section-3.2.1-5.1">
                "osc" : {
                  "alg" : "AES-CCM-16-64-128",
                   "id" : "AQ",
                   "ms" : "-a-Dg2jjU-eIiOFCa9lObw"
                }
</sourcecode>
          </figure>
          <t indent="0" pn="section-3.2.1-6">
            The CDDL grammar describing the CBOR OSCORE_Input_Material is shown in <xref target="CDDL-osc" format="default" sectionFormat="of" derivedContent="Figure 10"/>.
          </t>
          <figure anchor="CDDL-osc" align="left" suppress-title="false" pn="figure-10">
            <name slugifiedName="name-cddl-grammar-of-the-oscore_">CDDL Grammar of the OSCORE_Input_Material</name>
            <sourcecode name="" type="cddl" markers="false" pn="section-3.2.1-7.1">
OSCORE_Input_Material = {
    ? 0 =&gt; bstr,              ; id
    ? 1 =&gt; int,               ; version
    ? 2 =&gt; bstr,              ; ms
    ? 3 =&gt; tstr / int,        ; hkdf
    ? 4 =&gt; tstr / int,        ; alg
    ? 5 =&gt; bstr,              ; salt
    ? 6 =&gt; bstr,              ; contextId
    * (int / tstr) =&gt; any
}
</sourcecode>
          </figure>
        </section>
      </section>
    </section>
    <section anchor="c-rs1" numbered="true" toc="include" removeInRFC="false" pn="section-4">
      <name slugifiedName="name-client-rs-communication">Client-RS Communication</name>
      <t indent="0" pn="section-4-1">
        The following subsections describe the details of the POST request and response to the authz-info endpoint between the client and RS. The client generates a nonce N1 and an identifier ID1 that is unique in the sets of its own Recipient IDs and posts them together with the token that includes the materials (e.g., OSCORE parameters) received from the AS to the RS. The RS then generates a nonce N2 and an identifier ID2 that is unique in the sets of its own Recipient IDs and uses <xref target="RFC8613" sectionFormat="of" section="3.2" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8613#section-3.2" derivedContent="RFC8613"/> to derive a security context based on a shared Master Secret, the two exchanged nonces, and the two identifiers, established between the client and server. The exchanged nonces and identifiers are encoded as a CBOR byte string if CBOR is used and as a base64 string if JSON is used. This security context is used to protect all future communication between the client and RS using OSCORE, as long as the access token is valid.
      </t>
      <t indent="0" pn="section-4-2">
        Note that the RS and client authenticate each other
        by generating the shared OSCORE security context using
        the PoP key as the Master Secret.  An attacker
        posting a valid token to the RS will not be able to generate a valid OSCORE security context and
        thus will not be able to prove possession of the PoP key. Additionally, the mutual authentication is only achieved after the client has successfully verified a response from the RS protected with the generated OSCORE security context.
      </t>
      <section anchor="c-rs" numbered="true" toc="include" removeInRFC="false" pn="section-4.1">
        <name slugifiedName="name-c-to-rs-post-to-authz-info-">C-to-RS: POST to authz-info Endpoint</name>
        <t indent="0" pn="section-4.1-1">
          The client <bcp14>MUST</bcp14> generate a nonce value N1 that is very unlikely to have been previously used with the same input keying material. The use of a 64-bit long random number as the nonce's value is <bcp14>RECOMMENDED</bcp14> in this profile. The client <bcp14>MUST</bcp14> store the nonce N1 as long as the response from the RS is not received and the access token related to it is still valid (to the best of the client's knowledge).
        </t>
        <t indent="0" pn="section-4.1-2">
          The client generates its own Recipient ID, ID1, for the OSCORE security context that it is establishing with the RS. By generating its own Recipient ID, the client makes sure that it does not collide with any of its Recipient IDs, nor with any other identifier ID1 if the client is executing this exchange with a different RS at the same time.
        </t>
        <t indent="0" pn="section-4.1-3">
          The client <bcp14>MUST</bcp14> use CoAP and the authorization information resource as described in <xref target="RFC9200" sectionFormat="of" section="5.8.1" format="default" derivedLink="https://rfc-editor.org/rfc/rfc9200#section-5.8.1" derivedContent="RFC9200"/> to transport the token, N1, and ID1 to the RS.
        </t>
        <t indent="0" pn="section-4.1-4">
          Note that the use of the payload and the Content-Format is different from what is described in <xref target="RFC9200" sectionFormat="of" section="5.8.1" format="default" derivedLink="https://rfc-editor.org/rfc/rfc9200#section-5.8.1" derivedContent="RFC9200"/>, which only transports the token without any CBOR wrapping. In this profile, the client <bcp14>MUST</bcp14> wrap the token, N1, and ID1 in a CBOR map.
The client <bcp14>MUST</bcp14> use the Content-Format application/ace+cbor defined in <xref target="RFC9200" sectionFormat="of" section="8.16" format="default" derivedLink="https://rfc-editor.org/rfc/rfc9200#section-8.16" derivedContent="RFC9200"/>. The client <bcp14>MUST</bcp14> include the access token using the <tt>access_token</tt> parameter; N1 using the <tt>nonce1</tt> parameter defined in <xref target="nonce1" format="default" sectionFormat="of" derivedContent="Section 4.1.1"/>; and ID1 using the <tt>ace_client_recipientid</tt> parameter defined in <xref target="id1" format="default" sectionFormat="of" derivedContent="Section 4.1.2"/>.
        </t>
        <t indent="0" pn="section-4.1-5">
          The communication with the authz-info endpoint does not have to be protected, except for the update of access rights case described below.
        </t>
        <t indent="0" pn="section-4.1-6">
          Note that a client may be required to repost the access token in order to complete a request, since an RS may delete a stored access token (and associated security context) at any time, for example, due to all storage space being consumed. This situation is detected by the client when it receives an AS Request Creation Hints response. Reposting the same access token will result in deriving a new OSCORE security context to be used with the RS, as different exchanged nonces will be used.
        </t>
        <t indent="0" pn="section-4.1-7">
          The client may also choose to repost the access token in order to update its OSCORE security context. In that case, the client and the RS will exchange newly generated nonces, renegotiate identifiers, and derive new keying material. The client and RS might decide to keep the same identifiers or renew them during the renegotiation.
        </t>
        <t indent="0" pn="section-4.1-8">
          <xref target="ex3" format="default" sectionFormat="of" derivedContent="Figure 11"/> shows an example of the request sent from the client to the RS. The access token has been truncated for readability.
        </t>
        <figure anchor="ex3" align="left" suppress-title="false" pn="figure-11">
          <name slugifiedName="name-example-c-to-rs-post-authz-">Example C-to-RS POST /authz-info Request Using CWT</name>
          <sourcecode name="" type="cbor-diag" markers="false" pn="section-4.1-9.1">
      Header: POST (Code=0.02)
      Uri-Host: "rs.example.com"
      Uri-Path: "authz-info"
      Content-Format: application/ace+cbor
      Payload:
        {
                     / access_token / 1 : h'8343a1010aa2044c53/...
       (remainder of access token (CWT) omitted for brevity)/',
                          / nonce1 / 40 : h'018a278f7faab55a',
          / ace_client_recipientid / 43 : h'1645'
        }
</sourcecode>
        </figure>
        <t indent="0" pn="section-4.1-10">
          If the client has already posted a valid token, has already established a security association with the RS, and wants to update its access rights, the client can do so by posting the new token (retrieved from the AS and containing the update of access rights) to the /authz-info endpoint. The client <bcp14>MUST</bcp14> protect the request using the OSCORE security context established during the first token exchange. The client <bcp14>MUST</bcp14> only send the <tt>access_token</tt> field in the CBOR map in the payload; no nonce or identifier is sent. After proper verification (see <xref target="rs-c" format="default" sectionFormat="of" derivedContent="Section 4.2"/>), the RS will replace the old token with the new one, maintaining the same security context.
        </t>
        <section anchor="nonce1" numbered="true" toc="include" removeInRFC="false" pn="section-4.1.1">
          <name slugifiedName="name-the-nonce-1-parameter">The Nonce 1 Parameter</name>
          <t indent="0" pn="section-4.1.1-1">
             The <tt>nonce1</tt> parameter <bcp14>MUST</bcp14> be sent from the client to the RS, together with the access token, if the ACE profile used is <tt>coap_oscore</tt>, and the message is not an update of access rights, protected with an existing OSCORE security context.  The parameter is encoded as a byte string for
   CBOR-based interactions and as a string (base64-encoded binary) for
   JSON-based interactions. This parameter is registered in <xref target="iana-nonces-ids" format="default" sectionFormat="of" derivedContent="Section 9.2"/>.
          </t>
        </section>
        <section anchor="id1" numbered="true" toc="include" removeInRFC="false" pn="section-4.1.2">
          <name slugifiedName="name-the-ace_client_recipientid-">The ace_client_recipientid Parameter</name>
          <t indent="0" pn="section-4.1.2-1">
             The <tt>ace_client_recipientid</tt> parameter <bcp14>MUST</bcp14> be sent from the client to the RS, together with the access token, if the ACE profile used is <tt>coap_oscore</tt>, and the message is not an update of access rights, protected with an existing OSCORE security context.  The parameter is encoded as a byte string for
   CBOR-based interactions and as a string (base64-encoded binary) for
   JSON-based interactions. This parameter is registered in <xref target="iana-nonces-ids" format="default" sectionFormat="of" derivedContent="Section 9.2"/>.
          </t>
        </section>
      </section>
      <section anchor="rs-c" numbered="true" toc="include" removeInRFC="false" pn="section-4.2">
        <name slugifiedName="name-rs-to-c-201-created">RS-to-C: 2.01 (Created)</name>
        <t indent="0" pn="section-4.2-1">
          The RS <bcp14>MUST</bcp14> follow the procedures defined in <xref target="RFC9200" sectionFormat="of" section="5.8.1" format="default" derivedLink="https://rfc-editor.org/rfc/rfc9200#section-5.8.1" derivedContent="RFC9200"/>: the RS must verify the validity of the token. If the token is valid, the RS must respond to the POST request with 2.01 (Created).
	  If the token is valid but is associated to claims that the RS cannot process (e.g., an unknown scope), or if any of the expected parameters are missing (e.g., any of the mandatory parameters from the AS or the identifier ID1), or if any parameters received in the <tt>osc</tt> field are unrecognized, the RS must respond with an error response code equivalent to the CoAP code 4.00 (Bad Request). In the latter two cases, the RS may provide additional information in the error response, in order to clarify what went wrong.
          The RS may make an introspection request (see <xref target="RFC9200" sectionFormat="of" section="5.9.1" format="default" derivedLink="https://rfc-editor.org/rfc/rfc9200#section-5.9.1" derivedContent="RFC9200"/>) to validate the token before responding to the POST request to the authz-info endpoint.
        </t>
        <t indent="0" pn="section-4.2-2">
          Additionally, the RS <bcp14>MUST</bcp14> generate a nonce N2 that is very unlikely to have been previously used with the same input keying material and its own Recipient ID, ID2. The RS makes sure that ID2 does not collide with any of its Recipient IDs. The RS <bcp14>MUST</bcp14> ensure that ID2 is different from the value received in the <tt>ace_client_recipientid</tt> parameter. The RS sends N2 and ID2 within the 2.01 (Created) response. The payload of the 2.01 (Created) response <bcp14>MUST</bcp14> be a CBOR map containing the <tt>nonce2</tt> parameter defined in <xref target="nonce2" format="default" sectionFormat="of" derivedContent="Section 4.2.1"/>, set to N2, and the <tt>ace_server_recipientid</tt> parameter defined in <xref target="id2" format="default" sectionFormat="of" derivedContent="Section 4.2.2"/>, set to ID2. The use of a 64-bit long random number as the nonce's value is <bcp14>RECOMMENDED</bcp14> in this profile.

	  The RS <bcp14>MUST</bcp14> use the Content-Format application/ace+cbor defined in <xref target="RFC9200" sectionFormat="of" section="8.16" format="default" derivedLink="https://rfc-editor.org/rfc/rfc9200#section-8.16" derivedContent="RFC9200"/>.
        </t>
        <t indent="0" pn="section-4.2-3">
          <xref target="ex4" format="default" sectionFormat="of" derivedContent="Figure 12"/> shows an example of the response sent from the RS to the client.
        </t>
        <figure anchor="ex4" align="left" suppress-title="false" pn="figure-12">
          <name slugifiedName="name-example-rs-to-c-201-created">Example RS-to-C 2.01 (Created) Response</name>
          <sourcecode name="" type="cbor-diag" markers="false" pn="section-4.2-4.1">
      Header: Created (Code=2.01)
      Content-Format: application/ace+cbor
      Payload:
        {
                          / nonce2 / 42 : h'25a8991cd700ac01',
          / ace_server_recipientid / 44 : h'0000'
        }
</sourcecode>
        </figure>
        <t indent="0" pn="section-4.2-5">
          As specified in <xref target="RFC9200" sectionFormat="of" section="5.8.3" format="default" derivedLink="https://rfc-editor.org/rfc/rfc9200#section-5.8.3" derivedContent="RFC9200"/>, the RS must notify the client with an error response with code 4.01 (Unauthorized) for any long running request before terminating the session, when the access token expires.
        </t>
        <t indent="0" pn="section-4.2-6">
          If the RS receives the token in an OSCORE-protected message, it means that the client is requesting an update of access rights. The RS <bcp14>MUST</bcp14> ignore any nonce and identifiers in the request, if any were sent. The RS <bcp14>MUST</bcp14> check that the <tt>kid</tt> of the <tt>cnf</tt> claim of the new access token matches the identifier of the OSCORE Input Material of the context used to protect the message. If that is the case, the RS <bcp14>MUST</bcp14> overwrite the old token and associate the new token to the security context identified by the <tt>kid</tt> value in the <tt>cnf</tt> claim. The RS <bcp14>MUST</bcp14> respond with a 2.01 (Created) response protected with the same security context, with no payload. If any verification fails, the RS <bcp14>MUST</bcp14> respond with a 4.01 (Unauthorized) error response.
        </t>
        <t indent="0" pn="section-4.2-7">
          As specified in <xref target="RFC9200" sectionFormat="of" section="5.8.1" format="default" derivedLink="https://rfc-editor.org/rfc/rfc9200#section-5.8.1" derivedContent="RFC9200"/>, when receiving an updated access token with updated authorization information from the client (see <xref target="c-as" format="default" sectionFormat="of" derivedContent="Section 3.1"/>), it is recommended that the RS overwrites the previous token; that is, only the latest authorization information in the token received by the RS is valid. This simplifies the process needed by the RS to keep track of authorization information for a given client.
        </t>
        <section anchor="nonce2" numbered="true" toc="include" removeInRFC="false" pn="section-4.2.1">
          <name slugifiedName="name-the-nonce-2-parameter">The Nonce 2 Parameter</name>
          <t indent="0" pn="section-4.2.1-1">
             The <tt>nonce2</tt> parameter <bcp14>MUST</bcp14> be sent from the RS to the client if the ACE profile used is <tt>coap_oscore</tt> and the message is not a response to an update of access rights, protected with an existing OSCORE security context. The parameter is encoded as a byte string for
   CBOR-based interactions and as a string (base64-encoded binary) for
   JSON-based interactions. This parameter is registered in <xref target="iana-nonces-ids" format="default" sectionFormat="of" derivedContent="Section 9.2"/>
          </t>
        </section>
        <section anchor="id2" numbered="true" toc="include" removeInRFC="false" pn="section-4.2.2">
          <name slugifiedName="name-the-ace_server_recipientid-">The ace_server_recipientid Parameter</name>
          <t indent="0" pn="section-4.2.2-1">
             The <tt>ace_server_recipientid</tt> parameter <bcp14>MUST</bcp14> be sent from the RS to the client if the ACE profile used is <tt>coap_oscore</tt> and the message is not a response to an update of access rights, protected with an existing OSCORE security context. The parameter is encoded as a byte string for
   CBOR-based interactions and as a string (base64-encoded binary) for
   JSON-based interactions. This parameter is registered in <xref target="iana-nonces-ids" format="default" sectionFormat="of" derivedContent="Section 9.2"/>
          </t>
        </section>
      </section>
      <section anchor="oscore-setup" numbered="true" toc="include" removeInRFC="false" pn="section-4.3">
        <name slugifiedName="name-oscore-setup">OSCORE Setup</name>
        <t indent="0" pn="section-4.3-1">
          Once the 2.01 (Created) response is received from the RS, following the POST request to authz-info endpoint, the client <bcp14>MUST</bcp14> extract the bstr nonce N2 from the <tt>nonce2</tt> parameter in the CBOR map in the payload of the response. Then, the client <bcp14>MUST</bcp14> set the Master Salt of the security context created to communicate with the RS to the concatenation of salt, N1, and N2 in this order: Master Salt = salt | N1 | N2, where | denotes byte string concatenation, salt is the CBOR byte string received from the AS in <xref target="as-c" format="default" sectionFormat="of" derivedContent="Section 3.2"/>, and N1 and N2 are the two nonces encoded as CBOR byte strings.  An example of Master Salt construction using CBOR encoding is given in <xref target="ms-ex" format="default" sectionFormat="of" derivedContent="Figure 13"/>.
        </t>
        <figure anchor="ms-ex" align="left" suppress-title="false" pn="figure-13">
          <name slugifiedName="name-example-of-master-salt-cons">Example of Master Salt Construction Using CBOR Encoding</name>
          <sourcecode name="" type="" markers="false" pn="section-4.3-2.1">
N1, N2, and input salt expressed in CBOR diagnostic notation:
      nonce1 = h'018a278f7faab55a'
      nonce2 = h'25a8991cd700ac01'
      input salt = h'f9af838368e353e78888e1426bd94e6f'

N1, N2, and input salt as CBOR encoded byte strings:
      nonce1 = 0x48018a278f7faab55a
      nonce2 = 0x4825a8991cd700ac01
      input salt = 0x50f9af838368e353e78888e1426bd94e6f

Master Salt = 0x50 f9af838368e353e78888e1426bd94e6f
                48 018a278f7faab55a 48 25a8991cd700ac01
</sourcecode>
        </figure>
        <t indent="0" pn="section-4.3-3">
          If JSON is used instead of CBOR, the Master Salt of the security context is the base64 encoding of the concatenation of the same parameters, each of them prefixed by their size, encoded in 1 byte. When using JSON, the nonces and input salt have a maximum size of 255 bytes. An example of Master Salt construction using base64 encoding is given in <xref target="ms-ex-2" format="default" sectionFormat="of" derivedContent="Figure 14"/>.
        </t>
        <figure anchor="ms-ex-2" align="left" suppress-title="false" pn="figure-14">
          <name slugifiedName="name-example-of-master-salt-const">Example of Master Salt Construction Using Base64 Encoding</name>
          <sourcecode name="" type="" markers="false" pn="section-4.3-4.1">
N1, N2, and input salt values:
      nonce1 = 0x018a278f7faab55a (8 bytes)
      nonce2 = 0x25a8991cd700ac01 (8 bytes)
      input salt = 0xf9af838368e353e78888e1426bd94e6f (16 bytes)

Input to base64 encoding: 0x10 f9af838368e353e78888e1426bd94e6f
                            08 018a278f7faab55a 08 25a8991cd700ac01

Master Salt = b64'EPmvg4No41PniIjhQmvZTm8IAYonj3+qtVoIJaiZHNcArAE='
</sourcecode>
        </figure>
        <t indent="0" pn="section-4.3-5">
           The client <bcp14>MUST</bcp14> set the Sender ID to the <tt>ace_server_recipientid</tt> received in <xref target="rs-c" format="default" sectionFormat="of" derivedContent="Section 4.2"/> and set the Recipient ID to the <tt>ace_client_recipientid</tt> sent in <xref target="c-rs" format="default" sectionFormat="of" derivedContent="Section 4.1"/>. The client <bcp14>MUST</bcp14> set the Master Secret from the parameter received from the AS in <xref target="as-c" format="default" sectionFormat="of" derivedContent="Section 3.2"/>. The client <bcp14>MUST</bcp14> set the AEAD algorithm, ID Context, HKDF, and OSCORE version from the parameters received from the AS in <xref target="as-c" format="default" sectionFormat="of" derivedContent="Section 3.2"/>, if present. In case an optional parameter is omitted, the default value <bcp14>SHALL</bcp14> be used as described in Sections <xref target="RFC8613" sectionFormat="bare" section="3.2" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8613#section-3.2" derivedContent="RFC8613"/> and <xref target="RFC8613" sectionFormat="bare" section="5.4" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8613#section-5.4" derivedContent="RFC8613"/> of <xref target="RFC8613" format="default" sectionFormat="of" derivedContent="RFC8613"/>. After that, the client <bcp14>MUST</bcp14> derive the complete security context following <xref target="RFC8613" sectionFormat="of" section="3.2.1" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8613#section-3.2.1" derivedContent="RFC8613"/>. From this point on, the client <bcp14>MUST</bcp14> use this security context to communicate with the RS when accessing the resources as specified by the authorization information.
        </t>
        <t indent="0" pn="section-4.3-6">
          If any of the expected parameters are missing (e.g., any of the mandatory parameters from the AS or the RS), or if <tt>ace_client_recipientid</tt> equals <tt>ace_server_recipientid</tt> (and as a consequence, the Sender and Recipient Keys derived would be equal; see <xref target="RFC8613" sectionFormat="of" section="3.3" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8613#section-3.3" derivedContent="RFC8613"/>), then the client <bcp14>MUST</bcp14> stop the exchange and <bcp14>MUST NOT</bcp14> derive the security context. The client <bcp14>MAY</bcp14> restart the exchange, to get the correct security material.
        </t>
        <t indent="0" pn="section-4.3-7">
          The client then uses this security context to send requests to the RS using OSCORE.
        </t>
        <t indent="0" pn="section-4.3-8">
          After sending the 2.01 (Created) response, the RS <bcp14>MUST</bcp14> set the Master Salt of the security context created to communicate with the client to the concatenation of salt, N1, and N2 in the same way described above. An example of Master Salt construction using CBOR encoding is given in <xref target="ms-ex" format="default" sectionFormat="of" derivedContent="Figure 13"/> and using base64 encoding is given in <xref target="ms-ex-2" format="default" sectionFormat="of" derivedContent="Figure 14"/>. The RS <bcp14>MUST</bcp14> set the Sender ID from the <tt>ace_client_recipientid</tt> received in <xref target="c-rs" format="default" sectionFormat="of" derivedContent="Section 4.1"/> and set the Recipient ID from the <tt>ace_server_recipientid</tt> sent in <xref target="rs-c" format="default" sectionFormat="of" derivedContent="Section 4.2"/>. The RS <bcp14>MUST</bcp14> set the Master Secret from the parameter received from the AS and forwarded by the client in the access token in <xref target="c-rs" format="default" sectionFormat="of" derivedContent="Section 4.1"/> after validation of the token as specified in <xref target="rs-c" format="default" sectionFormat="of" derivedContent="Section 4.2"/>. The RS <bcp14>MUST</bcp14> set the AEAD algorithm, ID Context, HKDF, and OSCORE version from the parameters received from the AS and forwarded by the client in the access token in <xref target="c-rs" format="default" sectionFormat="of" derivedContent="Section 4.1"/> after validation of the token as specified in <xref target="rs-c" format="default" sectionFormat="of" derivedContent="Section 4.2"/>, if present. In case an optional parameter is omitted, the default value <bcp14>SHALL</bcp14> be used as described in Sections <xref target="RFC8613" sectionFormat="bare" section="3.2" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8613#section-3.2" derivedContent="RFC8613"/> and <xref target="RFC8613" sectionFormat="bare" section="5.4" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8613#section-5.4" derivedContent="RFC8613"/> of <xref target="RFC8613" format="default" sectionFormat="of" derivedContent="RFC8613"/>. After that, the RS <bcp14>MUST</bcp14> derive the complete security context following <xref target="RFC8613" sectionFormat="of" section="3.2.1" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8613#section-3.2.1" derivedContent="RFC8613"/> and <bcp14>MUST</bcp14> associate this security context with the authorization information from the access token.
        </t>
        <t indent="0" pn="section-4.3-9">
          The RS then uses this security context to verify requests and send responses to the client using OSCORE. If OSCORE verification fails, error responses are used, as specified in <xref target="RFC8613" sectionFormat="of" section="8" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8613#section-8" derivedContent="RFC8613"/>. Additionally, if OSCORE verification succeeds, the verification of access rights is performed as described in <xref target="tok-ver" format="default" sectionFormat="of" derivedContent="Section 4.4"/>. The RS <bcp14>MUST NOT</bcp14> use the security context after the related token has expired and <bcp14>MUST</bcp14> respond with an unprotected 4.01 (Unauthorized) error message to
requests received that correspond to a security context with an expired
token.
        </t>
        <t indent="0" pn="section-4.3-10">
          Note that the ID Context can be assigned by the AS, communicated and set in both the RS and client after the exchange specified in this profile is executed. Subsequently, the client and RS can update their ID Context by running a mechanism such as the one defined in <xref target="RFC8613" sectionFormat="of" section="B.2" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8613#appendix-B.2" derivedContent="RFC8613"/> if they both support it and are configured to do so. In that case, the ID Context in the OSCORE security context will not match the <tt>contextId</tt> parameter of the corresponding OSCORE_Input_Material. Running Appendix <xref target="RFC8613" sectionFormat="bare" section="B.2" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8613#appendix-B.2" derivedContent="RFC8613"/> results in the keying material being updated in the security contexts of the client and RS; this same result can also be achieved by the client reposting the access token to the unprotected /authz-info endpoint at the RS, as described in <xref target="c-rs" format="default" sectionFormat="of" derivedContent="Section 4.1"/>, but without updating the ID Context.
        </t>
      </section>
      <section anchor="tok-ver" numbered="true" toc="include" removeInRFC="false" pn="section-4.4">
        <name slugifiedName="name-access-rights-verification">Access Rights Verification</name>
        <t indent="0" pn="section-4.4-1">
          The RS <bcp14>MUST</bcp14> follow the procedures defined in <xref target="RFC9200" sectionFormat="of" section="5.8.2" format="default" derivedLink="https://rfc-editor.org/rfc/rfc9200#section-5.8.2" derivedContent="RFC9200"/>: if an RS receives an OSCORE-protected request from a client, then the RS processes it according to <xref target="RFC8613" format="default" sectionFormat="of" derivedContent="RFC8613"/>. If OSCORE verification succeeds, and the target resource
          requires authorization, the RS retrieves the authorization information using the access token associated to the security context. The RS then must verify that the authorization information covers the resource and the action requested.
        </t>
      </section>
    </section>
    <section anchor="introsp" numbered="true" toc="include" removeInRFC="false" pn="section-5">
      <name slugifiedName="name-secure-communication-with-a">Secure Communication with AS</name>
      <t indent="0" pn="section-5-1">
        As specified in the ACE framework (<xref target="RFC9200" sectionFormat="of" section="5.9" format="default" derivedLink="https://rfc-editor.org/rfc/rfc9200#section-5.9" derivedContent="RFC9200"/>), the requesting entity (RS and/or client) and the AS communicates via the introspection or token endpoint. The use of CoAP and OSCORE <xref target="RFC8613" format="default" sectionFormat="of" derivedContent="RFC8613"/> for this communication is <bcp14>RECOMMENDED</bcp14> in this profile; other protocols fulfilling the security requirements defined in <xref target="RFC9200" sectionFormat="of" section="5" format="default" derivedLink="https://rfc-editor.org/rfc/rfc9200#section-5" derivedContent="RFC9200"/> (such as HTTP and DTLS or TLS) <bcp14>MAY</bcp14> be used instead.
      </t>
      <t indent="0" pn="section-5-2">
        If OSCORE is used, the requesting entity and the AS are expected to have preestablished security contexts in place.  How these security contexts are established is out of scope for this profile.  Furthermore, the requesting entity and the AS communicate through the introspection endpoint as specified in <xref target="RFC9200" sectionFormat="of" section="5.9" format="default" derivedLink="https://rfc-editor.org/rfc/rfc9200#section-5.9" derivedContent="RFC9200"/> and through the token endpoint as specified in <xref target="RFC9200" sectionFormat="of" section="5.8" format="default" derivedLink="https://rfc-editor.org/rfc/rfc9200#section-5.8" derivedContent="RFC9200"/>.
      </t>
    </section>
    <section anchor="sec-ctx-discard" numbered="true" toc="include" removeInRFC="false" pn="section-6">
      <name slugifiedName="name-discarding-the-security-con">Discarding the Security Context</name>
      <t indent="0" pn="section-6-1">
        There are a number of scenarios where a client or RS needs to discard the OSCORE security context and acquire a new one.
      </t>
      <t indent="0" pn="section-6-2">
        The client <bcp14>MUST</bcp14> discard the current security context associated with an RS when any of the following occurs:
      </t>
      <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-6-3">
        <li pn="section-6-3.1"> the sequence number space ends. </li>
        <li pn="section-6-3.2"> the access token associated with the context becomes invalid due to, for example, expiration. </li>
        <li pn="section-6-3.3"> the client receives a number of 4.01 Unauthorized responses to OSCORE requests using the same security context. The exact number needs to be specified by the application. </li>
        <li pn="section-6-3.4"> the client receives a new nonce in the 2.01 (Created) response (see <xref target="rs-c" format="default" sectionFormat="of" derivedContent="Section 4.2"/>) to a POST request to the authz-info endpoint, when reposting a (non-expired) token associated to the existing context. </li>
      </ul>
      <t indent="0" pn="section-6-4">
        The RS <bcp14>MUST</bcp14> discard the current security context associated with a client when any of the following occurs:
      </t>
      <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-6-5">
        <li pn="section-6-5.1"> the sequence number space ends. </li>
        <li pn="section-6-5.2"> the access token associated with the context expires. </li>
        <li pn="section-6-5.3"> the client has successfully replaced the current security context with a newer one by posting an access token to the unprotected /authz-info endpoint at the RS, e.g., by reposting the same token, as specified in <xref target="c-rs" format="default" sectionFormat="of" derivedContent="Section 4.1"/>.</li>
      </ul>
      <t indent="0" pn="section-6-6">
        Whenever one more access token is successfully posted to the RS, and a new security context is derived between the client and RS, messages in transit that were protected with the previous security context might not pass verification, as the old context is discarded. That means that messages sent shortly before the client posts one more access tokens to the RS might not successfully reach the destination. Analogously, implementations may want to cancel CoAP observations at the RS registered before the security context is replaced, or conversely, they will need to implement a mechanism to ensure that those observations are to be protected with the newly derived security context.
      </t>
    </section>
    <section anchor="sec-cons" numbered="true" toc="include" removeInRFC="false" pn="section-7">
      <name slugifiedName="name-security-considerations">Security Considerations</name>
      <t indent="0" pn="section-7-1">
        This document specifies a profile for the ACE framework
        <xref target="RFC9200" format="default" sectionFormat="of" derivedContent="RFC9200"/>.  Thus, the general security
        considerations from the framework also apply to this profile.
      </t>
      <t indent="0" pn="section-7-2">
        Furthermore, the general security considerations of OSCORE <xref target="RFC8613" format="default" sectionFormat="of" derivedContent="RFC8613"/> also apply to this specific
        use of the OSCORE protocol.
      </t>
      <t indent="0" pn="section-7-3">
        As previously stated, the proof of possession in this profile is performed by both parties verifying that they have established the same security context, as specified in <xref target="oscore-setup" format="default" sectionFormat="of" derivedContent="Section 4.3"/>, which means that both the OSCORE request and the OSCORE response passes verification.
        RS authentication requires both that the client trusts the AS and that the OSCORE response from the RS passes verification.
      </t>
      <t indent="0" pn="section-7-4">
        OSCORE is designed to secure point-to-point communication,
        providing a secure binding between the request and the response(s).
        Thus, the basic OSCORE protocol is not intended for use in
        point-to-multipoint communication (e.g., multicast, publish-subscribe).
        Implementers of this profile should make sure that their use case
        corresponds to the expected use of OSCORE, to prevent weakening the
        security assurances provided by OSCORE.
      </t>
      <t indent="0" pn="section-7-5">
        Since the use of nonces N1 and N2 during the exchange guarantees uniqueness of AEAD keys and nonces, it is <bcp14>REQUIRED</bcp14> that the exchanged nonces are not reused with the same input keying material even in case of reboots. The exchange of 64-bit random nonces is <bcp14>RECOMMENDED</bcp14> in this document.  Considering the birthday paradox, the average collision for each nonce will happen after 2<sup>32</sup> messages, which is considerably more token provisionings than would be expected for intended applications. If applications use something else, such as a counter, they need to guarantee that reboot and loss of state on either node does not provoke reuse.
        If that is not guaranteed, nodes are susceptible to reuse of AEAD (nonce, key) pairs, especially since an on-path attacker can cause the use of a previously exchanged client nonce N1 for security context establishment by replaying the corresponding client-to-server message.
      </t>
      <t indent="0" pn="section-7-6">
        In this profile, it is <bcp14>RECOMMENDED</bcp14> that the RS maintains a single access token for each client. The use of multiple access tokens for a single client increases the strain on the resource server as it must consider every access token and calculate the actual permissions of the client. Also, tokens indicating different or disjoint permissions from each other may lead the server to enforce wrong permissions. If one of the access tokens expires earlier than others, the resulting permissions may offer insufficient protection. Developers <bcp14>SHOULD</bcp14> avoid using multiple access tokens for the same client.
      </t>
      <t indent="0" pn="section-7-7">
        If a single OSCORE Input Material is used with multiple RSs, the RSs can impersonate the client to one of the other RSs and impersonate another RS to the client. If a Master Secret is used with several clients, the clients can impersonate RS to one of the other clients. Similarly, if symmetric keys are used to integrity protect the token between AS and RS and the token can be used with multiple RSs, the RSs can impersonate AS to one of the other RSs. If the token key is used for any other communication between the RSs and AS, the RSs can impersonate each other to the AS.
      </t>
    </section>
    <section numbered="true" toc="include" removeInRFC="false" pn="section-8">
      <name slugifiedName="name-privacy-considerations">Privacy Considerations</name>
      <t indent="0" pn="section-8-1">
        This document specifies a profile for the ACE framework
        <xref target="RFC9200" format="default" sectionFormat="of" derivedContent="RFC9200"/>.  Thus, the general privacy
        considerations from the framework also apply to this profile.
      </t>
      <t indent="0" pn="section-8-2">
        As this document uses OSCORE, the privacy considerations from
	<xref target="RFC8613" format="default" sectionFormat="of" derivedContent="RFC8613"/> apply here as well.
      </t>
      <t indent="0" pn="section-8-3">
      	An unprotected response to an unauthorized request may disclose information about the resource server and/or its existing relationship with the client. It is advisable to include as little information as possible in an unencrypted response. When an OSCORE security context already exists between the client and the resource server, more detailed information may be included.
      </t>
      <t indent="0" pn="section-8-4">
        The token is sent in the clear to the authz-info endpoint, so if a client uses the same single token from multiple locations with multiple resource servers, it can risk being tracked by the token's value even when the access token is encrypted.
      </t>
      <t indent="0" pn="section-8-5">
        The nonces exchanged in the request and response to the authz-info endpoint are also sent in the clear, so using random nonces is best for privacy (as opposed to, e.g., a counter, which might leak some information about the client).
      </t>
      <t indent="0" pn="section-8-6">
        The identifiers used in OSCORE, negotiated between the client and RS, are privacy sensitive (see <xref target="RFC8613" sectionFormat="of" section="12.8" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8613#section-12.8" derivedContent="RFC8613"/>) and could reveal information about the client, or they may be used for correlating requests from one client.
      </t>
      <t indent="0" pn="section-8-7">
      	Note that some information might still leak after OSCORE is established, due to observable message sizes, the source, and the destination addresses.
      </t>
    </section>
    <section numbered="true" toc="include" removeInRFC="false" pn="section-9">
      <name slugifiedName="name-iana-considerations">IANA Considerations</name>
      <section numbered="true" toc="include" removeInRFC="false" pn="section-9.1">
        <name slugifiedName="name-ace-profile-registry">ACE Profile Registry</name>
        <t indent="0" pn="section-9.1-1">The following registration has been made in the "ACE Profiles"
        registry following the procedure specified in <xref target="RFC9200" sectionFormat="of" section="8.8" format="default" derivedLink="https://rfc-editor.org/rfc/rfc9200#section-8.8" derivedContent="RFC9200"/>:</t>
        <dl spacing="compact" indent="3" newline="false" pn="section-9.1-2">
          <dt pn="section-9.1-2.1">Name:</dt>
          <dd pn="section-9.1-2.2"> coap_oscore</dd>
          <dt pn="section-9.1-2.3">Description:</dt>
          <dd pn="section-9.1-2.4">Profile for using OSCORE to secure communication
        between constrained nodes using the Authentication and Authorization
        for Constrained Environments framework.</dd>
          <dt pn="section-9.1-2.5">CBOR Value:</dt>
          <dd pn="section-9.1-2.6">2</dd>
          <dt pn="section-9.1-2.7">Reference:</dt>
          <dd pn="section-9.1-2.8">RFC 9203</dd>
        </dl>
      </section>
      <section anchor="iana-nonces-ids" numbered="true" toc="include" removeInRFC="false" pn="section-9.2">
        <name slugifiedName="name-oauth-parameters-registry">OAuth Parameters Registry</name>
        <t indent="0" pn="section-9.2-1">The following registrations have been made in the "OAuth Parameters"
        registry <xref target="IANA.OAuthParameters" format="default" sectionFormat="of" derivedContent="IANA.OAuthParameters"/> following the procedure specified in <xref target="RFC6749" sectionFormat="of" section="11.2" format="default" derivedLink="https://rfc-editor.org/rfc/rfc6749#section-11.2" derivedContent="RFC6749"/>:</t>
        <dl spacing="compact" indent="3" newline="false" pn="section-9.2-2">
          <dt pn="section-9.2-2.1">Parameter name:</dt>
          <dd pn="section-9.2-2.2">nonce1</dd>
          <dt pn="section-9.2-2.3">Parameter usage location:</dt>
          <dd pn="section-9.2-2.4">client-rs request</dd>
          <dt pn="section-9.2-2.5">Change Controller:</dt>
          <dd pn="section-9.2-2.6">IETF</dd>
          <dt pn="section-9.2-2.7">Specification Document(s):</dt>
          <dd pn="section-9.2-2.8">RFC 9203</dd>
        </dl>
        <dl spacing="compact" indent="3" newline="false" pn="section-9.2-3">
          <dt pn="section-9.2-3.1">Parameter name:</dt>
          <dd pn="section-9.2-3.2">nonce2</dd>
          <dt pn="section-9.2-3.3">Parameter usage location:</dt>
          <dd pn="section-9.2-3.4">rs-client response</dd>
          <dt pn="section-9.2-3.5">Change Controller:</dt>
          <dd pn="section-9.2-3.6">IETF</dd>
          <dt pn="section-9.2-3.7">Specification Document(s):</dt>
          <dd pn="section-9.2-3.8">RFC 9203</dd>
        </dl>
        <dl spacing="compact" indent="3" newline="false" pn="section-9.2-4">
          <dt pn="section-9.2-4.1">Parameter name:</dt>
          <dd pn="section-9.2-4.2">ace_client_recipientid</dd>
          <dt pn="section-9.2-4.3">Parameter usage location:</dt>
          <dd pn="section-9.2-4.4">client-rs request</dd>
          <dt pn="section-9.2-4.5">Change Controller:</dt>
          <dd pn="section-9.2-4.6">IETF</dd>
          <dt pn="section-9.2-4.7">Specification Document(s):</dt>
          <dd pn="section-9.2-4.8">RFC 9203</dd>
        </dl>
        <dl spacing="compact" indent="3" newline="false" pn="section-9.2-5">
          <dt pn="section-9.2-5.1">Parameter name:</dt>
          <dd pn="section-9.2-5.2">ace_server_recipientid</dd>
          <dt pn="section-9.2-5.3">Parameter usage location:</dt>
          <dd pn="section-9.2-5.4">rs-client response</dd>
          <dt pn="section-9.2-5.5">Change Controller:</dt>
          <dd pn="section-9.2-5.6">IETF</dd>
          <dt pn="section-9.2-5.7">Specification Document(s):</dt>
          <dd pn="section-9.2-5.8">RFC 9203</dd>
        </dl>
      </section>
      <section numbered="true" toc="include" removeInRFC="false" pn="section-9.3">
        <name slugifiedName="name-oauth-parameters-cbor-mappi">OAuth Parameters CBOR Mappings Registry</name>
        <t indent="0" pn="section-9.3-1">The following registrations have been made in the "OAuth Parameters CBOR Mappings"
        registry following the procedure specified in <xref target="RFC9200" sectionFormat="of" section="8.10" format="default" derivedLink="https://rfc-editor.org/rfc/rfc9200#section-8.10" derivedContent="RFC9200"/>:</t>
        <dl spacing="compact" indent="12" newline="false" pn="section-9.3-2">
          <dt pn="section-9.3-2.1">Name:</dt>
          <dd pn="section-9.3-2.2">nonce1</dd>
          <dt pn="section-9.3-2.3">CBOR Key:</dt>
          <dd pn="section-9.3-2.4">40</dd>
          <dt pn="section-9.3-2.5">Value Type:</dt>
          <dd pn="section-9.3-2.6">bstr</dd>
          <dt pn="section-9.3-2.7">Reference:</dt>
          <dd pn="section-9.3-2.8">RFC 9203</dd>
        </dl>
        <dl spacing="compact" indent="12" newline="false" pn="section-9.3-3">
          <dt pn="section-9.3-3.1">Name:</dt>
          <dd pn="section-9.3-3.2">nonce2</dd>
          <dt pn="section-9.3-3.3">CBOR Key:</dt>
          <dd pn="section-9.3-3.4">42</dd>
          <dt pn="section-9.3-3.5">Value Type:</dt>
          <dd pn="section-9.3-3.6">bstr</dd>
          <dt pn="section-9.3-3.7">Reference:</dt>
          <dd pn="section-9.3-3.8">RFC 9203</dd>
        </dl>
        <dl spacing="compact" indent="12" newline="false" pn="section-9.3-4">
          <dt pn="section-9.3-4.1">Name:</dt>
          <dd pn="section-9.3-4.2">ace_client_recipientid</dd>
          <dt pn="section-9.3-4.3">CBOR Key:</dt>
          <dd pn="section-9.3-4.4">43</dd>
          <dt pn="section-9.3-4.5">Value Type:</dt>
          <dd pn="section-9.3-4.6">bstr</dd>
          <dt pn="section-9.3-4.7">Reference:</dt>
          <dd pn="section-9.3-4.8">RFC 9203</dd>
        </dl>
        <dl spacing="compact" indent="12" newline="false" pn="section-9.3-5">
          <dt pn="section-9.3-5.1">Name:</dt>
          <dd pn="section-9.3-5.2">ace_server_recipientid</dd>
          <dt pn="section-9.3-5.3">CBOR Key:</dt>
          <dd pn="section-9.3-5.4">44</dd>
          <dt pn="section-9.3-5.5">Value Type:</dt>
          <dd pn="section-9.3-5.6">bstr</dd>
          <dt pn="section-9.3-5.7">Reference:</dt>
          <dd pn="section-9.3-5.8">RFC 9203</dd>
        </dl>
      </section>
      <section anchor="sec-ctx-params-reg" numbered="true" toc="include" removeInRFC="false" pn="section-9.4">
        <name slugifiedName="name-oscore-security-context-par">OSCORE Security Context Parameters Registry</name>
        <t indent="0" pn="section-9.4-1">
          IANA has created a new registry entitled "OSCORE Security Context Parameters".
          The registration procedure depends on the range of CBOR label values, following <xref target="RFC8126" format="default" sectionFormat="of" derivedContent="RFC8126"/>.
          Guidelines for the experts are provided in <xref target="review" format="default" sectionFormat="of" derivedContent="Section 9.7"/>.
        </t>
        <t indent="0" pn="section-9.4-2">
          The columns of the registry are:
        </t>
        <dl newline="false" spacing="normal" indent="3" pn="section-9.4-3">
          <dt pn="section-9.4-3.1">Name:</dt>
          <dd pn="section-9.4-3.2">
              The JSON name requested (e.g., "ms").
              Because a core goal of this document is for the resulting representations to be compact, it is <bcp14>RECOMMENDED</bcp14> that the name be short.
              This name is case sensitive.
              Names may not match other registered names in a case-insensitive manner unless the designated experts determine that there is a compelling reason to allow an exception.
              The name is not used in the CBOR encoding.
            </dd>
          <dt pn="section-9.4-3.3">CBOR Label:</dt>
          <dd pn="section-9.4-3.4">
              The value to be used to identify this name.
              Map key labels <bcp14>MUST</bcp14> be unique.
              The label can be a positive integer, a negative integer, or a string.
              Integer values between -256 and 255 and strings of length 1 are designated as Standards Track document required.
              Integer values from -65536 to -257 and from 256 to 65535 and strings of length 2 are designated as Specification Required.
              Integer values greater than 65535 and strings of length greater than 2 are designated as Expert Review.
              Integer values less than -65536 are marked as Private Use.
            </dd>
          <dt pn="section-9.4-3.5">CBOR Type:</dt>
          <dd pn="section-9.4-3.6">
              This field contains the CBOR type for the field.
            </dd>
          <dt pn="section-9.4-3.7">Registry:</dt>
          <dd pn="section-9.4-3.8">
              This field denotes the registry that values may come from, if one exists.
            </dd>
          <dt pn="section-9.4-3.9">Description:</dt>
          <dd pn="section-9.4-3.10">
              This field contains a brief description for the field.
            </dd>
          <dt pn="section-9.4-3.11">Reference:</dt>
          <dd pn="section-9.4-3.12">
              This contains a pointer to the public specification for the field, if one exists.
            </dd>
        </dl>
        <t indent="0" pn="section-9.4-4">
          This registry has been initially populated by the values in <xref target="key-labels" format="default" sectionFormat="of" derivedContent="Table 1"/>.

          The Reference column for all of these entries is this document.
        </t>
      </section>
      <section anchor="osc-cwt" numbered="true" toc="include" removeInRFC="false" pn="section-9.5">
        <name slugifiedName="name-cwt-confirmation-methods-re">CWT Confirmation Methods Registry</name>
        <t indent="0" pn="section-9.5-1">The following registration has been made in the "CWT Confirmation Methods" registry <xref target="IANA.CWTConfirmationMethods" format="default" sectionFormat="of" derivedContent="IANA.CWTConfirmationMethods"/> following the procedure specified in <xref target="RFC8747" sectionFormat="of" section="7.2.1" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8747#section-7.2.1" derivedContent="RFC8747"/>:</t>
        <dl spacing="compact" indent="3" newline="false" pn="section-9.5-2">
          <dt pn="section-9.5-2.1">Confirmation Method Name:</dt>
          <dd pn="section-9.5-2.2">osc</dd>
          <dt pn="section-9.5-2.3">Confirmation Method Description:</dt>
          <dd pn="section-9.5-2.4">OSCORE_Input_Material carrying the parameters for using OSCORE per-message security with implicit key confirmation</dd>
          <dt pn="section-9.5-2.5">JWT Confirmation Method Name:</dt>
          <dd pn="section-9.5-2.6">osc</dd>
          <dt pn="section-9.5-2.7">Confirmation Key:</dt>
          <dd pn="section-9.5-2.8">4</dd>
          <dt pn="section-9.5-2.9">Confirmation Value Type(s):</dt>
          <dd pn="section-9.5-2.10">map</dd>
          <dt pn="section-9.5-2.11">Change Controller:</dt>
          <dd pn="section-9.5-2.12">IETF</dd>
          <dt pn="section-9.5-2.13">Specification Document(s):</dt>
          <dd pn="section-9.5-2.14">
            <xref target="oscore-sec-ctx" format="default" sectionFormat="of" derivedContent="Section 3.2.1"/> of RFC 9203</dd>
        </dl>
      </section>
      <section anchor="osc-jwt" numbered="true" toc="include" removeInRFC="false" pn="section-9.6">
        <name slugifiedName="name-jwt-confirmation-methods-re">JWT Confirmation Methods Registry</name>
        <t indent="0" pn="section-9.6-1">The following registration has been made in the "JWT Confirmation Methods" registry <xref target="IANA.JWTConfirmationMethods" format="default" sectionFormat="of" derivedContent="IANA.JWTConfirmationMethods"/> following the procedure specified in <xref target="RFC7800" sectionFormat="of" section="6.2.1" format="default" derivedLink="https://rfc-editor.org/rfc/rfc7800#section-6.2.1" derivedContent="RFC7800"/>:</t>
        <dl spacing="compact" indent="3" newline="false" pn="section-9.6-2">
          <dt pn="section-9.6-2.1">Confirmation Method Value:</dt>
          <dd pn="section-9.6-2.2">osc</dd>
          <dt pn="section-9.6-2.3">Confirmation Method Description:</dt>
          <dd pn="section-9.6-2.4">OSCORE_Input_Material carrying the parameters for using OSCORE per-message security with implicit key confirmation</dd>
          <dt pn="section-9.6-2.5">Change Controller:</dt>
          <dd pn="section-9.6-2.6">IETF</dd>
          <dt pn="section-9.6-2.7">Specification Document(s):</dt>
          <dd pn="section-9.6-2.8">
            <xref target="oscore-sec-ctx" format="default" sectionFormat="of" derivedContent="Section 3.2.1"/> of RFC 9203</dd>
        </dl>
      </section>
      <section anchor="review" numbered="true" toc="include" removeInRFC="false" pn="section-9.7">
        <name slugifiedName="name-expert-review-instructions">Expert Review Instructions</name>
        <t indent="0" pn="section-9.7-1">
          The IANA registry established in this document is defined to use the Expert Review registration policy.
          This section gives some general guidelines for what the experts should be looking for, but they are being designated as experts for a reason, so they should be given substantial latitude.
        </t>
        <t indent="0" pn="section-9.7-2">
          Expert reviewers should take into consideration the following points:
        </t>
        <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-9.7-3">
          <li pn="section-9.7-3.1">
              Point squatting should be discouraged. Reviewers are encouraged to get sufficient information for registration requests to ensure that the usage is not going to duplicate one that is already registered and that the point is likely to be used in deployments. The zones tagged as Private Use are intended for testing purposes and closed environments. Code points in other ranges should not be assigned for testing.
            </li>
          <li pn="section-9.7-3.2">
              Specifications are required for the Standards Track range of point assignment.
              Specifications should exist for specification required ranges, but early assignment before a specification is available is considered to be permissible. Specifications are needed for the First Come First Served range if they are expected to be used outside of closed environments in an interoperable way. When specifications are not provided, the description provided needs to have sufficient information to identify what the point is being used for.
            </li>
          <li pn="section-9.7-3.3">
              Experts should take into account the expected usage of fields when approving point assignment.
              The fact that there is a range for Standards Track documents does not mean that a Standards Track document cannot have points assigned outside of that range.
              The length of the encoded value should be weighed against how many code points of that length are left, the size of device it will be used on, and the number of code points left that encode to that size.
            </li>
        </ul>
      </section>
    </section>
  </middle>
  <back>
    <references pn="section-10">
      <name slugifiedName="name-references">References</name>
      <references pn="section-10.1">
        <name slugifiedName="name-normative-references">Normative References</name>
        <reference anchor="COSE.Algorithms" target="https://www.iana.org/assignments/cose" quoteTitle="true" derivedAnchor="COSE.Algorithms">
          <front>
            <title>COSE Algorithms</title>
            <author>
              <organization showOnFrontPage="true">IANA</organization>
            </author>
            <date/>
          </front>
        </reference>
        <reference anchor="IANA.CWTConfirmationMethods" target="https://www.iana.org/assignments/cwt" quoteTitle="true" derivedAnchor="IANA.CWTConfirmationMethods">
          <front>
            <title>CWT Confirmation Methods</title>
            <author>
              <organization showOnFrontPage="true">IANA</organization>
            </author>
            <date/>
          </front>
        </reference>
        <reference anchor="IANA.JWTConfirmationMethods" target="https://www.iana.org/assignments/jwt" quoteTitle="true" derivedAnchor="IANA.JWTConfirmationMethods">
          <front>
            <title>JWT Confirmation Methods</title>
            <author>
              <organization showOnFrontPage="true">IANA</organization>
            </author>
            <date/>
          </front>
        </reference>
        <reference anchor="IANA.OAuthParameters" target="https://www.iana.org/assignments/oauth-parameters" quoteTitle="true" derivedAnchor="IANA.OAuthParameters">
          <front>
            <title>OAuth Parameters</title>
            <author>
              <organization showOnFrontPage="true">IANA</organization>
            </author>
            <date/>
          </front>
        </reference>
        <reference anchor="RFC2119" target="https://www.rfc-editor.org/info/rfc2119" quoteTitle="true" derivedAnchor="RFC2119">
          <front>
            <title>Key words for use in RFCs to Indicate Requirement Levels</title>
            <author fullname="S. Bradner" initials="S." surname="Bradner"/>
            <date month="March" year="1997"/>
            <abstract>
              <t indent="0">In many standards track documents several words are used to signify the requirements in the specification.  These words are often capitalized.  This document defines these words as they should be interpreted in IETF documents.  This document specifies an Internet Best Current Practices for the Internet Community, and requests discussion and suggestions for improvements.</t>
            </abstract>
          </front>
          <seriesInfo name="BCP" value="14"/>
          <seriesInfo name="RFC" value="2119"/>
          <seriesInfo name="DOI" value="10.17487/RFC2119"/>
        </reference>
        <reference anchor="RFC4648" target="https://www.rfc-editor.org/info/rfc4648" quoteTitle="true" derivedAnchor="RFC4648">
          <front>
            <title>The Base16, Base32, and Base64 Data Encodings</title>
            <author fullname="S. Josefsson" initials="S." surname="Josefsson"/>
            <date month="October" year="2006"/>
            <abstract>
              <t indent="0">This document describes the commonly used base 64, base 32, and base 16 encoding schemes.  It also discusses the use of line-feeds in encoded data, use of padding in encoded data, use of non-alphabet characters in encoded data, use of different encoding alphabets, and canonical encodings. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="4648"/>
          <seriesInfo name="DOI" value="10.17487/RFC4648"/>
        </reference>
        <reference anchor="RFC5869" target="https://www.rfc-editor.org/info/rfc5869" quoteTitle="true" derivedAnchor="RFC5869">
          <front>
            <title>HMAC-based Extract-and-Expand Key Derivation Function (HKDF)</title>
            <author fullname="H. Krawczyk" initials="H." surname="Krawczyk"/>
            <author fullname="P. Eronen" initials="P." surname="Eronen"/>
            <date month="May" year="2010"/>
            <abstract>
              <t indent="0">This document specifies a simple Hashed Message Authentication Code (HMAC)-based key derivation function (HKDF), which can be used as a building block in various protocols and applications.  The key derivation function (KDF) is intended to support a wide range of applications and requirements, and is conservative in its use of cryptographic hash functions.  This document is not an Internet Standards Track specification; it is published for informational purposes.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="5869"/>
          <seriesInfo name="DOI" value="10.17487/RFC5869"/>
        </reference>
        <reference anchor="RFC7252" target="https://www.rfc-editor.org/info/rfc7252" quoteTitle="true" derivedAnchor="RFC7252">
          <front>
            <title>The Constrained Application Protocol (CoAP)</title>
            <author fullname="Z. Shelby" initials="Z." surname="Shelby"/>
            <author fullname="K. Hartke" initials="K." surname="Hartke"/>
            <author fullname="C. Bormann" initials="C." surname="Bormann"/>
            <date month="June" year="2014"/>
            <abstract>
              <t indent="0">The Constrained Application Protocol (CoAP) is a specialized web transfer protocol for use with constrained nodes and constrained (e.g., low-power, lossy) networks. The nodes often have 8-bit microcontrollers with small amounts of ROM and RAM, while constrained networks such as IPv6 over Low-Power Wireless Personal Area Networks (6LoWPANs) often have high packet error rates and a typical throughput of 10s of kbit/s. The protocol is designed for machine- to-machine (M2M) applications such as smart energy and building automation.</t>
              <t indent="0">CoAP provides a request/response interaction model between application endpoints, supports built-in discovery of services and resources, and includes key concepts of the Web such as URIs and Internet media types. CoAP is designed to easily interface with HTTP for integration with the Web while meeting specialized requirements such as multicast support, very low overhead, and simplicity for constrained environments.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="7252"/>
          <seriesInfo name="DOI" value="10.17487/RFC7252"/>
        </reference>
        <reference anchor="RFC8174" target="https://www.rfc-editor.org/info/rfc8174" quoteTitle="true" derivedAnchor="RFC8174">
          <front>
            <title>Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words</title>
            <author fullname="B. Leiba" initials="B." surname="Leiba"/>
            <date month="May" year="2017"/>
            <abstract>
              <t indent="0">RFC 2119 specifies common key words that may be used in protocol specifications.  This document aims to reduce the ambiguity by clarifying that only UPPERCASE usage of the key words have the defined special meanings.</t>
            </abstract>
          </front>
          <seriesInfo name="BCP" value="14"/>
          <seriesInfo name="RFC" value="8174"/>
          <seriesInfo name="DOI" value="10.17487/RFC8174"/>
        </reference>
        <reference anchor="RFC8392" target="https://www.rfc-editor.org/info/rfc8392" quoteTitle="true" derivedAnchor="RFC8392">
          <front>
            <title>CBOR Web Token (CWT)</title>
            <author fullname="M. Jones" initials="M." surname="Jones"/>
            <author fullname="E. Wahlstroem" initials="E." surname="Wahlstroem"/>
            <author fullname="S. Erdtman" initials="S." surname="Erdtman"/>
            <author fullname="H. Tschofenig" initials="H." surname="Tschofenig"/>
            <date month="May" year="2018"/>
            <abstract>
              <t indent="0">CBOR Web Token (CWT) is a compact means of representing claims to be transferred between two parties.  The claims in a CWT are encoded in the Concise Binary Object Representation (CBOR), and CBOR Object Signing and Encryption (COSE) is used for added application-layer security protection.  A claim is a piece of information asserted about a subject and is represented as a name/value pair consisting of a claim name and a claim value.  CWT is derived from JSON Web Token (JWT) but uses CBOR rather than JSON.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8392"/>
          <seriesInfo name="DOI" value="10.17487/RFC8392"/>
        </reference>
        <reference anchor="RFC8610" target="https://www.rfc-editor.org/info/rfc8610" quoteTitle="true" derivedAnchor="RFC8610">
          <front>
            <title>Concise Data Definition Language (CDDL): A Notational Convention to Express Concise Binary Object Representation (CBOR) and JSON Data Structures</title>
            <author fullname="H. Birkholz" initials="H." surname="Birkholz"/>
            <author fullname="C. Vigano" initials="C." surname="Vigano"/>
            <author fullname="C. Bormann" initials="C." surname="Bormann"/>
            <date month="June" year="2019"/>
            <abstract>
              <t indent="0">This document proposes a notational convention to express Concise Binary Object Representation (CBOR) data structures (RFC 7049).  Its main goal is to provide an easy and unambiguous way to express structures for protocol messages and data formats that use CBOR or JSON.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8610"/>
          <seriesInfo name="DOI" value="10.17487/RFC8610"/>
        </reference>
        <reference anchor="RFC8613" target="https://www.rfc-editor.org/info/rfc8613" quoteTitle="true" derivedAnchor="RFC8613">
          <front>
            <title>Object Security for Constrained RESTful Environments (OSCORE)</title>
            <author fullname="G. Selander" initials="G." surname="Selander"/>
            <author fullname="J. Mattsson" initials="J." surname="Mattsson"/>
            <author fullname="F. Palombini" initials="F." surname="Palombini"/>
            <author fullname="L. Seitz" initials="L." surname="Seitz"/>
            <date month="July" year="2019"/>
            <abstract>
              <t indent="0">This document defines Object Security for Constrained RESTful Environments (OSCORE), a method for application-layer protection of the Constrained Application Protocol (CoAP), using CBOR Object Signing and Encryption (COSE). OSCORE provides end-to-end protection between endpoints communicating using CoAP or CoAP-mappable HTTP. OSCORE is designed for constrained nodes and networks supporting a range of proxy operations, including translation between different transport protocols.</t>
              <t indent="0">Although an optional functionality of CoAP, OSCORE alters CoAP options processing and IANA registration. Therefore, this document updates RFC 7252.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8613"/>
          <seriesInfo name="DOI" value="10.17487/RFC8613"/>
        </reference>
        <reference anchor="RFC8949" target="https://www.rfc-editor.org/info/rfc8949" quoteTitle="true" derivedAnchor="RFC8949">
          <front>
            <title>Concise Binary Object Representation (CBOR)</title>
            <author fullname="C. Bormann" initials="C." surname="Bormann"/>
            <author fullname="P. Hoffman" initials="P." surname="Hoffman"/>
            <date month="December" year="2020"/>
            <abstract>
              <t indent="0">The Concise Binary Object Representation (CBOR) is a data format whose design goals include the possibility of extremely small code size, fairly small message size, and extensibility without the need for version negotiation. These design goals make it different from earlier binary serializations such as ASN.1 and MessagePack.</t>
              <t indent="0">This document obsoletes RFC 7049, providing editorial improvements, new details, and errata fixes while keeping full compatibility with the interchange format of RFC 7049. It does not create a new version of the format.</t>
            </abstract>
          </front>
          <seriesInfo name="STD" value="94"/>
          <seriesInfo name="RFC" value="8949"/>
          <seriesInfo name="DOI" value="10.17487/RFC8949"/>
        </reference>
        <reference anchor="RFC9052" target="https://www.rfc-editor.org/info/rfc9052" quoteTitle="true" derivedAnchor="RFC9052">
          <front>
            <title>CBOR Object Signing and Encryption (COSE): Structures and Process</title>
            <author initials="J" surname="Schaad" fullname="Jim Schaad">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2022" month="August"/>
          </front>
          <seriesInfo name="STD" value="96"/>
          <seriesInfo name="RFC" value="9052"/>
          <seriesInfo name="DOI" value="10.17487/RFC9052"/>
        </reference>
        <reference anchor="RFC9053" target="https://www.rfc-editor.org/info/rfc9053" quoteTitle="true" derivedAnchor="RFC9053">
          <front>
            <title>CBOR Object Signing and Encryption (COSE): Initial Algorithms</title>
            <author initials="J" surname="Schaad" fullname="Jim Schaad">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2022" month="August"/>
          </front>
          <seriesInfo name="RFC" value="9053"/>
          <seriesInfo name="DOI" value="10.17487/RFC9053"/>
        </reference>
        <reference anchor="RFC9200" target="https://www.rfc-editor.org/info/rfc9200" quoteTitle="true" derivedAnchor="RFC9200">
          <front>
            <title>Authentication and Authorization for Constrained Environments Using the OAuth 2.0 Framework (ACE-OAuth)</title>
            <author initials="L" surname="Seitz" fullname="Ludwig Seitz">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="G" surname="Selander" fullname="Goeran Selander">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="E" surname="Wahlstroem" fullname="Erik Wahlstroem">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="S" surname="Erdtman" fullname="Samuel Erdtman">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="H" surname="Tschofenig" fullname="Hannes Tschofenig">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2022" month="August"/>
          </front>
          <seriesInfo name="RFC" value="9200"/>
          <seriesInfo name="DOI" value="10.17487/RFC9200"/>
        </reference>
        <reference anchor="RFC9201" target="https://www.rfc-editor.org/info/rfc9201" quoteTitle="true" derivedAnchor="RFC9201">
          <front>
            <title>Additional OAuth Parameters for Authentication and Authorization for Constrained Environments (ACE)</title>
            <author initials="L" surname="Seitz" fullname="Ludwig Seitz">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2022" month="August"/>
          </front>
          <seriesInfo name="RFC" value="9201"/>
          <seriesInfo name="DOI" value="10.17487/RFC9201"/>
        </reference>
      </references>
      <references pn="section-10.2">
        <name slugifiedName="name-informative-references">Informative References</name>
        <reference anchor="RFC4949" target="https://www.rfc-editor.org/info/rfc4949" quoteTitle="true" derivedAnchor="RFC4949">
          <front>
            <title>Internet Security Glossary, Version 2</title>
            <author fullname="R. Shirey" initials="R." surname="Shirey"/>
            <date month="August" year="2007"/>
            <abstract>
              <t indent="0">This Glossary provides definitions, abbreviations, and explanations of terminology for information system security.  The 334 pages of entries offer recommendations to improve the comprehensibility of written material that is generated in the Internet Standards Process (RFC 2026).  The recommendations follow the principles that such writing should (a) use the same term or definition whenever the same concept is mentioned; (b) use terms in their plainest, dictionary sense; (c) use terms that are already well-established in open publications; and (d) avoid terms that either favor a particular vendor or favor a particular technology or mechanism over other, competing techniques that already exist or could be developed.  This memo provides information for the Internet community.</t>
            </abstract>
          </front>
          <seriesInfo name="FYI" value="36"/>
          <seriesInfo name="RFC" value="4949"/>
          <seriesInfo name="DOI" value="10.17487/RFC4949"/>
        </reference>
        <reference anchor="RFC6749" target="https://www.rfc-editor.org/info/rfc6749" quoteTitle="true" derivedAnchor="RFC6749">
          <front>
            <title>The OAuth 2.0 Authorization Framework</title>
            <author fullname="D. Hardt" initials="D." role="editor" surname="Hardt"/>
            <date month="October" year="2012"/>
            <abstract>
              <t indent="0">The OAuth 2.0 authorization framework enables a third-party application to obtain limited access to an HTTP service, either on behalf of a resource owner by orchestrating an approval interaction between the resource owner and the HTTP service, or by allowing the third-party application to obtain access on its own behalf.  This specification replaces and obsoletes the OAuth 1.0 protocol described in RFC 5849. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="6749"/>
          <seriesInfo name="DOI" value="10.17487/RFC6749"/>
        </reference>
        <reference anchor="RFC7800" target="https://www.rfc-editor.org/info/rfc7800" quoteTitle="true" derivedAnchor="RFC7800">
          <front>
            <title>Proof-of-Possession Key Semantics for JSON Web Tokens (JWTs)</title>
            <author fullname="M. Jones" initials="M." surname="Jones"/>
            <author fullname="J. Bradley" initials="J." surname="Bradley"/>
            <author fullname="H. Tschofenig" initials="H." surname="Tschofenig"/>
            <date month="April" year="2016"/>
            <abstract>
              <t indent="0">This specification describes how to declare in a JSON Web Token (JWT) that the presenter of the JWT possesses a particular proof-of- possession key and how the recipient can cryptographically confirm proof of possession of the key by the presenter.  Being able to prove possession of a key is also sometimes described as the presenter being a holder-of-key.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="7800"/>
          <seriesInfo name="DOI" value="10.17487/RFC7800"/>
        </reference>
        <reference anchor="RFC8126" target="https://www.rfc-editor.org/info/rfc8126" quoteTitle="true" derivedAnchor="RFC8126">
          <front>
            <title>Guidelines for Writing an IANA Considerations Section in RFCs</title>
            <author fullname="M. Cotton" initials="M." surname="Cotton"/>
            <author fullname="B. Leiba" initials="B." surname="Leiba"/>
            <author fullname="T. Narten" initials="T." surname="Narten"/>
            <date month="June" year="2017"/>
            <abstract>
              <t indent="0">Many protocols make use of points of extensibility that use constants to identify various protocol parameters. To ensure that the values in these fields do not have conflicting uses and to promote interoperability, their allocations are often coordinated by a central record keeper. For IETF protocols, that role is filled by the Internet Assigned Numbers Authority (IANA).</t>
              <t indent="0">To make assignments in a given registry prudently, guidance describing the conditions under which new values should be assigned, as well as when and how modifications to existing values can be made, is needed. This document defines a framework for the documentation of these guidelines by specification authors, in order to assure that the provided guidance for the IANA Considerations is clear and addresses the various issues that are likely in the operation of a registry.</t>
              <t indent="0">This is the third edition of this document; it obsoletes RFC 5226.</t>
            </abstract>
          </front>
          <seriesInfo name="BCP" value="26"/>
          <seriesInfo name="RFC" value="8126"/>
          <seriesInfo name="DOI" value="10.17487/RFC8126"/>
        </reference>
        <reference anchor="RFC8446" target="https://www.rfc-editor.org/info/rfc8446" quoteTitle="true" derivedAnchor="RFC8446">
          <front>
            <title>The Transport Layer Security (TLS) Protocol Version 1.3</title>
            <author fullname="E. Rescorla" initials="E." surname="Rescorla"/>
            <date month="August" year="2018"/>
            <abstract>
              <t indent="0">This document specifies version 1.3 of the Transport Layer Security (TLS) protocol. TLS allows client/server applications to communicate over the Internet in a way that is designed to prevent eavesdropping, tampering, and message forgery.</t>
              <t indent="0">This document updates RFCs 5705 and 6066, and obsoletes RFCs 5077, 5246, and 6961. This document also specifies new requirements for TLS 1.2 implementations.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8446"/>
          <seriesInfo name="DOI" value="10.17487/RFC8446"/>
        </reference>
        <reference anchor="RFC8747" target="https://www.rfc-editor.org/info/rfc8747" quoteTitle="true" derivedAnchor="RFC8747">
          <front>
            <title>Proof-of-Possession Key Semantics for CBOR Web Tokens (CWTs)</title>
            <author fullname="M. Jones" initials="M." surname="Jones"/>
            <author fullname="L. Seitz" initials="L." surname="Seitz"/>
            <author fullname="G. Selander" initials="G." surname="Selander"/>
            <author fullname="S. Erdtman" initials="S." surname="Erdtman"/>
            <author fullname="H. Tschofenig" initials="H." surname="Tschofenig"/>
            <date month="March" year="2020"/>
            <abstract>
              <t indent="0">This specification describes how to declare in a CBOR Web Token (CWT) (which is defined by RFC 8392) that the presenter of the CWT possesses a particular proof-of-possession key.  Being able to prove possession of a key is also sometimes described as being the holder-of-key.  This specification provides equivalent functionality to "Proof-of-Possession Key Semantics for JSON Web Tokens (JWTs)" (RFC 7800) but using Concise Binary Object Representation (CBOR) and CWTs rather than JavaScript Object Notation (JSON) and JSON Web Tokens (JWTs).</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8747"/>
          <seriesInfo name="DOI" value="10.17487/RFC8747"/>
        </reference>
        <reference anchor="RFC9110" target="https://www.rfc-editor.org/info/rfc9110" quoteTitle="true" derivedAnchor="RFC9110">
          <front>
            <title>HTTP Semantics</title>
            <author fullname="R. Fielding" initials="R." role="editor" surname="Fielding"/>
            <author fullname="M. Nottingham" initials="M." role="editor" surname="Nottingham"/>
            <author fullname="J. Reschke" initials="J." role="editor" surname="Reschke"/>
            <date month="June" year="2022"/>
            <abstract>
              <t indent="0">The Hypertext Transfer Protocol (HTTP) is a stateless application-level protocol for distributed, collaborative, hypertext information systems. This document describes the overall architecture of HTTP, establishes common terminology, and defines aspects of the protocol that are shared by all versions. In this definition are core protocol elements, extensibility mechanisms, and the "http" and "https" Uniform Resource Identifier (URI) schemes.</t>
              <t indent="0">This document updates RFC 3864 and obsoletes RFCs 2818, 7231, 7232, 7233, 7235, 7538, 7615, 7694, and portions of 7230.</t>
            </abstract>
          </front>
          <seriesInfo name="STD" value="97"/>
          <seriesInfo name="RFC" value="9110"/>
          <seriesInfo name="DOI" value="10.17487/RFC9110"/>
        </reference>
        <reference anchor="RFC9147" target="https://www.rfc-editor.org/info/rfc9147" quoteTitle="true" derivedAnchor="RFC9147">
          <front>
            <title>The Datagram Transport Layer Security (DTLS) Protocol Version 1.3</title>
            <author fullname="E. Rescorla" initials="E." surname="Rescorla"/>
            <author fullname="H. Tschofenig" initials="H." surname="Tschofenig"/>
            <author fullname="N. Modadugu" initials="N." surname="Modadugu"/>
            <date month="April" year="2022"/>
            <abstract>
              <t indent="0">This document specifies version 1.3 of the Datagram Transport Layer Security (DTLS) protocol. DTLS 1.3 allows client/server applications to communicate over the Internet in a way that is designed to prevent eavesdropping, tampering, and message forgery.</t>
              <t indent="0">The DTLS 1.3 protocol is based on the Transport Layer Security (TLS) 1.3 protocol and provides equivalent security guarantees with the exception of order protection / non-replayability. Datagram semantics of the underlying transport are preserved by the DTLS protocol.</t>
              <t indent="0">This document obsoletes RFC 6347.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="9147"/>
          <seriesInfo name="DOI" value="10.17487/RFC9147"/>
        </reference>
      </references>
    </references>
    <section numbered="true" toc="include" removeInRFC="false" pn="section-appendix.a">
      <name slugifiedName="name-profile-requirements">Profile Requirements</name>
      <t indent="0" pn="section-appendix.a-1">
        This section lists the specifications of this profile based on the requirements of the framework, as requested in <xref target="RFC9200" sectionFormat="of" section="C" format="default" derivedLink="https://rfc-editor.org/rfc/rfc9200#appendix-C" derivedContent="RFC9200"/>.
      </t>
      <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-appendix.a-2">
        <li pn="section-appendix.a-2.1">
            Optionally, define new methods for the client to discover the
            necessary permissions and AS for accessing a resource, different
            from the one proposed in <xref target="RFC9200" format="default" sectionFormat="of" derivedContent="RFC9200"/>: Not specified
          </li>
        <li pn="section-appendix.a-2.2">
            Optionally, specify new grant types: Not specified
          </li>
        <li pn="section-appendix.a-2.3">
            Optionally, define the use of client certificates as client
            credential type: Not specified
          </li>
        <li pn="section-appendix.a-2.4">
            Specify the communication protocol the client and RS must use: CoAP
          </li>
        <li pn="section-appendix.a-2.5">
            Specify the security protocol the client and RS must use to
            protect their communication: OSCORE
          </li>
        <li pn="section-appendix.a-2.6">
            Specify how the client and the RS mutually authenticate: Implicitly by possession of a common OSCORE security context. Note that the mutual authentication is not completed before the client has verified an OSCORE response using this security context.
          </li>
        <li pn="section-appendix.a-2.7">
            Specify the proof-of-possession protocol(s) and how to select one,
            if several are available.  Also specify which key types (e.g.,
            symmetric/asymmetric) are supported by a specific proof-of-
            possession protocol: OSCORE algorithms; preestablished symmetric keys
          </li>
        <li pn="section-appendix.a-2.8">
            Specify a unique ace_profile identifier: coap_oscore
          </li>
        <li pn="section-appendix.a-2.9">
            If introspection is supported, specify the communication and
            security protocol for introspection: HTTP/CoAP (+ TLS/DTLS/OSCORE)
          </li>
        <li pn="section-appendix.a-2.10">
            Specify the communication and security protocol for interactions
            between client and AS: HTTP/CoAP (+ TLS/DTLS/OSCORE)
          </li>
        <li pn="section-appendix.a-2.11">
            Specify if/how the authz-info endpoint is protected, including how
            error responses are protected: Not protected
          </li>
        <li pn="section-appendix.a-2.12">
            Optionally, define methods of token transport other than the authz-info
            endpoint: Not defined
          </li>
      </ul>
    </section>
    <section numbered="false" toc="include" removeInRFC="false" pn="section-appendix.b">
      <name slugifiedName="name-acknowledgments">Acknowledgments</name>
      <t indent="0" pn="section-appendix.b-1">
        The authors wish to thank <contact fullname="Jim Schaad"/> and <contact fullname="Marco Tiloca"/> for the substantial input to this document, as well as <contact fullname="Carsten Bormann"/>, <contact fullname="Elwyn Davies"/>, <contact fullname="Linda Dunbar"/>, <contact fullname="Roman Danyliw"/>, <contact fullname="Martin Duke"/>, <contact fullname="Lars Eggert"/>, <contact fullname="Murray Kucherawy"/>, and <contact fullname="Zaheduzzaman Sarker"/> for their reviews and feedback. Special thanks to the responsible area director <contact fullname="Benjamin Kaduk"/> for his extensive review and contributed text.
        <contact fullname="Ludwig Seitz"/> worked on this document as part of the CelticNext projects CyberWI and CRITISEC with funding from Vinnova.
        The work on this document has been partly supported also by the H2020 project SIFIS-Home (Grant agreement 952652).
      </t>
    </section>
    <section anchor="authors-addresses" numbered="false" removeInRFC="false" toc="include" pn="section-appendix.c">
      <name slugifiedName="name-authors-addresses">Authors' Addresses</name>
      <author initials="F." surname="Palombini" fullname="Francesca Palombini">
        <organization showOnFrontPage="true">Ericsson AB</organization>
        <address>
          <email>francesca.palombini@ericsson.com</email>
        </address>
      </author>
      <author fullname="Ludwig Seitz" initials="L." surname="Seitz">
        <organization showOnFrontPage="true">Combitech</organization>
        <address>
          <postal>
            <street>Djäknegatan 31</street>
            <city>Malmö</city>
            <code>211 35</code>
            <country>Sweden</country>
          </postal>
          <email>ludwig.seitz@combitech.com</email>
        </address>
      </author>
      <author fullname="Göran Selander" initials="G." surname="Selander">
        <organization showOnFrontPage="true">Ericsson AB</organization>
        <address>
          <email>goran.selander@ericsson.com</email>
        </address>
      </author>
      <author fullname="Martin Gunnarsson" initials="M." surname="Gunnarsson">
        <organization showOnFrontPage="true">RISE</organization>
        <address>
          <postal>
            <street>Scheelevägen 17</street>
            <city>Lund</city>
            <code>22370</code>
            <country>Sweden</country>
          </postal>
          <email>martin.gunnarsson@ri.se</email>
        </address>
      </author>
    </section>
  </back>
</rfc>
