<?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-oauth-authz-45" indexInclude="true" ipr="trust200902" number="9200" prepTime="2022-08-31T13:47:15" scripts="Common,Latin" sortRefs="true" submissionType="IETF" symRefs="true" tocDepth="4" tocInclude="true" xml:lang="en">
  <link href="https://datatracker.ietf.org/doc/draft-ietf-ace-oauth-authz-45" rel="prev"/>
  <link href="https://dx.doi.org/10.17487/rfc9200" rel="alternate"/>
  <link href="urn:issn:2070-1721" rel="alternate"/>
  <front>
    <title abbrev="ACE-OAuth">Authentication and Authorization for Constrained Environments Using the OAuth 2.0 Framework (ACE-OAuth)</title>
    <seriesInfo name="RFC" value="9200" stream="IETF"/>
    <author fullname="Ludwig Seitz" initials="L." surname="Seitz">
      <organization showOnFrontPage="true">Combitech</organization>
      <address>
        <postal>
          <street>Djäknegatan 31</street>
          <code>211 35</code>
          <city>Malmö</city>
          <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</organization>
      <address>
        <postal>
          <code>164 80</code>
          <city>Kista</city>
          <country>Sweden</country>
        </postal>
        <email>goran.selander@ericsson.com</email>
      </address>
    </author>
    <author fullname="Erik Wahlstroem" initials="E." surname="Wahlstroem">
      <organization showOnFrontPage="true"/>
      <address>
        <postal>
          <street/>
          <code/>
          <city/>
          <country>Sweden</country>
        </postal>
        <email>erik@wahlstromstekniska.se</email>
      </address>
    </author>
    <author fullname="Samuel Erdtman" initials="S." surname="Erdtman">
      <organization showOnFrontPage="true">Spotify AB</organization>
      <address>
        <postal>
          <street>Birger Jarlsgatan 61, 4tr</street>
          <code>113 56</code>
          <city>Stockholm</city>
          <country>Sweden</country>
        </postal>
        <email>erdtman@spotify.com</email>
      </address>
    </author>
    <author fullname="Hannes Tschofenig" initials="H." surname="Tschofenig">
      <organization showOnFrontPage="true">Arm Ltd.</organization>
      <address>
        <postal>
          <street/>
          <code>6067</code>
          <city>Absam</city>
          <country>Austria</country>
        </postal>
        <email>Hannes.Tschofenig@arm.com</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 specification defines a framework for authentication and
      authorization in Internet of Things (IoT) environments called ACE‑OAuth.
      The framework is based on a set of building blocks including OAuth 2.0
      and the Constrained Application Protocol (CoAP), thus transforming a
      well-known and widely used authorization solution into a form suitable
      for IoT devices.  Existing specifications are used where possible, but
      extensions are added and profiles are defined to better serve the IoT use
      cases.
      </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/rfc9200" 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>
          </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-terminology">Terminology</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-overview">Overview</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" keepWithNext="true" 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-oauth-20">OAuth 2.0</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-coap">CoAP</xref></t>
              </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-protocol-interactions">Protocol Interactions</xref></t>
          </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-framework">Framework</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.5.2">
              <li pn="section-toc.1-1.5.2.1">
                <t indent="0" pn="section-toc.1-1.5.2.1.1"><xref derivedContent="5.1" format="counter" sectionFormat="of" target="section-5.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-discovering-authorization-s">Discovering Authorization Servers</xref></t>
              </li>
              <li pn="section-toc.1-1.5.2.2">
                <t indent="0" pn="section-toc.1-1.5.2.2.1"><xref derivedContent="5.2" format="counter" sectionFormat="of" target="section-5.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-unauthorized-resource-reque">Unauthorized Resource Request Message</xref></t>
              </li>
              <li pn="section-toc.1-1.5.2.3">
                <t indent="0" pn="section-toc.1-1.5.2.3.1"><xref derivedContent="5.3" format="counter" sectionFormat="of" target="section-5.3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-as-request-creation-hints">AS Request Creation Hints</xref></t>
                <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.5.2.3.2">
                  <li pn="section-toc.1-1.5.2.3.2.1">
                    <t indent="0" pn="section-toc.1-1.5.2.3.2.1.1"><xref derivedContent="5.3.1" format="counter" sectionFormat="of" target="section-5.3.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-the-client-nonce-parameter">The Client-Nonce Parameter</xref></t>
                  </li>
                </ul>
              </li>
              <li pn="section-toc.1-1.5.2.4">
                <t indent="0" pn="section-toc.1-1.5.2.4.1"><xref derivedContent="5.4" format="counter" sectionFormat="of" target="section-5.4"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-authorization-grants">Authorization Grants</xref></t>
              </li>
              <li pn="section-toc.1-1.5.2.5">
                <t indent="0" pn="section-toc.1-1.5.2.5.1"><xref derivedContent="5.5" format="counter" sectionFormat="of" target="section-5.5"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-client-credentials">Client Credentials</xref></t>
              </li>
              <li pn="section-toc.1-1.5.2.6">
                <t indent="0" pn="section-toc.1-1.5.2.6.1"><xref derivedContent="5.6" format="counter" sectionFormat="of" target="section-5.6"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-as-authentication">AS Authentication</xref></t>
              </li>
              <li pn="section-toc.1-1.5.2.7">
                <t indent="0" pn="section-toc.1-1.5.2.7.1"><xref derivedContent="5.7" format="counter" sectionFormat="of" target="section-5.7"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-the-authorization-endpoint">The Authorization Endpoint</xref></t>
              </li>
              <li pn="section-toc.1-1.5.2.8">
                <t indent="0" pn="section-toc.1-1.5.2.8.1"><xref derivedContent="5.8" format="counter" sectionFormat="of" target="section-5.8"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-the-token-endpoint">The Token Endpoint</xref></t>
                <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.5.2.8.2">
                  <li pn="section-toc.1-1.5.2.8.2.1">
                    <t indent="0" pn="section-toc.1-1.5.2.8.2.1.1"><xref derivedContent="5.8.1" format="counter" sectionFormat="of" target="section-5.8.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-client-to-as-request">Client-to-AS Request</xref></t>
                  </li>
                  <li pn="section-toc.1-1.5.2.8.2.2">
                    <t indent="0" pn="section-toc.1-1.5.2.8.2.2.1"><xref derivedContent="5.8.2" format="counter" sectionFormat="of" target="section-5.8.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-as-to-client-response">AS-to-Client Response</xref></t>
                  </li>
                  <li pn="section-toc.1-1.5.2.8.2.3">
                    <t indent="0" pn="section-toc.1-1.5.2.8.2.3.1"><xref derivedContent="5.8.3" format="counter" sectionFormat="of" target="section-5.8.3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-error-response">Error Response</xref></t>
                  </li>
                  <li pn="section-toc.1-1.5.2.8.2.4">
                    <t indent="0" pn="section-toc.1-1.5.2.8.2.4.1"><xref derivedContent="5.8.4" format="counter" sectionFormat="of" target="section-5.8.4"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-request-and-response-parame">Request and Response Parameters</xref></t>
                    <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.5.2.8.2.4.2">
                      <li pn="section-toc.1-1.5.2.8.2.4.2.1">
                        <t indent="0" pn="section-toc.1-1.5.2.8.2.4.2.1.1"><xref derivedContent="5.8.4.1" format="counter" sectionFormat="of" target="section-5.8.4.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-grant-type">Grant Type</xref></t>
                      </li>
                      <li pn="section-toc.1-1.5.2.8.2.4.2.2">
                        <t indent="0" pn="section-toc.1-1.5.2.8.2.4.2.2.1"><xref derivedContent="5.8.4.2" format="counter" sectionFormat="of" target="section-5.8.4.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-token-type">Token Type</xref></t>
                      </li>
                      <li pn="section-toc.1-1.5.2.8.2.4.2.3">
                        <t indent="0" pn="section-toc.1-1.5.2.8.2.4.2.3.1"><xref derivedContent="5.8.4.3" format="counter" sectionFormat="of" target="section-5.8.4.3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-profile">Profile</xref></t>
                      </li>
                      <li pn="section-toc.1-1.5.2.8.2.4.2.4">
                        <t indent="0" pn="section-toc.1-1.5.2.8.2.4.2.4.1"><xref derivedContent="5.8.4.4" format="counter" sectionFormat="of" target="section-5.8.4.4"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-client-nonce">Client-Nonce</xref></t>
                      </li>
                    </ul>
                  </li>
                  <li pn="section-toc.1-1.5.2.8.2.5">
                    <t indent="0" pn="section-toc.1-1.5.2.8.2.5.1"><xref derivedContent="5.8.5" format="counter" sectionFormat="of" target="section-5.8.5"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-mapping-parameters-to-cbor">Mapping Parameters to CBOR</xref></t>
                  </li>
                </ul>
              </li>
              <li pn="section-toc.1-1.5.2.9">
                <t indent="0" pn="section-toc.1-1.5.2.9.1"><xref derivedContent="5.9" format="counter" sectionFormat="of" target="section-5.9"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-the-introspection-endpoint">The Introspection Endpoint</xref></t>
                <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.5.2.9.2">
                  <li pn="section-toc.1-1.5.2.9.2.1">
                    <t indent="0" pn="section-toc.1-1.5.2.9.2.1.1"><xref derivedContent="5.9.1" format="counter" sectionFormat="of" target="section-5.9.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-introspection-request">Introspection Request</xref></t>
                  </li>
                  <li pn="section-toc.1-1.5.2.9.2.2">
                    <t indent="0" pn="section-toc.1-1.5.2.9.2.2.1"><xref derivedContent="5.9.2" format="counter" sectionFormat="of" target="section-5.9.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-introspection-response">Introspection Response</xref></t>
                  </li>
                  <li pn="section-toc.1-1.5.2.9.2.3">
                    <t indent="0" pn="section-toc.1-1.5.2.9.2.3.1"><xref derivedContent="5.9.3" format="counter" sectionFormat="of" target="section-5.9.3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-error-response-2">Error Response</xref></t>
                  </li>
                  <li pn="section-toc.1-1.5.2.9.2.4">
                    <t indent="0" pn="section-toc.1-1.5.2.9.2.4.1"><xref derivedContent="5.9.4" format="counter" sectionFormat="of" target="section-5.9.4"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-mapping-introspection-param">Mapping Introspection Parameters to CBOR</xref></t>
                  </li>
                </ul>
              </li>
              <li pn="section-toc.1-1.5.2.10">
                <t indent="0" pn="section-toc.1-1.5.2.10.1"><xref derivedContent="5.10" format="counter" sectionFormat="of" target="section-5.10"/>. <xref derivedContent="" format="title" sectionFormat="of" target="name-the-access-token">The Access Token</xref></t>
                <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.5.2.10.2">
                  <li pn="section-toc.1-1.5.2.10.2.1">
                    <t indent="0" pn="section-toc.1-1.5.2.10.2.1.1"><xref derivedContent="5.10.1" format="counter" sectionFormat="of" target="section-5.10.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-the-authorization-informati">The Authorization Information Endpoint</xref></t>
                    <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.5.2.10.2.1.2">
                      <li pn="section-toc.1-1.5.2.10.2.1.2.1">
                        <t indent="0" pn="section-toc.1-1.5.2.10.2.1.2.1.1"><xref derivedContent="5.10.1.1" format="counter" sectionFormat="of" target="section-5.10.1.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-verifying-an-access-token">Verifying an Access Token</xref></t>
                      </li>
                      <li pn="section-toc.1-1.5.2.10.2.1.2.2">
                        <t indent="0" pn="section-toc.1-1.5.2.10.2.1.2.2.1"><xref derivedContent="5.10.1.2" format="counter" sectionFormat="of" target="section-5.10.1.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-protecting-the-authorizatio">Protecting the Authorization Information Endpoint</xref></t>
                      </li>
                    </ul>
                  </li>
                  <li pn="section-toc.1-1.5.2.10.2.2">
                    <t indent="0" pn="section-toc.1-1.5.2.10.2.2.1"><xref derivedContent="5.10.2" format="counter" sectionFormat="of" target="section-5.10.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-client-requests-to-the-rs">Client Requests to the RS</xref></t>
                  </li>
                  <li pn="section-toc.1-1.5.2.10.2.3">
                    <t indent="0" pn="section-toc.1-1.5.2.10.2.3.1"><xref derivedContent="5.10.3" format="counter" sectionFormat="of" target="section-5.10.3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-token-expiration">Token Expiration</xref></t>
                  </li>
                  <li pn="section-toc.1-1.5.2.10.2.4">
                    <t indent="0" pn="section-toc.1-1.5.2.10.2.4.1"><xref derivedContent="5.10.4" format="counter" sectionFormat="of" target="section-5.10.4"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-key-expiration">Key Expiration</xref></t>
                  </li>
                </ul>
              </li>
            </ul>
          </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-security-considerations">Security Considerations</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.6.2">
              <li pn="section-toc.1-1.6.2.1">
                <t indent="0" pn="section-toc.1-1.6.2.1.1"><xref derivedContent="6.1" format="counter" sectionFormat="of" target="section-6.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-protecting-tokens">Protecting Tokens</xref></t>
              </li>
              <li pn="section-toc.1-1.6.2.2">
                <t indent="0" pn="section-toc.1-1.6.2.2.1"><xref derivedContent="6.2" format="counter" sectionFormat="of" target="section-6.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-communication-security">Communication Security</xref></t>
              </li>
              <li pn="section-toc.1-1.6.2.3">
                <t indent="0" pn="section-toc.1-1.6.2.3.1"><xref derivedContent="6.3" format="counter" sectionFormat="of" target="section-6.3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-long-term-credentials">Long-Term Credentials</xref></t>
              </li>
              <li pn="section-toc.1-1.6.2.4">
                <t indent="0" pn="section-toc.1-1.6.2.4.1"><xref derivedContent="6.4" format="counter" sectionFormat="of" target="section-6.4"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-unprotected-as-request-crea">Unprotected AS Request Creation Hints</xref></t>
              </li>
              <li pn="section-toc.1-1.6.2.5">
                <t indent="0" pn="section-toc.1-1.6.2.5.1"><xref derivedContent="6.5" format="counter" sectionFormat="of" target="section-6.5"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-minimal-security-requiremen">Minimal Security Requirements for Communication</xref></t>
              </li>
              <li pn="section-toc.1-1.6.2.6">
                <t indent="0" pn="section-toc.1-1.6.2.6.1"><xref derivedContent="6.6" format="counter" sectionFormat="of" target="section-6.6"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-token-freshness-and-expirat">Token Freshness and Expiration</xref></t>
              </li>
              <li pn="section-toc.1-1.6.2.7">
                <t indent="0" pn="section-toc.1-1.6.2.7.1"><xref derivedContent="6.7" format="counter" sectionFormat="of" target="section-6.7"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-combining-profiles">Combining Profiles</xref></t>
              </li>
              <li pn="section-toc.1-1.6.2.8">
                <t indent="0" pn="section-toc.1-1.6.2.8.1"><xref derivedContent="6.8" format="counter" sectionFormat="of" target="section-6.8"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-unprotected-information">Unprotected Information</xref></t>
              </li>
              <li pn="section-toc.1-1.6.2.9">
                <t indent="0" pn="section-toc.1-1.6.2.9.1"><xref derivedContent="6.9" format="counter" sectionFormat="of" target="section-6.9"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-identifying-audiences">Identifying Audiences</xref></t>
              </li>
              <li pn="section-toc.1-1.6.2.10">
                <t indent="0" pn="section-toc.1-1.6.2.10.1"><xref derivedContent="6.10" format="counter" sectionFormat="of" target="section-6.10"/>. <xref derivedContent="" format="title" sectionFormat="of" target="name-denial-of-service-against-o">Denial of Service Against or with Introspection</xref></t>
              </li>
            </ul>
          </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-privacy-considerations">Privacy 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-iana-considerations">IANA Considerations</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.8.2">
              <li pn="section-toc.1-1.8.2.1">
                <t indent="0" pn="section-toc.1-1.8.2.1.1"><xref derivedContent="8.1" format="counter" sectionFormat="of" target="section-8.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-ace-authorization-server-re">ACE Authorization Server Request Creation Hints</xref></t>
              </li>
              <li pn="section-toc.1-1.8.2.2">
                <t indent="0" pn="section-toc.1-1.8.2.2.1"><xref derivedContent="8.2" format="counter" sectionFormat="of" target="section-8.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-core-resource-types">CoRE Resource Types</xref></t>
              </li>
              <li pn="section-toc.1-1.8.2.3">
                <t indent="0" pn="section-toc.1-1.8.2.3.1"><xref derivedContent="8.3" format="counter" sectionFormat="of" target="section-8.3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-oauth-extensions-errors">OAuth Extensions Errors</xref></t>
              </li>
              <li pn="section-toc.1-1.8.2.4">
                <t indent="0" pn="section-toc.1-1.8.2.4.1"><xref derivedContent="8.4" format="counter" sectionFormat="of" target="section-8.4"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-oauth-error-code-cbor-mappi">OAuth Error Code CBOR Mappings</xref></t>
              </li>
              <li pn="section-toc.1-1.8.2.5">
                <t indent="0" pn="section-toc.1-1.8.2.5.1"><xref derivedContent="8.5" format="counter" sectionFormat="of" target="section-8.5"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-oauth-grant-type-cbor-mappi">OAuth Grant Type CBOR Mappings</xref></t>
              </li>
              <li pn="section-toc.1-1.8.2.6">
                <t indent="0" pn="section-toc.1-1.8.2.6.1"><xref derivedContent="8.6" format="counter" sectionFormat="of" target="section-8.6"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-oauth-access-token-types">OAuth Access Token Types</xref></t>
              </li>
              <li pn="section-toc.1-1.8.2.7">
                <t indent="0" pn="section-toc.1-1.8.2.7.1"><xref derivedContent="8.7" format="counter" sectionFormat="of" target="section-8.7"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-oauth-access-token-type-cbo">OAuth Access Token Type CBOR Mappings</xref></t>
                <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.8.2.7.2">
                  <li pn="section-toc.1-1.8.2.7.2.1">
                    <t indent="0" pn="section-toc.1-1.8.2.7.2.1.1"><xref derivedContent="8.7.1" format="counter" sectionFormat="of" target="section-8.7.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-initial-registry-contents">Initial Registry Contents</xref></t>
                  </li>
                </ul>
              </li>
              <li pn="section-toc.1-1.8.2.8">
                <t indent="0" pn="section-toc.1-1.8.2.8.1"><xref derivedContent="8.8" format="counter" sectionFormat="of" target="section-8.8"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-ace-profiles">ACE Profiles</xref></t>
              </li>
              <li pn="section-toc.1-1.8.2.9">
                <t indent="0" pn="section-toc.1-1.8.2.9.1"><xref derivedContent="8.9" format="counter" sectionFormat="of" target="section-8.9"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-oauth-parameters">OAuth Parameters</xref></t>
              </li>
              <li pn="section-toc.1-1.8.2.10">
                <t indent="0" pn="section-toc.1-1.8.2.10.1"><xref derivedContent="8.10" format="counter" sectionFormat="of" target="section-8.10"/>. <xref derivedContent="" format="title" sectionFormat="of" target="name-oauth-parameters-cbor-mappi">OAuth Parameters CBOR Mappings</xref></t>
              </li>
              <li pn="section-toc.1-1.8.2.11">
                <t indent="0" pn="section-toc.1-1.8.2.11.1"><xref derivedContent="8.11" format="counter" sectionFormat="of" target="section-8.11"/>. <xref derivedContent="" format="title" sectionFormat="of" target="name-oauth-introspection-respons">OAuth Introspection Response Parameters</xref></t>
              </li>
              <li pn="section-toc.1-1.8.2.12">
                <t indent="0" pn="section-toc.1-1.8.2.12.1"><xref derivedContent="8.12" format="counter" sectionFormat="of" target="section-8.12"/>. <xref derivedContent="" format="title" sectionFormat="of" target="name-oauth-token-introspection-r">OAuth Token Introspection Response CBOR Mappings</xref></t>
              </li>
              <li pn="section-toc.1-1.8.2.13">
                <t indent="0" pn="section-toc.1-1.8.2.13.1"><xref derivedContent="8.13" format="counter" sectionFormat="of" target="section-8.13"/>. <xref derivedContent="" format="title" sectionFormat="of" target="name-json-web-token-claims">JSON Web Token Claims</xref></t>
              </li>
              <li pn="section-toc.1-1.8.2.14">
                <t indent="0" pn="section-toc.1-1.8.2.14.1"><xref derivedContent="8.14" format="counter" sectionFormat="of" target="section-8.14"/>. <xref derivedContent="" format="title" sectionFormat="of" target="name-cbor-web-token-claims">CBOR Web Token Claims</xref></t>
              </li>
              <li pn="section-toc.1-1.8.2.15">
                <t indent="0" pn="section-toc.1-1.8.2.15.1"><xref derivedContent="8.15" format="counter" sectionFormat="of" target="section-8.15"/>. <xref derivedContent="" format="title" sectionFormat="of" target="name-media-type-registration">Media Type Registration</xref></t>
              </li>
              <li pn="section-toc.1-1.8.2.16">
                <t indent="0" pn="section-toc.1-1.8.2.16.1"><xref derivedContent="8.16" format="counter" sectionFormat="of" target="section-8.16"/>. <xref derivedContent="" format="title" sectionFormat="of" target="name-coap-content-formats">CoAP Content-Formats</xref></t>
              </li>
              <li pn="section-toc.1-1.8.2.17">
                <t indent="0" pn="section-toc.1-1.8.2.17.1"><xref derivedContent="8.17" format="counter" sectionFormat="of" target="section-8.17"/>. <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.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-references">References</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-normative-references">Normative References</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-informative-references">Informative References</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.10">
            <t indent="0" pn="section-toc.1-1.10.1"><xref derivedContent="Appendix A" format="default" sectionFormat="of" target="section-appendix.a"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-design-justification">Design Justification</xref></t>
          </li>
          <li pn="section-toc.1-1.11">
            <t indent="0" pn="section-toc.1-1.11.1"><xref derivedContent="Appendix B" format="default" sectionFormat="of" target="section-appendix.b"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-roles-and-responsibilities">Roles and Responsibilities</xref></t>
          </li>
          <li pn="section-toc.1-1.12">
            <t indent="0" pn="section-toc.1-1.12.1"><xref derivedContent="Appendix C" format="default" sectionFormat="of" target="section-appendix.c"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-requirements-on-profiles">Requirements on Profiles</xref></t>
          </li>
          <li pn="section-toc.1-1.13">
            <t indent="0" pn="section-toc.1-1.13.1"><xref derivedContent="Appendix D" format="default" sectionFormat="of" target="section-appendix.d"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-assumptions-on-as-knowledge">Assumptions on AS Knowledge about the C and RS</xref></t>
          </li>
          <li pn="section-toc.1-1.14">
            <t indent="0" pn="section-toc.1-1.14.1"><xref derivedContent="Appendix E" format="default" sectionFormat="of" target="section-appendix.e"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-differences-to-oauth-20">Differences to OAuth 2.0</xref></t>
          </li>
          <li pn="section-toc.1-1.15">
            <t indent="0" pn="section-toc.1-1.15.1"><xref derivedContent="Appendix F" format="default" sectionFormat="of" target="section-appendix.f"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-deployment-examples">Deployment Examples</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.15.2">
              <li pn="section-toc.1-1.15.2.1">
                <t indent="0" pn="section-toc.1-1.15.2.1.1"><xref derivedContent="F.1" format="counter" sectionFormat="of" target="section-appendix.f.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-local-token-validation">Local Token Validation</xref></t>
              </li>
              <li pn="section-toc.1-1.15.2.2">
                <t indent="0" pn="section-toc.1-1.15.2.2.1"><xref derivedContent="F.2" format="counter" sectionFormat="of" target="section-appendix.f.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-introspection-aided-token-v">Introspection Aided Token Validation</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.16">
            <t indent="0" pn="section-toc.1-1.16.1"><xref derivedContent="" format="none" sectionFormat="of" target="section-appendix.g"/><xref derivedContent="" format="title" sectionFormat="of" target="name-acknowledgments">Acknowledgments</xref></t>
          </li>
          <li pn="section-toc.1-1.17">
            <t indent="0" pn="section-toc.1-1.17.1"><xref derivedContent="" format="none" sectionFormat="of" target="section-appendix.h"/><xref derivedContent="" format="title" sectionFormat="of" target="name-authors-addresses">Authors' Addresses</xref></t>
          </li>
        </ul>
      </section>
    </toc>
  </front>
  <middle>
    <section anchor="intro" numbered="true" toc="include" removeInRFC="false" pn="section-1">
      <name slugifiedName="name-introduction">Introduction</name>
      <t indent="0" pn="section-1-1">Authorization is the process for granting approval to an entity to
   access a generic resource <xref target="RFC4949" format="default" sectionFormat="of" derivedContent="RFC4949"/>. The authorization
   task itself can best be described as granting access to a requesting client for
   a resource hosted on a device, i.e., the resource server (RS).  This exchange is
   mediated by one or multiple authorization servers (ASes). Managing
   authorization for a large number of devices and users can be a complex task.
      </t>
      <t indent="0" pn="section-1-2">While prior work on authorization solutions for the Web and for the mobile
   environment also applies to the Internet of Things (IoT) environment, many
   IoT devices are constrained, for example, in terms of processing
   capabilities, available memory, etc. For such devices, the Constrained
   Application Protocol (CoAP) <xref target="RFC7252" format="default" sectionFormat="of" derivedContent="RFC7252"/> can alleviate some
   resource concerns when used instead of HTTP to implement the communication
   flows of this specification.</t>
      <t indent="0" pn="section-1-3"><xref target="constraints" format="default" sectionFormat="of" derivedContent="Appendix A"/> gives an overview of the constraints
   considered in this design, and a more detailed treatment of constraints can
   be found in <xref target="RFC7228" format="default" sectionFormat="of" derivedContent="RFC7228"/>.  This design aims to accommodate
   different IoT deployments as well as a continuous range of device and network
   capabilities.  Taking energy consumption as an example, at one end, there are
   energy-harvesting or  battery-powered devices that have a tight power
   budget; on the other end, there are mains-powered devices; and all levels exist in
   between.</t>
      <t indent="0" pn="section-1-4">Hence, IoT devices may be very different in terms of available processing
   and message exchange capabilities, and there is a need to support many
     different authorization use cases <xref target="RFC7744" format="default" sectionFormat="of" derivedContent="RFC7744"/>.</t>
      <t indent="0" pn="section-1-5">This specification describes a framework for Authentication and Authorization
   for Constrained Environments (ACE) built on reuse of OAuth 2.0
   <xref target="RFC6749" format="default" sectionFormat="of" derivedContent="RFC6749"/>, thereby extending authorization to Internet of Things
   devices.  This specification contains the necessary building blocks
   for adjusting OAuth 2.0 to IoT environments.</t>
      <t indent="0" pn="section-1-6">Profiles of this framework are available in separate specifications, such as
   <xref target="RFC9202" format="default" sectionFormat="of" derivedContent="RFC9202"/> or <xref target="RFC9203" format="default" sectionFormat="of" derivedContent="RFC9203"/>. 
	   Such profiles may specify the use of the framework for a specific security protocol 
	   and the underlying transports for use in a specific deployment environment to improve interoperability.
   Implementations may claim conformance with a specific profile, whereby
   implementations utilizing the same profile interoperate, while
   implementations of different profiles are not expected to be interoperable.
   More powerful devices, such as mobile phones and tablets, may implement multiple
   profiles and will therefore be able to interact with a wider range of constrained devices. 
	   Requirements on profiles are described at contextually
   appropriate places throughout this specification and also summarized in
   <xref target="app_profileRequirements" format="default" sectionFormat="of" derivedContent="Appendix C"/>.
      </t>
    </section>
    <section anchor="terminology" numbered="true" toc="include" removeInRFC="false" pn="section-2">
      <name slugifiedName="name-terminology">Terminology</name>
      <t indent="0" pn="section-2-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-2-2">Certain security-related terms, such as "authentication",
"authorization", "confidentiality", "(data) integrity", "message
authentication code", and "verify", are taken from <xref target="RFC4949" format="default" sectionFormat="of" derivedContent="RFC4949"/>.
      </t>
      <t indent="0" pn="section-2-3">Since exchanges in this specification are described as RESTful protocol
    interactions, HTTP <xref target="RFC9110" format="default" sectionFormat="of" derivedContent="RFC9110"/> offers useful terminology.
    (Note that "RESTful" refers to the Representational State Transfer (REST) architecture.)
      </t>
      <t indent="0" pn="section-2-4">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).</t>
      <t indent="0" pn="section-2-5">Note that the term "endpoint" is used here following its OAuth
definition, which is to denote resources, such as token and
introspection at the AS and authz-info at the RS (see <xref target="tokenAuthInfoEndpoint" format="default" sectionFormat="of" derivedContent="Section 5.10.1"/> for a definition of the authz-info endpoint).
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 specification.</t>
      <t indent="0" pn="section-2-6">The specification in this document is called the "framework" or "ACE framework".
When referring to "profiles of this framework", it refers to additional specifications that
define the use of this specification with concrete transport and communication
security protocols (e.g., CoAP over DTLS).
</t>
      <t indent="0" pn="section-2-7">The term "Access Information" is used for parameters, other than the access token, provided to the client by the AS to enable it to access the RS
(e.g., public key of the RS or profile supported by RS).</t>
      <t indent="0" pn="section-2-8">The term "authorization information" is used to denote all information,
      including the claims of relevant access tokens, that an RS uses to determine whether an access request should be granted.</t>
      <t indent="0" pn="section-2-9">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>
    </section>
    <section anchor="overview" numbered="true" toc="include" removeInRFC="false" pn="section-3">
      <name slugifiedName="name-overview">Overview</name>
      <t indent="0" pn="section-3-1">This specification defines the ACE framework for authorization in the Internet
      of Things environment. It consists of a set of building blocks.</t>
      <t indent="0" pn="section-3-2">
  The basic block is the OAuth 2.0 <xref target="RFC6749" format="default" sectionFormat="of" derivedContent="RFC6749"/>
  framework, which enjoys widespread deployment.  Many IoT devices can support
  OAuth 2.0 without any additional extensions, but for certain constrained
  settings, additional profiling is needed.
      </t>
      <t indent="0" pn="section-3-3">Another building block is the lightweight web transfer protocol CoAP
  <xref target="RFC7252" format="default" sectionFormat="of" derivedContent="RFC7252"/>, for those communication environments where HTTP is
  not appropriate.  CoAP typically runs on top of UDP, which further reduces
  overhead and message exchanges. While this specification defines extensions
  for the use of OAuth over CoAP, other underlying protocols are not prohibited
  from being supported in the future, such as HTTP/2 <xref target="RFC9113" format="default" sectionFormat="of" derivedContent="RFC9113"/>,
  Message Queuing Telemetry Transport (MQTT) <xref target="MQTT5.0" format="default" sectionFormat="of" derivedContent="MQTT5.0"/>,
  Bluetooth Low Energy (BLE) <xref target="BLE" format="default" sectionFormat="of" derivedContent="BLE"/>, and QUIC <xref target="RFC9000" format="default" sectionFormat="of" derivedContent="RFC9000"/>.  Note that this document specifies
  protocol exchanges in terms of RESTful verbs, such as GET and POST.
  Future profiles using protocols that do not support these verbs <bcp14>MUST</bcp14>
  specify how the corresponding protocol messages are transmitted instead.</t>
      <t indent="0" pn="section-3-4">A third building block is the Concise Binary Object Representation
  (CBOR) <xref target="RFC8949" format="default" sectionFormat="of" derivedContent="RFC8949"/>, for encodings where JSON
  <xref target="RFC8259" format="default" sectionFormat="of" derivedContent="RFC8259"/> is not sufficiently compact.  CBOR is a binary
  encoding designed for small code and message size. Self-contained tokens
  and protocol message payloads are encoded in CBOR when CoAP is used. When CoAP
  is not used, the use of CBOR remains <bcp14>RECOMMENDED</bcp14>.
      </t>
      <t indent="0" pn="section-3-5">A fourth building block is CBOR Object Signing and Encryption (COSE)
  <xref target="RFC8152" format="default" sectionFormat="of" derivedContent="RFC8152"/>, which enables object-level layer security as an
  alternative or complement to transport layer security (DTLS
    <xref target="RFC6347" format="default" sectionFormat="of" derivedContent="RFC6347"/> <xref target="RFC9147" format="default" sectionFormat="of" derivedContent="RFC9147"/> or TLS <xref target="RFC8446" format="default" sectionFormat="of" derivedContent="RFC8446"/>). COSE is used to
    secure self-contained tokens, such as proof-of-possession (PoP) tokens,
    which are an extension to the OAuth bearer tokens. The default token format
    is defined in CBOR Web Token (CWT) <xref target="RFC8392" format="default" sectionFormat="of" derivedContent="RFC8392"/>.
    Application-layer security for CoAP using COSE can be provided with Object Security for
    Constrained RESTful Environments (OSCORE)
    <xref target="RFC8613" format="default" sectionFormat="of" derivedContent="RFC8613"/>.</t>
      <t indent="0" pn="section-3-6">With the building blocks listed above, solutions satisfying various
  IoT device and network constraints are possible.  A list of constraints is
  described in detail in <xref target="RFC7228" format="default" sectionFormat="of" derivedContent="RFC7228"/>, and a description
  of how the building blocks mentioned above relate to the various constraints
  can be found in <xref target="constraints" format="default" sectionFormat="of" derivedContent="Appendix A"/>.</t>
      <t indent="0" pn="section-3-7">Luckily, not every IoT device suffers from all constraints.  Nevertheless, the ACE
  framework takes all these aspects into account and allows
  several different deployment variants to coexist, rather than mandating a
  one-size-fits-all solution.  It is important to cover the wide
  range of possible interworking use cases and the different requirements from
  a security point of view.  Once IoT deployments mature, popular deployment
  variants will be documented in the form of ACE profiles.</t>
      <section anchor="oauth2Overview" numbered="true" toc="include" removeInRFC="false" pn="section-3.1">
        <name slugifiedName="name-oauth-20">OAuth 2.0</name>
        <t indent="0" pn="section-3.1-1">The OAuth 2.0 authorization framework enables a client to obtain
    scoped access to a resource with the permission of a resource
    owner.  Authorization information, or references to it, is passed between the nodes
    using access tokens.  These access tokens are issued to clients by an
    authorization server with the approval of the resource owner.  The client
    uses the access token to access the protected resources hosted by the
    resource server.</t>
        <t indent="0" pn="section-3.1-2">A number of OAuth 2.0 terms are used within this specification:

        </t>
        <dl newline="true" spacing="normal" indent="3" pn="section-3.1-3">
          <dt pn="section-3.1-3.1">Access Tokens:</dt>
          <dd pn="section-3.1-3.2">
            <t indent="0" pn="section-3.1-3.2.1">
        Access tokens are credentials needed to access protected resources.  An
        access token is a data structure representing authorization permissions
        issued by the AS to the client.  Access tokens are generated by the AS
        and consumed by the RS.  The access token content is opaque
        to the client.
            </t>
            <t indent="0" pn="section-3.1-3.2.2">
        Access tokens can have different formats and various methods
        of utilization (e.g., cryptographic properties) based on the security
        requirements of the given deployment.
            </t>
          </dd>
          <dt pn="section-3.1-3.3">Introspection:</dt>
          <dd pn="section-3.1-3.4">
	Introspection is a method for a resource server, or potentially a client,
	to query the authorization server for the active state and content of a
	received access token.  This is particularly useful in those cases where
	the authorization decisions are very dynamic and/or where the received
	access token itself is an opaque reference, rather than a self-contained
	token.  More information about introspection in OAuth 2.0 can be
	found in <xref target="RFC7662" format="default" sectionFormat="of" derivedContent="RFC7662"/>.
	</dd>
          <dt pn="section-3.1-3.5">Refresh Tokens:</dt>
          <dd pn="section-3.1-3.6">
            <t indent="0" pn="section-3.1-3.6.1">
	Refresh tokens are credentials used to obtain access tokens.
	Refresh tokens are issued to the client by the authorization
	server and are used to obtain a new access token when the current
	access token expires or to obtain additional access tokens with
	identical or narrower scope (such access tokens may have a shorter
	lifetime and fewer permissions than authorized by the resource owner).
	Issuing a refresh token is optional at the discretion of the
	authorization server.  If the authorization server issues a refresh
	token, it is included when issuing an access token (i.e., step (B) in
	<xref target="fig_protocolFlow" format="default" sectionFormat="of" derivedContent="Figure 1"/>).
            </t>
            <t indent="0" pn="section-3.1-3.6.2">
	A refresh token in OAuth 2.0 is a string representing the authorization
	granted	to the client by the resource owner.  The string is usually
	opaque to the client.  The token denotes an identifier used to retrieve
	the authorization information.  Unlike access tokens, refresh
	tokens are intended for use only with authorization servers and
	are never sent to resource servers.  In this framework, refresh
	tokens are encoded in binary instead of strings, if used.
            </t>
          </dd>
          <dt pn="section-3.1-3.7">Proof-of-Possession Tokens:</dt>
          <dd pn="section-3.1-3.8">
            <t indent="0" pn="section-3.1-3.8.1">
        A token may be bound to a cryptographic key,  which is then used
	to bind the token to a request authorized by the token.  Such tokens
	are called proof-of-possession tokens (or PoP tokens).
            </t>
            <t indent="0" pn="section-3.1-3.8.2">
        The proof-of-possession security concept used here assumes that
	the AS acts as a trusted third party that binds keys to tokens.
	In the case of access tokens, these so-called PoP keys are then used by
	the client to demonstrate the possession of the secret to the RS when
	accessing the resource.  The RS, when receiving an access token, needs
	to verify that the key used by the client matches the one bound to the
	access token.  When this specification uses the term "access token", it
	is assumed to be a PoP access token unless specifically stated
	otherwise.

            </t>
            <t indent="0" pn="section-3.1-3.8.3">
        The key bound to the token (the PoP key) may use either symmetric or
	asymmetric cryptography.  The appropriate choice of the kind of
	cryptography depends on the constraints of the IoT devices as well as
	on the security requirements of the use case.
            </t>
            <dl newline="true" spacing="normal" indent="3" pn="section-3.1-3.8.4">
              <dt pn="section-3.1-3.8.4.1">Symmetric PoP key:</dt>
              <dd pn="section-3.1-3.8.4.2">
                <t indent="0" pn="section-3.1-3.8.4.2.1">
              The AS generates a random, symmetric PoP key.  The key is either
              stored to be returned on introspection calls or included in the
	      token.  Either the whole token or only the key <bcp14>MUST</bcp14> be encrypted
	      in the latter case.  The PoP key is also returned to
	      client together with the token, protected by the secure channel.</t>
              </dd>
              <dt pn="section-3.1-3.8.4.3">Asymmetric PoP key:</dt>
              <dd pn="section-3.1-3.8.4.4">
          An asymmetric key pair is generated by the client and the public key
	  is sent to the AS (if it does not already have knowledge of the
	  client's public key).  Information about the public key, which is the
	  PoP key in this case, is either stored to be returned on 
	  introspection calls or included inside the token and sent
	  back to the client.  The resource server consuming the token can
	  identify the public key from the information in the token, which
	  allows the client to use the corresponding private key for the
	  proof of possession.
          </dd>
            </dl>
            <t indent="0" pn="section-3.1-3.8.5"> The token is either a simple reference
	or a structured information object (e.g., CWT <xref target="RFC8392" format="default" sectionFormat="of" derivedContent="RFC8392"/>)
	protected by a cryptographic wrapper (e.g., COSE <xref target="RFC8152" format="default" sectionFormat="of" derivedContent="RFC8152"/>).  The choice of PoP key does not necessarily imply
	a specific credential type for the integrity protection of the
	token.</t>
          </dd>
          <dt pn="section-3.1-3.9">Scopes and Permissions:</dt>
          <dd pn="section-3.1-3.10">
            <t indent="0" pn="section-3.1-3.10.1">
         In OAuth 2.0, the client specifies the type of permissions it is
         seeking to obtain (via the <tt>scope</tt> parameter) in the access token
	 request.  In turn, the AS may use the <tt>scope</tt> response parameter to
	 inform the client of the scope of the access token issued.  As the
	 client could be a constrained device as well, this specification
	 defines the use of CBOR encoding (see <xref target="oauthProfile" format="default" sectionFormat="of" derivedContent="Section 5"/>) for such requests and responses.
            </t>
            <t indent="0" pn="section-3.1-3.10.2">
         The values of the <tt>scope</tt> parameter in OAuth 2.0 are expressed as a list
	 of space-delimited, case-sensitive strings with a semantic that is
	 well known to the AS and the RS.
         More details about the concept of scopes are found under
         <xref target="RFC6749" sectionFormat="of" section="3.3" format="default" derivedLink="https://rfc-editor.org/rfc/rfc6749#section-3.3" derivedContent="RFC6749"/>.</t>
          </dd>
          <dt pn="section-3.1-3.11">Claims:</dt>
          <dd pn="section-3.1-3.12">
            <t indent="0" pn="section-3.1-3.12.1">
      Information carried in the access token or returned from introspection, called claims, is in the form of
      name-value pairs.  An access token may, for example, include a claim
      identifying the AS that issued the token (via the <tt>iss</tt> claim) and
      what audience the access token is intended for (via the <tt>aud</tt> claim).
	The audience of an access token can be a specific resource, one resource, or
	many resource servers.  The resource owner policies influence what
	claims are put into the access token by the authorization server.
            </t>
            <t indent="0" pn="section-3.1-3.12.2">
        While the structure and encoding of the access token varies throughout
        deployments, a standardized format has been defined with the JSON Web
        Token (JWT) <xref target="RFC7519" format="default" sectionFormat="of" derivedContent="RFC7519"/>, where claims are encoded as a
	JSON object.  In <xref target="RFC8392" format="default" sectionFormat="of" derivedContent="RFC8392"/>, the CBOR Web Token (CWT)
	has been defined as an equivalent format using CBOR encoding.
            </t>
          </dd>
          <dt pn="section-3.1-3.13">Token and Introspection Endpoints:</dt>
          <dd pn="section-3.1-3.14">
            <t indent="0" pn="section-3.1-3.14.1">
      The AS hosts the token endpoint that allows a client to request access
      tokens. The client makes a POST request to the token endpoint on the AS
      and receives the access token in the response (if the request was
      successful).
            </t>
            <t indent="0" pn="section-3.1-3.14.2">
      In some deployments, a token introspection endpoint is provided by
      the AS, which can be used by the RS and potentially the client, if they
      need to request additional information regarding a received access
      token.  The requesting entity makes a POST request to the introspection
      endpoint on the AS and receives information about the access token in
      the response. (See "Introspection" above.)
            </t>
          </dd>
        </dl>
      </section>
      <section anchor="coap" numbered="true" toc="include" removeInRFC="false" pn="section-3.2">
        <name slugifiedName="name-coap">CoAP</name>
        <t indent="0" pn="section-3.2-1">
    CoAP is an application-layer protocol similar to HTTP but specifically
    designed for constrained environments.  CoAP typically uses
    datagram-oriented transport, such as UDP, where reordering and loss
    of packets can occur.  A security solution needs to take the latter aspects
    into account.</t>
        <t indent="0" pn="section-3.2-2">While HTTP uses headers and query strings to convey additional
    information about a request, CoAP encodes such information into header
    parameters called 'options'.</t>
        <t indent="0" pn="section-3.2-3">CoAP supports application-layer fragmentation of the CoAP payloads
    through block-wise transfers <xref target="RFC7959" format="default" sectionFormat="of" derivedContent="RFC7959"/>.  However,
    block-wise transfer does not increase the size limits of CoAP options;
    therefore, data encoded in options has to be kept small.
        </t>
        <t indent="0" pn="section-3.2-4">Transport layer security for CoAP can be provided by DTLS or TLS
  <xref target="RFC6347" format="default" sectionFormat="of" derivedContent="RFC6347"/> <xref target="RFC8446" format="default" sectionFormat="of" derivedContent="RFC8446"/>
          <xref target="RFC9147" format="default" sectionFormat="of" derivedContent="RFC9147"/>.
    CoAP defines a number of proxy operations that require transport layer
    security to be terminated at the proxy. One approach for protecting CoAP communication
    end-to-end through proxies, and also to support security for CoAP over
    a different transport in a uniform way, is to provide security at the application
    layer using an object-based security mechanism, such as COSE <xref target="RFC8152" format="default" sectionFormat="of" derivedContent="RFC8152"/>.
        </t>
        <t indent="0" pn="section-3.2-5">
    One application of COSE is OSCORE
    <xref target="RFC8613" format="default" sectionFormat="of" derivedContent="RFC8613"/>, which provides end-to-end confidentiality,
    integrity and replay protection, and a secure binding between CoAP request
    and response messages. In OSCORE, the CoAP messages are wrapped in COSE
    objects and sent using CoAP.
        </t>
        <t indent="0" pn="section-3.2-6">In this framework, the use of CoAP as replacement for HTTP is <bcp14>RECOMMENDED</bcp14>
  for use in constrained environments.  For communication security, this
  framework does not make an explicit protocol recommendation, since the choice
  depends on the requirements of the specific application.  DTLS
  <xref target="RFC6347" format="default" sectionFormat="of" derivedContent="RFC6347"/> <xref target="RFC9147" format="default" sectionFormat="of" derivedContent="RFC9147"/> and OSCORE
  <xref target="RFC8613" format="default" sectionFormat="of" derivedContent="RFC8613"/> are mentioned as examples; other protocols fulfilling
  the requirements from <xref target="minimalCommSecReq" format="default" sectionFormat="of" derivedContent="Section 6.5"/> are also
  applicable.</t>
      </section>
    </section>
    <section anchor="specs" numbered="true" toc="include" removeInRFC="false" pn="section-4">
      <name slugifiedName="name-protocol-interactions">Protocol Interactions</name>
      <t indent="0" pn="section-4-1">
    The ACE framework is based on the OAuth 2.0 protocol interactions using
    the token endpoint and optionally the introspection endpoint.
    A client obtains an access token, and optionally a refresh token, from an
    AS using the token endpoint and subsequently presents the access token to
    an RS to gain access to a protected resource. In most deployments, the RS can
    process the access token locally; however, in some cases, the RS may present
    it to the AS via the introspection endpoint to get fresh information.
    These interactions are shown in <xref target="fig_protocolFlow" format="default" sectionFormat="of" derivedContent="Figure 1"/>.  An
    overview of various OAuth concepts is provided in <xref target="oauth2Overview" format="default" sectionFormat="of" derivedContent="Section 3.1"/>.
</t>
      <figure anchor="fig_protocolFlow" align="left" suppress-title="false" pn="figure-1">
        <name slugifiedName="name-basic-protocol-flow">Basic Protocol Flow</name>
        <artwork align="left" name="" type="" alt="" pn="section-4-2.1">
+--------+                               +---------------+
|        |---(A)-- Token Request -------&gt;|               |
|        |                               | Authorization |
|        |&lt;--(B)-- Access Token ---------|    Server     |
|        |    + Access Information       |               |
|        |    + Refresh Token (optional) +---------------+
|        |                                      ^ |
|        |            Introspection Request  (D)| |
| Client |                         Response     | |(E)
|        |            (optional exchange)       | |
|        |                                      | v
|        |                               +--------------+
|        |---(C)-- Token + Request -----&gt;|              |
|        |                               |   Resource   |
|        |&lt;--(F)-- Protected Resource ---|    Server    |
|        |                               |              |
+--------+                               +--------------+
  </artwork>
      </figure>
      <dl newline="true" spacing="normal" indent="3" pn="section-4-3">
        <dt pn="section-4-3.1">Requesting an Access Token (A):</dt>
        <dd pn="section-4-3.2">
          <t indent="0" pn="section-4-3.2.1">
      The client makes an access token request to the token endpoint at the AS.
      This framework assumes the use of PoP access tokens (see <xref target="oauth2Overview" format="default" sectionFormat="of" derivedContent="Section 3.1"/> for a short description) wherein the AS binds a
      key to an access token.  The client may include permissions it seeks to
      obtain and information about the credentials it wants to use for
      proof of possession (e.g., symmetric/asymmetric cryptography or a
      reference to a specific key) of the access token.</t>
        </dd>
        <dt pn="section-4-3.3">Access Token Response (B):</dt>
        <dd pn="section-4-3.4">
          <t indent="0" pn="section-4-3.4.1">
      If the request from the client has been successfully verified, 
      authenticated, and authorized, the AS returns an access token and optionally a refresh
      token. Note that only certain grant types support refresh tokens.  The AS
      can also return additional parameters, referred to as "Access
      Information".  In addition to the response parameters defined by OAuth
      2.0 and the PoP access token extension, this framework defines parameters
      that can be used to inform the client about capabilities of the RS, e.g.,
      the profile the RS supports.  More information about these parameters
      can be found in <xref target="tokenParams" format="default" sectionFormat="of" derivedContent="Section 5.8.4"/>.
          </t>
        </dd>
        <dt pn="section-4-3.5">Resource Request (C):</dt>
        <dd pn="section-4-3.6">
          <t indent="0" pn="section-4-3.6.1">
      The client interacts with the RS to request access to the protected
      resource and provides the access token.  The protocol to use
      between the client and the RS is not restricted to CoAP. HTTP, HTTP/2
      <xref target="RFC9113" format="default" sectionFormat="of" derivedContent="RFC9113"/>, QUIC <xref target="RFC9000" format="default" sectionFormat="of" derivedContent="RFC9000"/>,
      MQTT <xref target="MQTT5.0" format="default" sectionFormat="of" derivedContent="MQTT5.0"/>, Bluetooth Low Energy <xref target="BLE" format="default" sectionFormat="of" derivedContent="BLE"/>,
      etc., are also viable candidates.
          </t>
          <t indent="0" pn="section-4-3.6.2">
      Depending on the device limitations and the selected protocol, this
      exchange may be split up into two parts:</t>
          <ol type="(%d)" spacing="normal" indent="adaptive" start="1" pn="section-4-3.6.3">
            <li pn="section-4-3.6.3.1" derivedCounter="(1)">the client sends the access token containing, or referencing, the
  authorization information to the RS that will be used for subsequent
  resource requests by the client, and </li>
            <li pn="section-4-3.6.3.2" derivedCounter="(2)">the client makes the resource access request using the communication
  security protocol and other Access Information obtained from the AS.</li>
          </ol>
          <t indent="0" pn="section-4-3.6.4">
      The client and the RS mutually authenticate using the security protocol
      specified in the profile (see step (B)) and the keys obtained in the access
      token or the Access Information.  The RS verifies that the token is
      integrity protected and originated by the AS. It then compares the claims
      contained in the access token with the resource request. If the RS is
      online, validation can be handed over to the AS using token introspection
      (see messages (D) and (E)) over HTTP or CoAP.</t>
        </dd>
        <dt pn="section-4-3.7">Token Introspection Request (D):</dt>
        <dd pn="section-4-3.8">
          <t indent="0" pn="section-4-3.8.1">
      A resource server may be configured to introspect the access token by
      including it in a request to the introspection endpoint at that AS.
      Token introspection over
      CoAP is defined in <xref target="introspectionEndpoint" format="default" sectionFormat="of" derivedContent="Section 5.9"/> and for HTTP in
      <xref target="RFC7662" format="default" sectionFormat="of" derivedContent="RFC7662"/>.
          </t>
          <t indent="0" pn="section-4-3.8.2">
      Note that token introspection is an optional step and can be omitted if
      the token is self-contained and the resource server is prepared to
      perform the token validation on its own.</t>
        </dd>
        <dt pn="section-4-3.9">Token Introspection Response (E):</dt>
        <dd pn="section-4-3.10">
          <t indent="0" pn="section-4-3.10.1">
      The AS validates the token and returns the most recent parameters, such
      as <tt>scope</tt>, <tt>audience</tt>, validity, etc., associated with it back to the RS.  The
      RS then uses the received parameters to process the request to either
      accept or to deny it.</t>
        </dd>
        <dt pn="section-4-3.11">Protected Resource (F):</dt>
        <dd pn="section-4-3.12">
      If the request from the client is authorized, the RS fulfills the request
      and returns a response with the appropriate response code.  The RS uses
      the dynamically established keys to protect the response according to
      the communication security protocol used.
    </dd>
      </dl>
      <t indent="0" pn="section-4-4">The OAuth 2.0 framework defines a number of "protocol flows" via grant types,
      which have been extended
      further with extensions to OAuth 2.0 (such as <xref target="RFC7521" format="default" sectionFormat="of" derivedContent="RFC7521"/> and <xref target="RFC8628" format="default" sectionFormat="of" derivedContent="RFC8628"/>).
      What grant type works best depends on the usage scenario; <xref target="RFC7744" format="default" sectionFormat="of" derivedContent="RFC7744"/> describes many different IoT use cases, but
      there are two grant types that cover a majority of these scenarios, namely the
      authorization code grant (described in <xref target="RFC6749" format="default" sectionFormat="of" section="4.1" derivedLink="https://rfc-editor.org/rfc/rfc6749#section-4.1" derivedContent="RFC6749"/>) and 
      the client credentials grant (described
      in <xref target="RFC6749" sectionFormat="of" section="4.4" format="default" derivedLink="https://rfc-editor.org/rfc/rfc6749#section-4.4" derivedContent="RFC6749"/>). The authorization
      code grant is a good fit for use with apps running on smartphones and tablets that request access to IoT devices, a common scenario in the smart home environment, where users need to go through an authentication and authorization phase (at least during the initial setup phase). The native apps guidelines described in <xref target="RFC8252" format="default" sectionFormat="of" derivedContent="RFC8252"/> are applicable to this use case. The client credentials grant is a good fit for use with IoT devices where the OAuth client itself is constrained. In such a case, the resource owner has prearranged access rights for the client with the authorization server, which is often accomplished using a commissioning tool.</t>
      <t indent="0" pn="section-4-5">
    The consent of the resource owner, for giving a client access to a protected
    resource, can be provided dynamically as in the classical OAuth flows, or it
    could be preconfigured by the resource owner as authorization policies at
    the AS, which the AS evaluates when a token request arrives.  The resource
    owner and the requesting party (i.e., client owner) are not shown in <xref target="fig_protocolFlow" format="default" sectionFormat="of" derivedContent="Figure 1"/>.
</t>
      <t indent="0" pn="section-4-6">
	This framework supports a wide variety of communication security mechanisms
	between the ACE entities, such as the client,
	AS, and RS. It is assumed that the client has been
	registered (also called enrolled or onboarded) to an AS using a mechanism defined
	outside the scope of this document.
	In practice, various techniques for onboarding have been used, such as
	factory-based provisioning or the use of
	commissioning tools. Regardless of the onboarding technique, this provisioning
	procedure implies that the client and the AS exchange credentials and
	configuration parameters.  These credentials are used to mutually authenticate each
        other and to protect messages exchanged between the client and the AS.</t>
      <t indent="0" pn="section-4-7">It is also assumed that the RS has been registered with the AS, potentially in a similar way as the client has been registered with the AS.
 Established keying material between the AS and the RS allows the AS to apply
 cryptographic protection to the access token to ensure that its content cannot
 be modified and, if needed, that the content is confidentiality protected. Confidentiality protection of the access token content would be provided on top of 
 confidentiality protection via a communication security protocol. </t>
      <t indent="0" pn="section-4-8">The keying material necessary for establishing communication security
  between the C and RS is dynamically established as part of the protocol described
  in this document.
</t>
      <t indent="0" pn="section-4-9">
    At the start of the protocol, there is an optional discovery step where the
    client discovers the resource server and the resources this server hosts.
    In this step, the client might also determine what permissions are needed to
    access the protected resource.  A generic procedure is described in <xref target="asDiscovery" format="default" sectionFormat="of" derivedContent="Section 5.1"/>; profiles <bcp14>MAY</bcp14> define other procedures for
    discovery.</t>
      <t indent="0" pn="section-4-10">In Bluetooth Low Energy, for example, advertisements are broadcast by
    a peripheral, including information about the primary services.  In CoAP,
    as a second example, a client can make a request to "/.well-known/core" to
    obtain information about available resources, which are returned in a
    standardized format, as described in <xref target="RFC6690" format="default" sectionFormat="of" derivedContent="RFC6690"/>.
</t>
    </section>
    <section anchor="oauthProfile" numbered="true" toc="include" removeInRFC="false" pn="section-5">
      <name slugifiedName="name-framework">Framework</name>
      <t indent="0" pn="section-5-1">The following sections detail the profiling and extensions of OAuth 2.0
  for constrained environments, which constitutes the ACE framework.
      </t>
      <dl newline="true" spacing="normal" indent="3" pn="section-5-2">
        <dt pn="section-5-2.1">Credential Provisioning</dt>
        <dd pn="section-5-2.2">
          <t indent="0" pn="section-5-2.2.1">
        In constrained environments, it cannot be assumed that the client and the RS
        are part of a common key infrastructure. Therefore, the AS provisions
	credentials and associated information to allow mutual authentication
	between the client and the RS. The resulting security association between the client
	and the RS may then also be used to bind these credentials to the
	access tokens the client uses.
          </t>
        </dd>
        <dt pn="section-5-2.3">Proof of Possession</dt>
        <dd pn="section-5-2.4">
          <t indent="0" pn="section-5-2.4.1">
        The ACE framework, by default, implements proof of possession for
	access tokens, i.e., that the token holder can prove being a holder of
	the key bound to the token.  The binding is provided by the <tt>cnf</tt> (confirmation)
	claim
	<xref target="RFC8747" format="default" sectionFormat="of" derivedContent="RFC8747"/>, indicating what key is used for
	proof of possession. If a client needs to submit a new access token,
	e.g., to obtain additional access rights, they can request
	that the AS binds this token to the same key as the previous one.
          </t>
        </dd>
        <dt pn="section-5-2.5">ACE Profiles</dt>
        <dd pn="section-5-2.6">
        The client or RS may be limited in the encodings or protocols it
        supports.  To support a variety of different deployment settings,
        specific interactions between the client and RS are defined in an ACE
        profile.  In the ACE framework, the AS is expected to manage the matching
	of compatible profile choices between a client and an RS.  The AS
	informs the client of the selected profile using the <tt>ace_profile</tt>
	parameter in the token response.
      </dd>
      </dl>
      <t indent="0" pn="section-5-3">OAuth 2.0 requires the use of TLS to protect the communication 
  between the AS and client when requesting an access token between the client and RS
  when accessing a resource and between the AS and RS if introspection is used.
  In constrained settings, TLS is not always feasible or desirable.
  Nevertheless, it is <bcp14>REQUIRED</bcp14> that the communications named above are
  encrypted, integrity protected, and protected against message replay.  It is
  also <bcp14>REQUIRED</bcp14> that the communicating endpoints perform mutual authentication.
  Furthermore, it <bcp14>MUST</bcp14> be assured that responses are bound to the requests in
  the sense that the receiver of a response can be certain that the response
  actually belongs to a certain request.  Note that setting up such a secure
  communication may require some unprotected messages to be exchanged first
  (e.g., sending the token from the client to the RS).</t>
      <t indent="0" pn="section-5-4">Profiles <bcp14>MUST</bcp14> specify a communication security protocol between the
      client and RS that provides the features required above.  Profiles
      <bcp14>MUST</bcp14> specify a
      communication security protocol <bcp14>RECOMMENDED</bcp14> to be used between the
      client and AS that provides the features required above.  Profiles <bcp14>MUST</bcp14>
      specify, for  introspection, a communication security protocol
      <bcp14>RECOMMENDED</bcp14> to be used 
      between the RS and AS that provides the features required above.  These 
      recommendations enable interoperability between different implementations
      without the need to define a new profile if the communication between the C and
      AS, or between the RS and AS, is protected with a different security protocol
      complying with the security requirements above.</t>
      <t indent="0" pn="section-5-5">In OAuth 2.0, the communication with the Token and the Introspection
  endpoints at the AS is assumed to be via HTTP and may use Uri-query
  parameters.  When profiles of this framework use CoAP instead, it is 
  <bcp14>REQUIRED</bcp14> to use of the following alternative instead of Uri-query
  parameters: The sender (client or RS) encodes the parameters of its request
  as a CBOR map and submits that map as the payload of the POST request.
  The CBOR encoding for a number of  OAuth 2.0 parameters is specified in this
  document; if a profile needs to use other OAuth 2.0 parameters with CoAP, it
  <bcp14>MUST</bcp14> specify their CBOR encoding.</t>
      <t indent="0" pn="section-5-6">Profiles that use CBOR encoding of protocol message parameters at the
  outermost encoding layer <bcp14>MUST</bcp14> use the Content-Format "application/ace+cbor".
  If CoAP is used for communication, the Content-Format <bcp14>MUST</bcp14> be abbreviated
  with the ID: 19 (see <xref target="IANAcoapContentFormat" format="default" sectionFormat="of" derivedContent="Section 8.16"/>).</t>
      <t indent="0" pn="section-5-7">The OAuth 2.0 AS uses a JSON structure in the payload of its responses
  both to the client and RS.  If CoAP is used, it is <bcp14>REQUIRED</bcp14> to use
  CBOR <xref target="RFC8949" format="default" sectionFormat="of" derivedContent="RFC8949"/> instead of JSON.  Depending on the profile,
  the CBOR payload <bcp14>MAY</bcp14> be enclosed in a non-CBOR cryptographic wrapper.</t>
      <section anchor="asDiscovery" numbered="true" toc="include" removeInRFC="false" pn="section-5.1">
        <name slugifiedName="name-discovering-authorization-s">Discovering Authorization Servers</name>
        <t indent="0" pn="section-5.1-1">The C must discover the AS in charge of the RS to determine where to request the
access token. To do so, the C 1) must find out the AS URI to which the token
request message must be sent and 2) <bcp14>MUST</bcp14> validate that the AS with this
URI is authorized to provide access tokens for this RS.
        </t>
        <t indent="0" pn="section-5.1-2"> In order to determine the AS URI, the C <bcp14>MAY</bcp14> send an initial Unauthorized
Resource Request message to the RS.  The RS then denies the request and sends
the address of its AS back to the C (see <xref target="rreq" format="default" sectionFormat="of" derivedContent="Section 5.2"/>). How the C validates the
AS authorization is not in scope for this document. The C may, for example, ask
its owner if this AS is authorized for this RS. The C may also use a
mechanism that addresses both problems at once (e.g., by querying a dedicated secure service provided by the client owner) .</t>
      </section>
      <section anchor="rreq" numbered="true" toc="include" removeInRFC="false" pn="section-5.2">
        <name slugifiedName="name-unauthorized-resource-reque">Unauthorized Resource Request Message</name>
        <t indent="0" pn="section-5.2-1">An Unauthorized Resource Request message is a request for any
	resource hosted by the RS for which the client does not have authorization granted.
	The RSs <bcp14>MUST</bcp14>
	treat any request for a protected resource as an Unauthorized Resource
	Request message when any of the following hold:
        </t>
        <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-5.2-2">
          <li pn="section-5.2-2.1">The request has been received on an unsecured channel.</li>
          <li pn="section-5.2-2.2">The RS has no valid access token for the sender of the request
	  regarding the requested action on that resource.</li>
          <li pn="section-5.2-2.3">The RS has a valid access token for the sender of the request, but
	  that token does not authorize the requested action on the requested
	  resource.</li>
        </ul>
        <t indent="0" pn="section-5.2-3">Note: These conditions ensure that the RS can handle requests autonomously
	once access was granted and a secure channel has been established between the C
	and RS. The authz-info endpoint, as part of the process for authorizing
	to protected resources, is not itself a protected resource and <bcp14>MUST NOT</bcp14> be protected as specified above (cf.  <xref target="tokenAuthInfoEndpoint" format="default" sectionFormat="of" derivedContent="Section 5.10.1"/>).</t>
        <t indent="0" pn="section-5.2-4">Unauthorized Resource Request messages <bcp14>MUST</bcp14> be denied with an
	"unauthorized_client" error response. In this response, the resource server
	<bcp14>SHOULD</bcp14> provide proper
	AS Request Creation Hints to enable the client to request an access token
	from the RS's AS, as described in <xref target="asInfo" format="default" sectionFormat="of" derivedContent="Section 5.3"/>.</t>
        <t indent="0" pn="section-5.2-5">The handling of all client requests (including unauthorized ones)
    by the RS is described in <xref target="requestC2RS" format="default" sectionFormat="of" derivedContent="Section 5.10.2"/>.</t>
      </section>
      <section anchor="asInfo" numbered="true" toc="include" removeInRFC="false" pn="section-5.3">
        <name slugifiedName="name-as-request-creation-hints">AS Request Creation Hints</name>
        <t indent="0" pn="section-5.3-1">The AS Request Creation Hints are sent by an RS as a response to
	an Unauthorized Resource Request message (see <xref target="rreq" format="default" sectionFormat="of" derivedContent="Section 5.2"/>) to help
	the sender of the Unauthorized Resource Request message acquire a valid
	access token. The AS Request Creation Hints are a CBOR or JSON map,
	with an <bcp14>OPTIONAL</bcp14> element <tt>AS</tt> specifying an absolute URI (see
	<xref target="RFC3986" sectionFormat="of" section="4.3" format="default" derivedLink="https://rfc-editor.org/rfc/rfc3986#section-4.3" derivedContent="RFC3986"/>) that identifies the
	appropriate AS for the RS.</t>
        <t indent="0" pn="section-5.3-2">The message can also contain the following <bcp14>OPTIONAL</bcp14>
	parameters:</t>
        <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-5.3-3">
          <li pn="section-5.3-3.1">An <tt>audience</tt> element contains an identifier the client
      should request at the AS, as suggested by the RS. With this parameter,
      when included in the access token request to the AS, the AS is able to 
      restrict the use of the access token to specific RSs. See 
      <xref target="audience" format="default" sectionFormat="of" derivedContent="Section 6.9"/> for a discussion of this parameter.</li>
          <li pn="section-5.3-3.2">A <tt>kid</tt> (key identifier) element contains the key identifier of a key used in
	  an existing security association between the client and the RS.
	  The RS expects the client to request an access token bound to this
	  key in order to avoid having to reestablish the security
	  association.</li>
          <li pn="section-5.3-3.3">A <tt>cnonce</tt> element contains a client-nonce. See <xref target="cnonceParam" format="default" sectionFormat="of" derivedContent="Section 5.3.1"/>.</li>
          <li pn="section-5.3-3.4">A <tt>scope</tt> element contains the suggested scope that the client
	  should request towards the AS.</li>
        </ul>
        <t indent="0" pn="section-5.3-4"><xref target="table_asinfo" format="default" sectionFormat="of" derivedContent="Table 1"/> summarizes the parameters that may
	be part of the AS Request Creation Hints.</t>
        <table anchor="table_asinfo" align="center" pn="table-1">
          <name slugifiedName="name-as-request-creation-hints-2">AS Request Creation Hints</name>
          <thead>
            <tr>
              <th align="left" colspan="1" rowspan="1">Name</th>
              <th align="left" colspan="1" rowspan="1">CBOR Key</th>
              <th align="left" colspan="1" rowspan="1">Value Type</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td align="left" colspan="1" rowspan="1">AS</td>
              <td align="left" colspan="1" rowspan="1">1</td>
              <td align="left" colspan="1" rowspan="1">text string</td>
            </tr>
            <tr>
              <td align="left" colspan="1" rowspan="1">kid</td>
              <td align="left" colspan="1" rowspan="1">2</td>
              <td align="left" colspan="1" rowspan="1">byte string</td>
            </tr>
            <tr>
              <td align="left" colspan="1" rowspan="1">audience</td>
              <td align="left" colspan="1" rowspan="1">5</td>
              <td align="left" colspan="1" rowspan="1">text string</td>
            </tr>
            <tr>
              <td align="left" colspan="1" rowspan="1">scope</td>
              <td align="left" colspan="1" rowspan="1">9</td>
              <td align="left" colspan="1" rowspan="1">text or byte string</td>
            </tr>
            <tr>
              <td align="left" colspan="1" rowspan="1">cnonce</td>
              <td align="left" colspan="1" rowspan="1">39</td>
              <td align="left" colspan="1" rowspan="1">byte string</td>
            </tr>
          </tbody>
        </table>
        <t indent="0" pn="section-5.3-6">Note that the schema part of the AS parameter may need to be
    adapted to the security protocol that is used between the client
    and the AS. Thus, the example AS value "coap://as.example.com/token"
    might need to be transformed to "coaps://as.example.com/token".
    It is assumed that the client can determine the correct schema part on
    its own depending on the way it communicates with the AS.</t>
        <t indent="0" pn="section-5.3-7"><xref target="fig_as-info-payload" format="default" sectionFormat="of" derivedContent="Figure 2"/> shows an example for an AS
    Request Creation Hints payload using
    diagnostic notation.</t>
        <figure anchor="fig_as-info-payload" align="left" suppress-title="false" pn="figure-2">
          <name slugifiedName="name-as-request-creation-hints-p">AS Request Creation Hints Payload Example</name>
          <sourcecode type="cbor-diag" markers="false" pn="section-5.3-8.1">
    4.01 Unauthorized
    Content-Format: application/ace+cbor
    Payload :
    {
     / AS / 1 : "coaps://as.example.com/token",
     / audience / 5 : "coaps://rs.example.com",
     / scope / 9 : "rTempC",
     / cnonce / 39 : h'e0a156bb3f'
    }
</sourcecode>
        </figure>
        <t indent="0" pn="section-5.3-9">In the example above, the response parameter <tt>AS</tt> points the receiver of
    this message to the URI "coaps://as.example.com/token" to request access
    tokens.  The RS sending this response uses an internal clock
    that is not synchronized with the clock of the AS.  Therefore, it
    cannot reliably verify the expiration time of access tokens it receives.
    Nevertheless, to ensure a certain level of access token freshness, the RS has
    included a <tt>cnonce</tt> parameter (see <xref target="cnonceParam" format="default" sectionFormat="of" derivedContent="Section 5.3.1"/>) in the response. (The hex sequence of the <tt>cnonce</tt> parameter 
    is encoded in CBOR-based notation in this example.)</t>
        <t indent="0" pn="section-5.3-10"><xref target="fig_as-info-cbor" format="default" sectionFormat="of" derivedContent="Figure 3"/> illustrates the mandatory use
	of binary encoding of the message payload shown in
	<xref target="fig_as-info-payload" format="default" sectionFormat="of" derivedContent="Figure 2"/>.</t>
        <figure anchor="fig_as-info-cbor" align="left" suppress-title="false" pn="figure-3">
          <name slugifiedName="name-as-request-creation-hints-e">AS Request Creation Hints Example Encoded in CBOR</name>
          <sourcecode name="" type="cbor-pretty" markers="false" pn="section-5.3-11.1">
a4                                   # map(4)
   01                                # unsigned(1) (=AS)
   78 1c                             # text(28)
      636f6170733a2f2f61732e657861
      6d706c652e636f6d2f746f6b656e   # "coaps://as.example.com/token"
   05                                # unsigned(5) (=audience)
   76                                # text(22)
      636f6170733a2f2f72732e657861
      6d706c652e636f6d               # "coaps://rs.example.com"
   09                                # unsigned(9) (=scope)
   66                                # text(6)
      7254656d7043                   # "rTempC"
   18 27                             # unsigned(39) (=cnonce)
   45                                # bytes(5)
      e0a156bb3f                     #
</sourcecode>
        </figure>
        <section anchor="cnonceParam" numbered="true" toc="include" removeInRFC="false" pn="section-5.3.1">
          <name slugifiedName="name-the-client-nonce-parameter">The Client-Nonce Parameter</name>
          <t indent="0" pn="section-5.3.1-1">If the RS does not synchronize its clock with the AS, it could be
      tricked into accepting old access tokens that are either expired or have
      been compromised.  In order to ensure some level of token freshness
      in that case, the RS can use the <tt>cnonce</tt> (client-nonce) parameter.
      The processing requirements for this parameter are as follows:
          </t>
          <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-5.3.1-2">
            <li pn="section-5.3.1-2.1">An RS sending a <tt>cnonce</tt> parameter in an AS Request Creation
	    Hints message <bcp14>MUST</bcp14> store information to validate that a given
	    cnonce is fresh.  How this is implemented internally is out of scope
	    for this specification.  Expiration of client-nonces should be based
	    roughly on the time it would take a client to obtain an access token
	    after receiving the AS Request Creation Hints, with some
	    allowance for unexpected delays.</li>
            <li pn="section-5.3.1-2.2">A client receiving a <tt>cnonce</tt> parameter in an AS Request Creation
	    Hints message <bcp14>MUST</bcp14> include this in the parameters when
	    requesting an access token at the AS, using the <tt>cnonce</tt> parameter from
	    <xref target="cnonceParamToken" format="default" sectionFormat="of" derivedContent="Section 5.8.4.4"/>.</li>
            <li pn="section-5.3.1-2.3">If an AS grants an access token request containing a <tt>cnonce</tt>
	    parameter, it <bcp14>MUST</bcp14> include this value in the access token, using
	    the	<tt>cnonce</tt> claim specified in <xref target="accessToken" format="default" sectionFormat="of" derivedContent="Section 5.10"/>.</li>
            <li pn="section-5.3.1-2.4">An RS that is using the client-nonce mechanism and that receives an
	    access token <bcp14>MUST</bcp14> verify that this token contains a <tt>cnonce</tt>
	    claim, with
	    a client-nonce value that is fresh according to the information stored
	    at the first step above.  If the <tt>cnonce</tt> claim is not present or if the
	    <tt>cnonce</tt> claim value is not fresh, the RS <bcp14>MUST</bcp14> discard the access
	    token. If this was an interaction with the authz-info endpoint, the RS
	    <bcp14>MUST</bcp14> also
	    respond with an error message using a response code equivalent to the
	    CoAP code 4.01 (Unauthorized).</li>
          </ul>
        </section>
      </section>
      <section anchor="authorizationGrants" numbered="true" toc="include" removeInRFC="false" pn="section-5.4">
        <name slugifiedName="name-authorization-grants">Authorization Grants</name>
        <t indent="0" pn="section-5.4-1">To request an access token, the client obtains authorization from the
  resource owner or uses its client credentials as a grant.  The authorization
  is expressed in the form of an authorization grant.</t>
        <t indent="0" pn="section-5.4-2">The OAuth framework <xref target="RFC6749" format="default" sectionFormat="of" derivedContent="RFC6749"/> defines four grant types. The grant types can
  be split up into two groups: those granted on behalf of the resource
  owner (password, authorization code, implicit) and those for the client
  (client credentials). Further grant types have been added later, such as an assertion-based authorization grant defined in <xref target="RFC7521" format="default" sectionFormat="of" derivedContent="RFC7521"/>.</t>
        <t indent="0" pn="section-5.4-3">The grant type is selected depending on the use case.  In cases where
  the client acts on behalf of the resource owner, the authorization code
  grant is recommended.  If the client acts on behalf of the resource owner
  but does not have any display or has very limited interaction possibilities, it is
  recommended to use the device code grant defined in
  <xref target="RFC8628" format="default" sectionFormat="of" derivedContent="RFC8628"/>.  In cases where the client
  acts autonomously, the client credentials grant is recommended.</t>
        <t indent="0" pn="section-5.4-4">For details on the different grant types, see <xref target="RFC6749" sectionFormat="of" section="1.3" format="default" derivedLink="https://rfc-editor.org/rfc/rfc6749#section-1.3" derivedContent="RFC6749"/>. The OAuth 2.0 framework provides an extension
  mechanism for defining additional grant types, so profiles of this framework
  <bcp14>MAY</bcp14> define additional grant types, if needed.</t>
      </section>
      <section anchor="clientCredentials" numbered="true" toc="include" removeInRFC="false" pn="section-5.5">
        <name slugifiedName="name-client-credentials">Client Credentials</name>
        <t indent="0" pn="section-5.5-1">Authentication of the client is mandatory independent of the grant type
  when requesting an access token from the token endpoint. In the case of
  the client credentials grant type, the authentication and grant coincide.</t>
        <t indent="0" pn="section-5.5-2">Client registration and provisioning of client credentials to the client
  is out of scope for this specification.</t>
        <t indent="0" pn="section-5.5-3">The OAuth framework defines one client credential type in
  <xref target="RFC6749" sectionFormat="of" section="2.3.1" format="default" derivedLink="https://rfc-editor.org/rfc/rfc6749#section-2.3.1" derivedContent="RFC6749"/> that comprises the client_id and client_secret values. <xref target="I-D.erdtman-oauth-rpcc" format="default" sectionFormat="of" derivedContent="OAUTH-RPCC"/> adds raw public key and pre-shared key to the
  client credentials type.  Profiles of this framework <bcp14>MAY</bcp14> extend it with
  an additional client credentials type using client certificates.</t>
      </section>
      <section anchor="ASAuthentication" numbered="true" toc="include" removeInRFC="false" pn="section-5.6">
        <name slugifiedName="name-as-authentication">AS Authentication</name>
        <t indent="0" pn="section-5.6-1">The client credentials grant does not, by default, authenticate the AS that the client
  connects to. In classic OAuth, the AS is authenticated with a TLS server
  certificate.</t>
        <t indent="0" pn="section-5.6-2">Profiles of this framework <bcp14>MUST</bcp14> specify how clients authenticate the AS
  and how communication security is implemented. By default, server side TLS
  certificates, as defined by OAuth 2.0, are required.</t>
      </section>
      <section anchor="authorizeEndpoint" numbered="true" toc="include" removeInRFC="false" pn="section-5.7">
        <name slugifiedName="name-the-authorization-endpoint">The Authorization Endpoint</name>
        <t indent="0" pn="section-5.7-1">The OAuth 2.0 authorization endpoint is used to interact with the resource owner
  and obtain an authorization grant in certain grant flows.  The primary use
  case for the ACE-OAuth framework is for machine-to-machine interactions that do not involve
  the resource owner in the authorization flow; therefore, this endpoint is
  out of scope here.  Future profiles may define constrained adaptation
  mechanisms for this endpoint as well.  Nonconstrained clients interacting
  with constrained resource servers can use the specification in
  <xref target="RFC6749" sectionFormat="of" section="3.1" format="default" derivedLink="https://rfc-editor.org/rfc/rfc6749#section-3.1" derivedContent="RFC6749"/> and the attack countermeasures suggested in
  <xref target="RFC6819" sectionFormat="of" section="4.2" format="default" derivedLink="https://rfc-editor.org/rfc/rfc6819#section-4.2" derivedContent="RFC6819"/>.</t>
      </section>
      <section anchor="tokenEndpoint" numbered="true" toc="include" removeInRFC="false" pn="section-5.8">
        <name slugifiedName="name-the-token-endpoint">The Token Endpoint</name>
        <t indent="0" pn="section-5.8-1">In standard OAuth 2.0, the AS provides the token endpoint for submitting
  access token requests.  This framework extends the functionality of the
  token endpoint, giving the AS the possibility to help the client and RS
  establish shared keys or exchange their public keys.  Furthermore,
  this framework defines encodings using CBOR as a substitute for JSON.</t>
        <t indent="0" pn="section-5.8-2">The endpoint may also be exposed over HTTPS, as in classical OAuth or
  even other transports.  A profile <bcp14>MUST</bcp14> define the details of the mapping
  between the fields described below and these transports.
  If HTTPS with JSON is used,
  the semantics of Sections <xref target="RFC6749" section="4.1.3" sectionFormat="bare" format="default" derivedLink="https://rfc-editor.org/rfc/rfc6749#section-4.1.3" derivedContent="RFC6749"/> and <xref target="RFC6749" section="4.1.4" sectionFormat="bare" format="default" derivedLink="https://rfc-editor.org/rfc/rfc6749#section-4.1.4" derivedContent="RFC6749"/> of the OAuth 2.0 specification <xref target="RFC6749" format="default" sectionFormat="of" derivedContent="RFC6749"/> <bcp14>MUST</bcp14>
  be followed (with additions as described below).  If CBOR is used as the payload format, the semantics described in this
section <bcp14>MUST</bcp14> be followed.</t>
        <t indent="0" pn="section-5.8-3">For the AS to be able to issue a token, the client <bcp14>MUST</bcp14> be authenticated
  and present a valid grant for the scopes requested.  Profiles of this
  framework <bcp14>MUST</bcp14> specify how the AS authenticates the client and how the
  communication between the client and AS is protected, fulfilling the
  requirements specified in <xref target="oauthProfile" format="default" sectionFormat="of" derivedContent="Section 5"/>.</t>
        <t indent="0" pn="section-5.8-4">The default name of this endpoint in a url-path <bcp14>SHOULD</bcp14> be '/token'.
  However, implementations are not required to use this name and can define
  their own instead.</t>
        <section anchor="tokenRequest" numbered="true" toc="include" removeInRFC="false" pn="section-5.8.1">
          <name slugifiedName="name-client-to-as-request">Client-to-AS Request</name>
          <t indent="0" pn="section-5.8.1-1">The client sends a POST request to the token endpoint
    at the AS. The profile <bcp14>MUST</bcp14> specify how the communication is protected.
    The content of the request consists of the parameters specified
    in the relevant subsection of Section <xref target="RFC6749" section="4" sectionFormat="bare" format="default" derivedLink="https://rfc-editor.org/rfc/rfc6749#section-4" derivedContent="RFC6749"/> of the OAuth 2.0 specification
    <xref target="RFC6749" format="default" sectionFormat="of" derivedContent="RFC6749"/>, depending on the grant type, with the following
    exceptions and additions:
          </t>
          <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-5.8.1-2">
            <li pn="section-5.8.1-2.1">The <tt>grant_type</tt> parameter is <bcp14>OPTIONAL</bcp14> in the context
	    of this framework (as opposed to <bcp14>REQUIRED</bcp14> in <xref target="RFC6749" format="default" sectionFormat="of" derivedContent="RFC6749"/>).  If that parameter is
	    missing, the default value "client_credentials" is implied.</li>
            <li pn="section-5.8.1-2.2">The <tt>audience</tt> parameter from <xref target="RFC8693" format="default" sectionFormat="of" derivedContent="RFC8693"/> is <bcp14>OPTIONAL</bcp14> to
	    request an access token bound to a specific audience.</li>
            <li pn="section-5.8.1-2.3">The <tt>cnonce</tt> parameter defined in <xref target="cnonceParamToken" format="default" sectionFormat="of" derivedContent="Section 5.8.4.4"/> is
	    <bcp14>REQUIRED</bcp14> if the RS provided a client-nonce in the AS
	    Request Creation Hints message (<xref target="asInfo" format="default" sectionFormat="of" derivedContent="Section 5.3"/>).</li>
            <li pn="section-5.8.1-2.4">The <tt>scope</tt> parameter <bcp14>MAY</bcp14> be encoded as a byte string
	    instead of the string encoding specified in <xref target="RFC6749" sectionFormat="of" section="3.3" format="default" derivedLink="https://rfc-editor.org/rfc/rfc6749#section-3.3" derivedContent="RFC6749"/> or
	    in order to allow compact encoding of complex scopes.  The syntax of
	    such a binary encoding is explicitly not specified here and left
	    to profiles or applications. Note specifically that a binary encoded
	    scope does not necessarily use the space character '0x20' to delimit
	    scope-tokens.</li>
            <li pn="section-5.8.1-2.5">The client can send an empty (null value) <tt>ace_profile</tt> parameter to
	    indicate that it wants the AS to include the <tt>ace_profile</tt> parameter in
      the response.  See <xref target="paramProfile" format="default" sectionFormat="of" derivedContent="Section 5.8.4.3"/>.</li>
            <li pn="section-5.8.1-2.6">A client <bcp14>MUST</bcp14> be able to use the parameters from <xref target="RFC9201" format="default" sectionFormat="of" derivedContent="RFC9201"/> in an access token request to the
      token endpoint, and the AS <bcp14>MUST</bcp14> be able to process these additional
      parameters.</li>
          </ul>
          <t indent="0" pn="section-5.8.1-3">The default behavior is that the AS generates a symmetric
    proof-of-possession key for the client. In order to use an asymmetric key
    pair or to reuse a key previously established with the RS, the client is
    supposed to use the <tt>req_cnf</tt> parameter from <xref target="RFC9201" format="default" sectionFormat="of" derivedContent="RFC9201"/>.
          </t>
          <t indent="0" pn="section-5.8.1-4">If CoAP is used, then these parameters <bcp14>MUST</bcp14> be provided in a CBOR map
    (see <xref target="table_cborTokenParameters" format="default" sectionFormat="of" derivedContent="Table 5"/>).</t>
          <t indent="0" pn="section-5.8.1-5">When HTTP is used as a transport, then the client makes a 
    request to the token endpoint; the parameters <bcp14>MUST</bcp14> be encoded as defined 
    in <xref target="RFC6749" sectionFormat="of" section="B" format="default" derivedLink="https://rfc-editor.org/rfc/rfc6749#appendix-B" derivedContent="RFC6749"/>.</t>
          <t indent="0" pn="section-5.8.1-6">The following examples illustrate different types of requests
    for proof-of-possession tokens. </t>
          <t indent="0" pn="section-5.8.1-7"><xref target="fig_symmATreq" format="default" sectionFormat="of" derivedContent="Figure 4"/> shows a request for a token
    with a symmetric proof-of-possession key, using diagnostic notation.</t>
          <figure anchor="fig_symmATreq" align="left" suppress-title="false" pn="figure-4">
            <name slugifiedName="name-example-request-for-an-acce">Example Request for an Access Token Bound to a Symmetric Key</name>
            <sourcecode name="" type="cbor-diag" markers="false" pn="section-5.8.1-8.1">
Header: POST (Code=0.02)
Uri-Host: "as.example.com"
Uri-Path: "token"
Content-Format: application/ace+cbor
Payload:
{
  / client_id / 24 : "myclient",
  / audience /  5  : "tempSensor4711"
}
</sourcecode>
          </figure>
          <t indent="0" pn="section-5.8.1-9"><xref target="fig_asymmATreq" format="default" sectionFormat="of" derivedContent="Figure 5"/> shows a request for a token
	  with an
	  asymmetric proof-of-possession key.  Note that, in this example, OSCORE
	  <xref target="RFC8613" format="default" sectionFormat="of" derivedContent="RFC8613"/> is used
	  to provide object-security; therefore, the Content-Format is
	  "application/oscore" wrapping the "application/ace+cbor" type content.
	  The OSCORE option has a decoded interpretation appended in parentheses
	  for the reader's convenience.  Also note that, in this example, the audience
	  is implicitly known by both the client and AS. Furthermore, note that this
	  example uses the <tt>req_cnf</tt> parameter from <xref target="RFC9201" format="default" sectionFormat="of" derivedContent="RFC9201"/>.
          </t>
          <figure anchor="fig_asymmATreq" align="left" suppress-title="false" pn="figure-5">
            <name slugifiedName="name-example-token-request-bound">Example Token Request Bound to an Asymmetric Key</name>
            <sourcecode name="" type="cbor-diag" markers="false" pn="section-5.8.1-10.1">
Header: POST (Code=0.02)
Uri-Host: "as.example.com"
Uri-Path: "token"
OSCORE: 0x09, 0x05, 0x44, 0x6C
  (h=0, k=1, n=001, partialIV= 0x05, kid=[0x44, 0x6C])
Content-Format: application/oscore
Payload:
  0x44025d1/ ... (full payload omitted for brevity) ... /68b3825e

Decrypted payload:
{
  / client_id / 24 : "myclient",
  / req_cnf / 4 : {
    / COSE_Key / 1 : {
      / kty /  1 : 2 / EC2 /,
      / kid /  2 : h'11',
      / crv / -1 : 1 / P-256 /,
      / x /   -2 : b64'usWxHK2PmfnHKwXPS54m0kTcGJ90UiglWiGahtagnv8',
      / y /   -3 : b64'IBOL+C3BttVivg+lSreASjpkttcsz+1rb7btKLv8EX4'
    }
  }
}
</sourcecode>
          </figure>
          <t indent="0" pn="section-5.8.1-11"><xref target="fig_kidATreq" format="default" sectionFormat="of" derivedContent="Figure 6"/> shows a request for a token
    where a previously communicated proof-of-possession key is only
    referenced using the <tt>req_cnf</tt> parameter from
    <xref target="RFC9201" format="default" sectionFormat="of" derivedContent="RFC9201"/>.

          </t>
          <figure anchor="fig_kidATreq" align="left" suppress-title="false" pn="figure-6">
            <name slugifiedName="name-example-request-for-an-acces">Example Request for an Access Token Bound to a Key Reference</name>
            <sourcecode name="" type="cbor-diag" markers="false" pn="section-5.8.1-12.1">
Header: POST (Code=0.02)
Uri-Host: "as.example.com"
Uri-Path: "token"
Content-Format: application/ace+cbor
Payload:
{
  / client_id / 24 : "myclient",
  / audience /   5 : "valve424",
  / scope /      9 : "read",
  / req_cnf /    4 : {
     / kid /        3 : b64'6kg0dXJM13U'
  }
}
</sourcecode>
          </figure>
          <t indent="0" pn="section-5.8.1-13">Refresh tokens are typically not stored as securely as
	  proof-of-possession keys in requesting clients.  Proof-of-possession-based
	  refresh token requests <bcp14>MUST NOT</bcp14> request different
	  proof-of-possession keys
	  or different audiences in token requests.  Refresh token requests can only be
	  used to request access tokens bound to the same proof-of-possession key and
	  the same audience as access tokens issued in the initial token request.</t>
        </section>
        <section anchor="tokenResponse" numbered="true" toc="include" removeInRFC="false" pn="section-5.8.2">
          <name slugifiedName="name-as-to-client-response">AS-to-Client Response</name>
          <t indent="0" pn="section-5.8.2-1">If the access token request has been successfully verified by the
    AS and the client is authorized to obtain an access token corresponding
    to its access token request, the AS sends a response with the response
    code equivalent to the CoAP response code 2.01 (Created).  If the client
    request was invalid, or not authorized, the AS returns an error response, as
    described in <xref target="errorsToken" format="default" sectionFormat="of" derivedContent="Section 5.8.3"/>.</t>
          <t indent="0" pn="section-5.8.2-2">Note that the AS decides which token type and profile to use when
	  issuing a successful response.  It is assumed that the AS has prior
	  knowledge of the capabilities of the client and the RS (see <xref target="app_registration" format="default" sectionFormat="of" derivedContent="Appendix D"/>).  This prior knowledge may,
	  for example, be set
	  by the use of a dynamic client registration protocol exchange
	  <xref target="RFC7591" format="default" sectionFormat="of" derivedContent="RFC7591"/>.  If the client has requested a
	  specific
	  proof-of-possession key using the <tt>req_cnf</tt> parameter from
	  <xref target="RFC9201" format="default" sectionFormat="of" derivedContent="RFC9201"/>, this may also influence which
	  profile the AS selects, as it needs to support the use of the key type
	  requested by the client.</t>
          <t indent="0" pn="section-5.8.2-3">The content of the successful reply is the Access Information. 
	  When using CoAP, the payload <bcp14>MUST</bcp14> be encoded as a CBOR map;
	  when using
	  HTTP, the encoding is a JSON map, as specified in <xref target="RFC6749" sectionFormat="of" section="5.1" format="default" derivedLink="https://rfc-editor.org/rfc/rfc6749#section-5.1" derivedContent="RFC6749"/>.  In both cases, the parameters specified
	  in <xref target="RFC6749" sectionFormat="of" section="5.1" format="default" derivedLink="https://rfc-editor.org/rfc/rfc6749#section-5.1" derivedContent="RFC6749"/> are used, with
	  the following additions and changes:</t>
          <dl newline="true" spacing="normal" indent="6" pn="section-5.8.2-4">
            <dt pn="section-5.8.2-4.1">ace_profile:</dt>
            <dd pn="section-5.8.2-4.2">This parameter is <bcp14>OPTIONAL</bcp14> unless the request included an
	    empty <tt>ace_profile</tt> parameter,
	    in which case it is MANDATORY.  This indicates the profile that the
	    client <bcp14>MUST</bcp14> use towards the RS. See <xref target="paramProfile" format="default" sectionFormat="of" derivedContent="Section 5.8.4.3"/> for
	    the formatting of this parameter.  If this parameter is absent, the AS
	    assumes that the client implicitly knows which profile to use towards
	    the RS.</dd>
            <dt pn="section-5.8.2-4.3"><tt>token_type</tt>:</dt>
            <dd pn="section-5.8.2-4.4">This parameter is <bcp14>OPTIONAL</bcp14>, as opposed to
	    <bcp14>REQUIRED</bcp14> in
	    <xref target="RFC6749" format="default" sectionFormat="of" derivedContent="RFC6749"/>. By default, implementations of
	    this framework
	    <bcp14>SHOULD</bcp14> assume that the <tt>token_type</tt> is "PoP".  If a specific
	    use case
	    requires another <tt>token_type</tt> (e.g., "Bearer") to be used, then this
	    parameter is <bcp14>REQUIRED</bcp14>.
	    </dd>
          </dl>
          <t indent="0" pn="section-5.8.2-5">Furthermore, <xref target="RFC9201" format="default" sectionFormat="of" derivedContent="RFC9201"/> defines
	  additional parameters that the AS <bcp14>MUST</bcp14> be able to use when
	  responding to a request to the token endpoint.</t>
          <t indent="0" pn="section-5.8.2-6"><xref target="table_rsinfo" format="default" sectionFormat="of" derivedContent="Table 2"/> summarizes the parameters that
	  can currently be part of the Access Information. Future extensions
	  may define additional parameters.</t>
          <table anchor="table_rsinfo" align="center" pn="table-2">
            <name slugifiedName="name-access-information-paramete">Access Information Parameters</name>
            <thead>
              <tr>
                <th align="left" colspan="1" rowspan="1">Parameter name</th>
                <th align="left" colspan="1" rowspan="1">Specified in</th>
              </tr>
            </thead>
            <tbody>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>access_token</tt></td>
                <td align="left" colspan="1" rowspan="1">
                  <xref target="RFC6749" format="default" sectionFormat="of" derivedContent="RFC6749"/></td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>token_type</tt></td>
                <td align="left" colspan="1" rowspan="1">
                  <xref target="RFC6749" format="default" sectionFormat="of" derivedContent="RFC6749"/></td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>expires_in</tt></td>
                <td align="left" colspan="1" rowspan="1">
                  <xref target="RFC6749" format="default" sectionFormat="of" derivedContent="RFC6749"/></td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>refresh_token</tt></td>
                <td align="left" colspan="1" rowspan="1">
                  <xref target="RFC6749" format="default" sectionFormat="of" derivedContent="RFC6749"/></td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>scope</tt></td>
                <td align="left" colspan="1" rowspan="1">
                  <xref target="RFC6749" format="default" sectionFormat="of" derivedContent="RFC6749"/></td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>state</tt></td>
                <td align="left" colspan="1" rowspan="1">
                  <xref target="RFC6749" format="default" sectionFormat="of" derivedContent="RFC6749"/></td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>error</tt></td>
                <td align="left" colspan="1" rowspan="1">
                  <xref target="RFC6749" format="default" sectionFormat="of" derivedContent="RFC6749"/></td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>error_description</tt></td>
                <td align="left" colspan="1" rowspan="1">
                  <xref target="RFC6749" format="default" sectionFormat="of" derivedContent="RFC6749"/></td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>error_uri</tt></td>
                <td align="left" colspan="1" rowspan="1">
                  <xref target="RFC6749" format="default" sectionFormat="of" derivedContent="RFC6749"/></td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>ace_profile</tt></td>
                <td align="left" colspan="1" rowspan="1">RFC 9200</td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>cnf</tt></td>
                <td align="left" colspan="1" rowspan="1">
                  <xref target="RFC9201" format="default" sectionFormat="of" derivedContent="RFC9201"/></td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>rs_cnf</tt></td>
                <td align="left" colspan="1" rowspan="1">
                  <xref target="RFC9201" format="default" sectionFormat="of" derivedContent="RFC9201"/></td>
              </tr>
            </tbody>
          </table>
          <t indent="0" pn="section-5.8.2-8"><xref target="fig_symmATres" format="default" sectionFormat="of" derivedContent="Figure 7"/> shows a response containing a token
    and a <tt>cnf</tt> parameter with a symmetric proof-of-possession key, which
    is defined in <xref target="RFC9201" format="default" sectionFormat="of" derivedContent="RFC9201"/>.  Note that
    the key identifier <tt>kid</tt> is only used to simplify indexing and
    retrieving the key, and no assumptions should be made that it is
    unique in the domains of either the client or the RS.

          </t>
          <figure anchor="fig_symmATres" align="left" suppress-title="false" pn="figure-7">
            <name slugifiedName="name-example-as-response-with-an">Example AS Response with an Access Token Bound to a Symmetric Key</name>
            <sourcecode name="" type="cbor-diag" markers="false" pn="section-5.8.2-9.1">
Header: Created (Code=2.01)
Content-Format: application/ace+cbor
Payload:
{
  / access_token / 1 : b64'SlAV32hk'/ ...
   (remainder of CWT omitted for brevity;
   CWT contains COSE_Key in the cnf claim)/,
  / ace_profile / 38 : "coap_dtls",
  / expires_in /   2 : 3600,
  / cnf / 8 : {
    / COSE_Key / 1 : {
      / kty / 1 : 4 / Symmetric /,
      / kid / 2 : b64'39Gqlw',
      / k /  -1 : b64'hJtXhkV8FJG+Onbc6mxC'
    }
  }
}
</sourcecode>
          </figure>
        </section>
        <section anchor="errorsToken" numbered="true" toc="include" removeInRFC="false" pn="section-5.8.3">
          <name slugifiedName="name-error-response">Error Response</name>
          <t indent="0" pn="section-5.8.3-1">The error responses for interactions with the AS are generally
    equivalent to the ones defined in <xref target="RFC6749" sectionFormat="of" section="5.2" format="default" derivedLink="https://rfc-editor.org/rfc/rfc6749#section-5.2" derivedContent="RFC6749"/>,
    with the following exceptions:

          </t>
          <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-5.8.3-2">
            <li pn="section-5.8.3-2.1">When using CoAP, the payload <bcp14>MUST</bcp14> be encoded as a CBOR
	    map, with
	    the Content-Format "application/ace+cbor".  When using HTTP, the
            payload is encoded in JSON, as specified in <xref target="RFC6749" sectionFormat="of" section="5.2" format="default" derivedLink="https://rfc-editor.org/rfc/rfc6749#section-5.2" derivedContent="RFC6749"/>.</li>
            <li pn="section-5.8.3-2.2">A response code equivalent to the CoAP code 4.00 (Bad Request)
	    <bcp14>MUST</bcp14>
	    be used for all error responses, except for invalid_client, where a
	    response code equivalent to the CoAP code 4.01 (Unauthorized)
	    <bcp14>MAY</bcp14> be
	    used under the same conditions as specified in 
	    <xref target="RFC6749" sectionFormat="of" section="5.2" format="default" derivedLink="https://rfc-editor.org/rfc/rfc6749#section-5.2" derivedContent="RFC6749"/>.</li>
            <li pn="section-5.8.3-2.3">The parameters <tt>error</tt>, <tt>error_description</tt>, and <tt>error_uri</tt> <bcp14>MUST</bcp14>
	be abbreviated using the codes specified in <xref target="table_cborTokenParameters" format="default" sectionFormat="of" derivedContent="Table 5"/>, when a CBOR encoding is used.</li>
            <li pn="section-5.8.3-2.4">The error code (i.e., value of the <tt>error</tt> parameter) <bcp14>MUST</bcp14> be
	abbreviated, as specified in <xref target="table_cborErrorCodes" format="default" sectionFormat="of" derivedContent="Table 3"/>, when a CBOR encoding is used.</li>
          </ul>
          <table anchor="table_cborErrorCodes" align="center" pn="table-3">
            <name slugifiedName="name-cbor-abbreviations-for-comm">CBOR Abbreviations for Common Error Codes</name>
            <thead>
              <tr>
                <th align="left" colspan="1" rowspan="1">Name</th>
                <th align="left" colspan="1" rowspan="1">CBOR Values</th>
                <th align="left" colspan="1" rowspan="1">Original Specification</th>
              </tr>
            </thead>
            <tbody>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>invalid_request</tt></td>
                <td align="left" colspan="1" rowspan="1">1</td>
                <td align="left" colspan="1" rowspan="1">
                  <xref target="RFC6749" sectionFormat="of" section="5.2" format="default" derivedLink="https://rfc-editor.org/rfc/rfc6749#section-5.2" derivedContent="RFC6749"/></td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>invalid_client</tt></td>
                <td align="left" colspan="1" rowspan="1">2</td>
                <td align="left" colspan="1" rowspan="1">
                  <xref target="RFC6749" sectionFormat="of" section="5.2" format="default" derivedLink="https://rfc-editor.org/rfc/rfc6749#section-5.2" derivedContent="RFC6749"/></td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>invalid_grant</tt></td>
                <td align="left" colspan="1" rowspan="1">3</td>
                <td align="left" colspan="1" rowspan="1">
                  <xref target="RFC6749" sectionFormat="of" section="5.2" format="default" derivedLink="https://rfc-editor.org/rfc/rfc6749#section-5.2" derivedContent="RFC6749"/></td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>unauthorized_client</tt></td>
                <td align="left" colspan="1" rowspan="1">4</td>
                <td align="left" colspan="1" rowspan="1">
                  <xref target="RFC6749" sectionFormat="of" section="5.2" format="default" derivedLink="https://rfc-editor.org/rfc/rfc6749#section-5.2" derivedContent="RFC6749"/></td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>unsupported_grant_type</tt></td>
                <td align="left" colspan="1" rowspan="1">5</td>
                <td align="left" colspan="1" rowspan="1">
                  <xref target="RFC6749" sectionFormat="of" section="5.2" format="default" derivedLink="https://rfc-editor.org/rfc/rfc6749#section-5.2" derivedContent="RFC6749"/></td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>invalid_scope</tt></td>
                <td align="left" colspan="1" rowspan="1">6</td>
                <td align="left" colspan="1" rowspan="1">
                  <xref target="RFC6749" sectionFormat="of" section="5.2" format="default" derivedLink="https://rfc-editor.org/rfc/rfc6749#section-5.2" derivedContent="RFC6749"/></td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>unsupported_pop_key</tt></td>
                <td align="left" colspan="1" rowspan="1">7</td>
                <td align="left" colspan="1" rowspan="1">RFC 9200</td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>incompatible_ace_profiles</tt></td>
                <td align="left" colspan="1" rowspan="1">8</td>
                <td align="left" colspan="1" rowspan="1">RFC 9200</td>
              </tr>
            </tbody>
          </table>
          <t indent="0" pn="section-5.8.3-4">In addition to the error responses defined in OAuth 2.0, the following
	  behavior <bcp14>MUST</bcp14> be implemented by the AS:
          </t>
          <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-5.8.3-5">
            <li pn="section-5.8.3-5.1">If the client submits an asymmetric key in the token request that the
	    RS cannot process, the AS <bcp14>MUST</bcp14> reject that request with a
	    response code equivalent to the CoAP code 4.00 (Bad Request), including the
	    error code "unsupported_pop_key" specified in
	    <xref target="table_cborErrorCodes" format="default" sectionFormat="of" derivedContent="Table 3"/>.</li>
            <li pn="section-5.8.3-5.2">If the client and the RS it has requested an access token for do
	    not share a common profile, the AS <bcp14>MUST</bcp14> reject that request with
	    a response code equivalent to the CoAP code 4.00 (Bad Request), including
	    the error code "incompatible_ace_profiles" specified in
	    <xref target="table_cborErrorCodes" format="default" sectionFormat="of" derivedContent="Table 3"/>.</li>
          </ul>
        </section>
        <section anchor="tokenParams" numbered="true" toc="include" removeInRFC="false" pn="section-5.8.4">
          <name slugifiedName="name-request-and-response-parame">Request and Response Parameters</name>
          <t indent="0" pn="section-5.8.4-1">This section provides more detail about the new parameters that can be
	  used in access token requests and responses, as well as abbreviations for
	  more compact encoding of existing parameters and common parameter
	  values.</t>
          <section anchor="paramGrantType" numbered="true" toc="include" removeInRFC="false" pn="section-5.8.4.1">
            <name slugifiedName="name-grant-type">Grant Type</name>
            <t indent="0" pn="section-5.8.4.1-1">The abbreviations specified in the registry defined in
      <xref target="IANAGrantTypeMappings" format="default" sectionFormat="of" derivedContent="Section 8.5"/> <bcp14>MUST</bcp14> be
      used in CBOR encodings instead of the string values defined
      in <xref target="RFC6749" format="default" sectionFormat="of" derivedContent="RFC6749"/> if CBOR payloads are used.

            </t>
            <table anchor="table_grant_types" align="center" pn="table-4">
              <name slugifiedName="name-cbor-abbreviations-for-commo">CBOR Abbreviations for Common Grant Types</name>
              <thead>
                <tr>
                  <th align="left" colspan="1" rowspan="1">Name</th>
                  <th align="left" colspan="1" rowspan="1">CBOR Value</th>
                  <th align="left" colspan="1" rowspan="1">Original Specification</th>
                </tr>
              </thead>
              <tbody>
                <tr>
                  <td align="left" colspan="1" rowspan="1">
                    <tt>password</tt></td>
                  <td align="left" colspan="1" rowspan="1">0</td>
                  <td align="left" colspan="1" rowspan="1">
                    <xref target="RFC6749" sectionFormat="of" section="4.3.2" format="default" derivedLink="https://rfc-editor.org/rfc/rfc6749#section-4.3.2" derivedContent="RFC6749"/></td>
                </tr>
                <tr>
                  <td align="left" colspan="1" rowspan="1">
                    <tt>authorization_code</tt></td>
                  <td align="left" colspan="1" rowspan="1">1</td>
                  <td align="left" colspan="1" rowspan="1">
                    <xref target="RFC6749" sectionFormat="of" section="4.1.3" format="default" derivedLink="https://rfc-editor.org/rfc/rfc6749#section-4.1.3" derivedContent="RFC6749"/></td>
                </tr>
                <tr>
                  <td align="left" colspan="1" rowspan="1">
                    <tt>client_credentials</tt></td>
                  <td align="left" colspan="1" rowspan="1">2</td>
                  <td align="left" colspan="1" rowspan="1">
                    <xref target="RFC6749" sectionFormat="of" section="4.4.2" format="default" derivedLink="https://rfc-editor.org/rfc/rfc6749#section-4.4.2" derivedContent="RFC6749"/></td>
                </tr>
                <tr>
                  <td align="left" colspan="1" rowspan="1">
                    <tt>refresh_token</tt></td>
                  <td align="left" colspan="1" rowspan="1">3</td>
                  <td align="left" colspan="1" rowspan="1">
                    <xref target="RFC6749" sectionFormat="of" section="6" format="default" derivedLink="https://rfc-editor.org/rfc/rfc6749#section-6" derivedContent="RFC6749"/></td>
                </tr>
              </tbody>
            </table>
          </section>
          <section anchor="paramTokenType" numbered="true" toc="include" removeInRFC="false" pn="section-5.8.4.2">
            <name slugifiedName="name-token-type">Token Type</name>
            <t indent="0" pn="section-5.8.4.2-1">The <tt>token_type</tt> parameter, defined in <xref target="RFC6749" sectionFormat="of" section="5.1" format="default" derivedLink="https://rfc-editor.org/rfc/rfc6749#section-5.1" derivedContent="RFC6749"/>, allows the AS to indicate to the
	    client which type of
	    access token it is receiving (e.g., a bearer token). </t>
            <t indent="0" pn="section-5.8.4.2-2">This document registers the new value "PoP" for the "OAuth Access
            Token Types" registry,  specifying a proof-of-possession token.  How the
	    proof of possession by the client to the RS is performed
	    <bcp14>MUST</bcp14> be specified by the profiles.</t>
            <t indent="0" pn="section-5.8.4.2-3">The values in the <tt>token_type</tt> parameter <bcp14>MUST</bcp14> use the
	    CBOR abbreviations defined in the registry specified by
	    <xref target="IANATokenTypeMappings" format="default" sectionFormat="of" derivedContent="Section 8.7"/> if a CBOR
	    encoding is used.</t>
            <t indent="0" pn="section-5.8.4.2-4">In this framework, the "pop" value for the <tt>token_type</tt> parameter is
	    the default. The AS may, however, provide a different value from those
	    registered in <xref target="IANA.OAuthAccessTokenTypes" format="default" sectionFormat="of" derivedContent="IANA.OAuthAccessTokenTypes"/>.</t>
          </section>
          <section anchor="paramProfile" numbered="true" toc="include" removeInRFC="false" pn="section-5.8.4.3">
            <name slugifiedName="name-profile">Profile</name>
            <t indent="0" pn="section-5.8.4.3-1">Profiles of this framework <bcp14>MUST</bcp14> define the communication
	    protocol and the communication security protocol between the client
	    and the RS.  The security protocol <bcp14>MUST</bcp14> provide encryption,
	    integrity, and
	    replay protection. It <bcp14>MUST</bcp14> also provide a binding between
	    requests and
	    responses.  Furthermore, profiles <bcp14>MUST</bcp14> define a list of
	    allowed proof-of-possession methods if they support proof-of-possession
	    tokens.</t>
            <t indent="0" pn="section-5.8.4.3-2">A profile <bcp14>MUST</bcp14> specify an identifier that <bcp14>MUST</bcp14> be used to uniquely
      identify itself in the <tt>ace_profile</tt> parameter. The textual
      representation of the profile identifier is intended for human
      readability and for JSON-based interactions; it <bcp14>MUST NOT</bcp14> be used for
      CBOR-based interactions.  Profiles <bcp14>MUST</bcp14> register their identifier in the
      registry defined in <xref target="IANAProfile" format="default" sectionFormat="of" derivedContent="Section 8.8"/>.
            </t>
            <t indent="0" pn="section-5.8.4.3-3">Profiles <bcp14>MAY</bcp14> define additional parameters for both the token request
      and the Access Information in the access token response in order to
      support negotiation or signaling of profile-specific parameters.
            </t>
            <t indent="0" pn="section-5.8.4.3-4">Clients that want the AS to provide them with the <tt>ace_profile</tt>
	    parameter in the access token response can indicate that by sending an
	    <tt>ace_profile</tt> parameter with a null value for CBOR-based interactions, 
	    or an empty string if CBOR is not used, in the access token
	    request.</t>
          </section>
          <section anchor="cnonceParamToken" numbered="true" toc="include" removeInRFC="false" pn="section-5.8.4.4">
            <name slugifiedName="name-client-nonce">Client-Nonce</name>
            <t indent="0" pn="section-5.8.4.4-1">This parameter <bcp14>MUST</bcp14> be sent from the client to the AS
	    if it previously received a <tt>cnonce</tt> parameter in the AS Request
	    Creation Hints (<xref target="asInfo" format="default" sectionFormat="of" derivedContent="Section 5.3"/>).  The parameter
	    is encoded as a byte string for CBOR-based interactions and as a
	    string (base64url without padding encoded binary <xref target="RFC4648" format="default" sectionFormat="of" derivedContent="RFC4648"/>) if CBOR is not used.
	    It <bcp14>MUST</bcp14> copy the value from the <tt>cnonce</tt> parameter in the AS
	    Request Creation Hints.</t>
          </section>
        </section>
        <section anchor="tokenCborParams" numbered="true" toc="include" removeInRFC="false" pn="section-5.8.5">
          <name slugifiedName="name-mapping-parameters-to-cbor">Mapping Parameters to CBOR</name>
          <t indent="0" pn="section-5.8.5-1">If CBOR encoding is used, all OAuth parameters in access token requests
    and responses <bcp14>MUST</bcp14> be mapped to CBOR types, as specified in the registry
    defined by <xref target="IANAOAuthParameterMappingsRegistry" format="default" sectionFormat="of" derivedContent="Section 8.10"/>, using the
    given integer abbreviation for the map keys.</t>
          <t indent="0" pn="section-5.8.5-2">Note that we have aligned the abbreviations corresponding to claims
    with the abbreviations defined in <xref target="RFC8392" format="default" sectionFormat="of" derivedContent="RFC8392"/>.</t>
          <t indent="0" pn="section-5.8.5-3">Note also that abbreviations from -24 to 23 have a 1-byte encoding
    size in CBOR. We have thus chosen to assign abbreviations in that
    range to parameters we expect to be used most frequently in constrained
    scenarios.</t>
          <table anchor="table_cborTokenParameters" align="center" pn="table-5">
            <name slugifiedName="name-cbor-mappings-used-in-token">CBOR Mappings Used in Token Requests and Responses</name>
            <thead>
              <tr>
                <th align="left" colspan="1" rowspan="1">Name</th>
                <th align="left" colspan="1" rowspan="1">CBOR Key</th>
                <th align="left" colspan="1" rowspan="1">Value Type</th>
                <th align="left" colspan="1" rowspan="1">Original Specification</th>
              </tr>
            </thead>
            <tbody>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>access_token</tt></td>
                <td align="left" colspan="1" rowspan="1">1</td>
                <td align="left" colspan="1" rowspan="1">byte string</td>
                <td align="left" colspan="1" rowspan="1">
                  <xref target="RFC6749" format="default" sectionFormat="of" derivedContent="RFC6749"/></td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>expires_in</tt></td>
                <td align="left" colspan="1" rowspan="1">2</td>
                <td align="left" colspan="1" rowspan="1">unsigned integer</td>
                <td align="left" colspan="1" rowspan="1">
                  <xref target="RFC6749" format="default" sectionFormat="of" derivedContent="RFC6749"/></td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>audience</tt></td>
                <td align="left" colspan="1" rowspan="1">5</td>
                <td align="left" colspan="1" rowspan="1">text string</td>
                <td align="left" colspan="1" rowspan="1">
                  <xref target="RFC8693" format="default" sectionFormat="of" derivedContent="RFC8693"/></td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>scope</tt></td>
                <td align="left" colspan="1" rowspan="1">9</td>
                <td align="left" colspan="1" rowspan="1">text or byte string</td>
                <td align="left" colspan="1" rowspan="1">
                  <xref target="RFC6749" format="default" sectionFormat="of" derivedContent="RFC6749"/></td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>client_id</tt></td>
                <td align="left" colspan="1" rowspan="1">24</td>
                <td align="left" colspan="1" rowspan="1">text string</td>
                <td align="left" colspan="1" rowspan="1">
                  <xref target="RFC6749" format="default" sectionFormat="of" derivedContent="RFC6749"/></td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>client_secret</tt></td>
                <td align="left" colspan="1" rowspan="1">25</td>
                <td align="left" colspan="1" rowspan="1">byte string</td>
                <td align="left" colspan="1" rowspan="1">
                  <xref target="RFC6749" format="default" sectionFormat="of" derivedContent="RFC6749"/></td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>response_type</tt></td>
                <td align="left" colspan="1" rowspan="1">26</td>
                <td align="left" colspan="1" rowspan="1">text string</td>
                <td align="left" colspan="1" rowspan="1">
                  <xref target="RFC6749" format="default" sectionFormat="of" derivedContent="RFC6749"/></td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>redirect_uri</tt></td>
                <td align="left" colspan="1" rowspan="1">27</td>
                <td align="left" colspan="1" rowspan="1">text string</td>
                <td align="left" colspan="1" rowspan="1">
                  <xref target="RFC6749" format="default" sectionFormat="of" derivedContent="RFC6749"/></td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>state</tt></td>
                <td align="left" colspan="1" rowspan="1">28</td>
                <td align="left" colspan="1" rowspan="1">text string</td>
                <td align="left" colspan="1" rowspan="1">
                  <xref target="RFC6749" format="default" sectionFormat="of" derivedContent="RFC6749"/></td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>code</tt></td>
                <td align="left" colspan="1" rowspan="1">29</td>
                <td align="left" colspan="1" rowspan="1">byte string</td>
                <td align="left" colspan="1" rowspan="1">
                  <xref target="RFC6749" format="default" sectionFormat="of" derivedContent="RFC6749"/></td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>error</tt></td>
                <td align="left" colspan="1" rowspan="1">30</td>
                <td align="left" colspan="1" rowspan="1">integer</td>
                <td align="left" colspan="1" rowspan="1">
                  <xref target="RFC6749" format="default" sectionFormat="of" derivedContent="RFC6749"/></td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>error_description</tt></td>
                <td align="left" colspan="1" rowspan="1">31</td>
                <td align="left" colspan="1" rowspan="1">text string</td>
                <td align="left" colspan="1" rowspan="1">
                  <xref target="RFC6749" format="default" sectionFormat="of" derivedContent="RFC6749"/></td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>error_uri</tt></td>
                <td align="left" colspan="1" rowspan="1">32</td>
                <td align="left" colspan="1" rowspan="1">text string</td>
                <td align="left" colspan="1" rowspan="1">
                  <xref target="RFC6749" format="default" sectionFormat="of" derivedContent="RFC6749"/></td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>grant_type</tt></td>
                <td align="left" colspan="1" rowspan="1">33</td>
                <td align="left" colspan="1" rowspan="1">unsigned integer</td>
                <td align="left" colspan="1" rowspan="1">
                  <xref target="RFC6749" format="default" sectionFormat="of" derivedContent="RFC6749"/></td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>token_type</tt></td>
                <td align="left" colspan="1" rowspan="1">34</td>
                <td align="left" colspan="1" rowspan="1">integer</td>
                <td align="left" colspan="1" rowspan="1">
                  <xref target="RFC6749" format="default" sectionFormat="of" derivedContent="RFC6749"/></td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>username</tt></td>
                <td align="left" colspan="1" rowspan="1">35</td>
                <td align="left" colspan="1" rowspan="1">text string</td>
                <td align="left" colspan="1" rowspan="1">
                  <xref target="RFC6749" format="default" sectionFormat="of" derivedContent="RFC6749"/></td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>password</tt></td>
                <td align="left" colspan="1" rowspan="1">36</td>
                <td align="left" colspan="1" rowspan="1">text string</td>
                <td align="left" colspan="1" rowspan="1">
                  <xref target="RFC6749" format="default" sectionFormat="of" derivedContent="RFC6749"/></td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>refresh_token</tt></td>
                <td align="left" colspan="1" rowspan="1">37</td>
                <td align="left" colspan="1" rowspan="1">byte string</td>
                <td align="left" colspan="1" rowspan="1">
                  <xref target="RFC6749" format="default" sectionFormat="of" derivedContent="RFC6749"/></td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>ace_profile</tt></td>
                <td align="left" colspan="1" rowspan="1">38</td>
                <td align="left" colspan="1" rowspan="1">integer</td>
                <td align="left" colspan="1" rowspan="1">RFC 9200</td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>cnonce</tt></td>
                <td align="left" colspan="1" rowspan="1">39</td>
                <td align="left" colspan="1" rowspan="1">byte string</td>
                <td align="left" colspan="1" rowspan="1">RFC 9200</td>
              </tr>
            </tbody>
          </table>
        </section>
      </section>
      <section anchor="introspectionEndpoint" numbered="true" toc="include" removeInRFC="false" pn="section-5.9">
        <name slugifiedName="name-the-introspection-endpoint">The Introspection Endpoint</name>
        <t indent="0" pn="section-5.9-1">Token introspection <xref target="RFC7662" format="default" sectionFormat="of" derivedContent="RFC7662"/> <bcp14>MAY</bcp14>
	be implemented by the AS and the RS. When implemented, it <bcp14>MAY</bcp14> be
	used by the RS and to query the
	AS for metadata about a given token, e.g., validity or scope. Analogous to the
	protocol defined in <xref target="RFC7662" format="default" sectionFormat="of" derivedContent="RFC7662"/> for HTTP and JSON,
	this section defines adaptations to more constrained  environments using CBOR and
	leaving the choice of the application protocol to the profile.  The client <bcp14>MAY</bcp14> also implement and use introspection analogously to the RS to obtain information about a given token.</t>
        <t indent="0" pn="section-5.9-2">Communication between the requesting entity and the introspection endpoint
  at the AS <bcp14>MUST</bcp14> be integrity protected and encrypted.  The communication
  security protocol <bcp14>MUST</bcp14> also provide a binding between requests and
  responses.  Furthermore, the two interacting parties <bcp14>MUST</bcp14> perform mutual
  authentication.  Finally, the AS <bcp14>SHOULD</bcp14> verify that the requesting entity has
  the right to access introspection information about the provided token.
  Profiles of this framework that support introspection <bcp14>MUST</bcp14> specify how
  authentication and communication security between the requesting
  entity and the AS is implemented.</t>
        <t indent="0" pn="section-5.9-3"> The default name of this endpoint in a url-path <bcp14>SHOULD</bcp14> be '/introspect'.
  However, implementations are not required to use this name and can define
  their own instead.</t>
        <section anchor="introReq" numbered="true" toc="include" removeInRFC="false" pn="section-5.9.1">
          <name slugifiedName="name-introspection-request">Introspection Request</name>
          <t indent="0" pn="section-5.9.1-1">The requesting entity sends a POST request to the introspection endpoint
    at the AS.  The profile <bcp14>MUST</bcp14> specify how the communication is protected.
    If CoAP is used, the payload <bcp14>MUST</bcp14> be encoded as a CBOR map with a <tt>token</tt>
    entry containing the access token.  Further optional parameters
    representing additional context that is known by the requesting entity to
    aid the AS in its response <bcp14>MAY</bcp14> be included.</t>
          <t indent="0" pn="section-5.9.1-2">For CoAP-based interaction, all messages <bcp14>MUST</bcp14> use the content
	  type "application/ace+cbor". For HTTP, the encoding defined in 
	  <xref target="RFC7662" sectionFormat="of" section="2.1" format="default" derivedLink="https://rfc-editor.org/rfc/rfc7662#section-2.1" derivedContent="RFC7662"/> is used.</t>
          <t indent="0" pn="section-5.9.1-3">The same parameters are required and optional as in 
	  <xref target="RFC7662" sectionFormat="of" section="2.1" format="default" derivedLink="https://rfc-editor.org/rfc/rfc7662#section-2.1" derivedContent="RFC7662"/>.</t>
          <t indent="0" pn="section-5.9.1-4">For example, <xref target="fig_introReq" format="default" sectionFormat="of" derivedContent="Figure 8"/> shows an RS
	  calling the token
	  introspection endpoint at the AS to query about an OAuth 2.0
	  proof-of-possession token.  Note that object security based on OSCORE
	  <xref target="RFC8613" format="default" sectionFormat="of" derivedContent="RFC8613"/> is assumed in this example;
	  therefore, the Content-Format is "application/oscore". <xref target="fig_introReq-payl" format="default" sectionFormat="of" derivedContent="Figure 9"/> shows the decoded payload.</t>
          <figure anchor="fig_introReq" align="left" suppress-title="false" pn="figure-8">
            <name slugifiedName="name-example-introspection-reque">Example Introspection Request</name>
            <sourcecode name="" type="" markers="false" pn="section-5.9.1-5.1">
Header: POST (Code=0.02)
Uri-Host: "as.example.com"
Uri-Path: "introspect"
OSCORE: 0x09, 0x05, 0x25
Content-Format: application/oscore
Payload:
... COSE content ...
</sourcecode>
          </figure>
          <figure anchor="fig_introReq-payl" align="left" suppress-title="false" pn="figure-9">
            <name slugifiedName="name-decoded-payload">Decoded Payload</name>
            <sourcecode name="" type="cbor-diag" markers="false" pn="section-5.9.1-6.1">
{
  / token / 11  : b64'7gj0dXJQ43U',
  / token_type_hint / 33 : 2 / PoP /
}
</sourcecode>
          </figure>
        </section>
        <section anchor="introRes" numbered="true" toc="include" removeInRFC="false" pn="section-5.9.2">
          <name slugifiedName="name-introspection-response">Introspection Response</name>
          <t indent="0" pn="section-5.9.2-1">If the introspection request is authorized and successfully processed,
	  the AS sends a response with the response code equivalent to the CoAP code
	  2.01 (Created).  If the introspection request was invalid, not authorized,
	  or couldn't be processed, the AS returns an error response, as described in
	  <xref target="errorsIntro" format="default" sectionFormat="of" derivedContent="Section 5.9.3"/>.</t>
          <t indent="0" pn="section-5.9.2-2">In a successful response, the AS encodes the response parameters in
	  a map.  If CoAP is used, this <bcp14>MUST</bcp14> be encoded as a CBOR map; if
	  HTTP is used, the JSON encoding specified in <xref target="RFC7662" sectionFormat="of" section="2.2" format="default" derivedLink="https://rfc-editor.org/rfc/rfc7662#section-2.2" derivedContent="RFC7662"/>
	  is used.  The map containing the response payload  includes the same
	  required and optional parameters as in
	  <xref target="RFC7662" sectionFormat="of" section="2.2" format="default" derivedLink="https://rfc-editor.org/rfc/rfc7662#section-2.2" derivedContent="RFC7662"/>, with the following
	  additions:</t>
          <dl newline="true" spacing="normal" indent="3" pn="section-5.9.2-3">
            <dt pn="section-5.9.2-3.1"><tt>ace_profile</tt></dt>
            <dd pn="section-5.9.2-3.2">This parameter is <bcp14>OPTIONAL</bcp14>.  This indicates the profile that
	    the RS <bcp14>MUST</bcp14> use with the
	    client.  See <xref target="paramProfile" format="default" sectionFormat="of" derivedContent="Section 5.8.4.3"/> for more details on
	    the formatting of this parameter. If this parameter is absent, the AS
	    assumes that the RS implicitly knows which profile to use towards
	    the client.</dd>
            <dt pn="section-5.9.2-3.3"><tt>cnonce</tt></dt>
            <dd pn="section-5.9.2-3.4">This parameter is <bcp14>OPTIONAL</bcp14>.  This is a
	    client-nonce provided to the AS by the client.
	    The RS <bcp14>MUST</bcp14> verify that this corresponds to the
	    client-nonce
	    previously provided to the client in the AS Request Creation
	    Hints. See Sections <xref target="asInfo" format="counter" sectionFormat="of" derivedContent="5.3"/> and
	    <xref target="cnonceParamToken" format="counter" sectionFormat="of" derivedContent="5.8.4.4"/>. Its value is a
	    byte string when encoded in CBOR and is the base64url encoding of this
	    byte string without padding when encoded in JSON <xref target="RFC4648" format="default" sectionFormat="of" derivedContent="RFC4648"/>.
	    </dd>
            <dt pn="section-5.9.2-3.5"><tt>cti</tt></dt>
            <dd pn="section-5.9.2-3.6">This parameter is <bcp14>OPTIONAL</bcp14>.  This is the <tt>cti</tt> claim 
		associated to this access token.
	    This parameter has the same meaning and processing rules as the
	    <tt>jti</tt> parameter defined in <xref target="RFC7662" sectionFormat="of" section="3.1.2" format="default" derivedLink="https://rfc-editor.org/rfc/rfc7662#section-3.1.2" derivedContent="RFC7662"/> except that its value is a byte string when encoded
	    in CBOR and is the base64url encoding of this byte string without
	    padding when encoded in JSON <xref target="RFC4648" format="default" sectionFormat="of" derivedContent="RFC4648"/>.</dd>
            <dt pn="section-5.9.2-3.7"><tt>exi</tt></dt>
            <dd pn="section-5.9.2-3.8">This parameter is <bcp14>OPTIONAL</bcp14>. This is the
	    <tt>expires_in</tt> claim associated to this access token.
	    See <xref target="tokenExpiration" format="default" sectionFormat="of" derivedContent="Section 5.10.3"/>.
	    </dd>
          </dl>
          <t indent="0" pn="section-5.9.2-4">Furthermore, <xref target="RFC9201" format="default" sectionFormat="of" derivedContent="RFC9201"/> defines
    more parameters that the AS <bcp14>MUST</bcp14> be able to use when responding to a
    request to the introspection endpoint.</t>
          <t indent="0" pn="section-5.9.2-5">For example, <xref target="fig_introRes" format="default" sectionFormat="of" derivedContent="Figure 10"/> shows an AS
    response to the introspection request in <xref target="fig_introReq" format="default" sectionFormat="of" derivedContent="Figure 8"/>.
    Note that this example contains the <tt>cnf</tt> parameter defined in
    <xref target="RFC9201" format="default" sectionFormat="of" derivedContent="RFC9201"/>.

          </t>
          <figure anchor="fig_introRes" align="left" suppress-title="false" pn="figure-10">
            <name slugifiedName="name-example-introspection-respo">Example Introspection Response</name>
            <sourcecode name="" type="cbor-diag" markers="false" pn="section-5.9.2-6.1">
Header: Created (Code=2.01)
Content-Format: application/ace+cbor
Payload:
{
  / active /      10 : true,
  / scope /        9 : "read",
  / ace_profile / 38 : 1 / coap_dtls /,
  / cnf /          8 : {
    / COSE_Key / 1 : {
      / kty / 1 : 4 / Symmetric /,
      / kid / 2 : b64'39Gqlw',
      / k /  -1 : b64'hJtXhkV8FJG+Onbc6mxC'
    }
  }
}
</sourcecode>
          </figure>
        </section>
        <section anchor="errorsIntro" numbered="true" toc="include" removeInRFC="false" pn="section-5.9.3">
          <name slugifiedName="name-error-response-2">Error Response</name>
          <t indent="0" pn="section-5.9.3-1">The error responses for CoAP-based interactions with the AS
	  are equivalent to the ones for HTTP-based interactions, as defined in
	  <xref target="RFC7662" sectionFormat="of" section="2.3" format="default" derivedLink="https://rfc-editor.org/rfc/rfc7662#section-2.3" derivedContent="RFC7662"/>, with the
	  following differences:</t>
          <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-5.9.3-2">
            <li pn="section-5.9.3-2.1">If content is sent and CoAP is used, the payload <bcp14>MUST</bcp14> be
	    encoded as a
	    CBOR map and the Content-Format "application/ace+cbor" <bcp14>MUST</bcp14>
	    be used.
	    For HTTP, the encoding defined in <xref target="RFC6749" sectionFormat="of" section="2.3" format="default" derivedLink="https://rfc-editor.org/rfc/rfc6749#section-2.3" derivedContent="RFC6749"/> is used.</li>
            <li pn="section-5.9.3-2.2">If the credentials used by the requesting entity (usually the RS)
	    are invalid, the AS <bcp14>MUST</bcp14> respond with the response code
	    equivalent to the
	    CoAP code 4.01 (Unauthorized) and use the required and optional
	    parameters from <xref target="RFC7662" sectionFormat="of" section="2.3" format="default" derivedLink="https://rfc-editor.org/rfc/rfc7662#section-2.3" derivedContent="RFC7662"/>.</li>
            <li pn="section-5.9.3-2.3">If the requesting entity does not have the right to perform this
      introspection request, the AS <bcp14>MUST</bcp14> respond with a response code
      equivalent to the CoAP code 4.03 (Forbidden).  In this case, no payload is
      returned.</li>
            <li pn="section-5.9.3-2.4">The parameters <tt>error</tt>, <tt>error_description</tt>, and <tt>error_uri</tt> <bcp14>MUST</bcp14>
      be abbreviated using the codes specified in <xref target="table_cborTokenParameters" format="default" sectionFormat="of" derivedContent="Table 5"/>.</li>
            <li pn="section-5.9.3-2.5">The error codes <bcp14>MUST</bcp14> be abbreviated using the codes specified in
      the registry defined by <xref target="IANAErrorCBORMappings" format="default" sectionFormat="of" derivedContent="Section 8.4"/>.</li>
          </ul>
          <t indent="0" pn="section-5.9.3-3">Note that a properly formed and authorized query for an inactive or
    otherwise invalid token does not warrant an error response by this
    specification.  In these cases, the authorization server <bcp14>MUST</bcp14> instead
    respond with an introspection response with the <tt>active</tt> field set to
    "false".</t>
        </section>
        <section anchor="introParamsCbor" numbered="true" toc="include" removeInRFC="false" pn="section-5.9.4">
          <name slugifiedName="name-mapping-introspection-param">Mapping Introspection Parameters to CBOR</name>
          <t indent="0" pn="section-5.9.4-1">If CBOR is used, the introspection request and response parameters <bcp14>MUST</bcp14>
    be mapped to CBOR types, as specified in the registry defined by <xref target="IANAIntrospectionEndpointCBORMappingsRegistry" format="default" sectionFormat="of" derivedContent="Section 8.12"/>, using the given
    integer abbreviation for the map key.</t>
          <t indent="0" pn="section-5.9.4-2">Note that we have aligned abbreviations that correspond to a
    claim with the abbreviations defined in <xref target="RFC8392" format="default" sectionFormat="of" derivedContent="RFC8392"/>
    and the abbreviations of parameters with the same name from
    <xref target="tokenCborParams" format="default" sectionFormat="of" derivedContent="Section 5.8.5"/>.
          </t>
          <table anchor="table_cborIntrospectionParameters" align="center" pn="table-6">
            <name slugifiedName="name-cbor-mappings-for-token-int">CBOR Mappings for Token Introspection Parameters</name>
            <thead>
              <tr>
                <th align="left" colspan="1" rowspan="1">Parameter name</th>
                <th align="left" colspan="1" rowspan="1">CBOR Key</th>
                <th align="left" colspan="1" rowspan="1">Value Type</th>
                <th align="left" colspan="1" rowspan="1">Original Specification</th>
              </tr>
            </thead>
            <tbody>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>iss</tt></td>
                <td align="left" colspan="1" rowspan="1">1</td>
                <td align="left" colspan="1" rowspan="1">text string</td>
                <td align="left" colspan="1" rowspan="1">
                  <xref target="RFC7662" format="default" sectionFormat="of" derivedContent="RFC7662"/></td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>sub</tt></td>
                <td align="left" colspan="1" rowspan="1">2</td>
                <td align="left" colspan="1" rowspan="1">text string</td>
                <td align="left" colspan="1" rowspan="1">
                  <xref target="RFC7662" format="default" sectionFormat="of" derivedContent="RFC7662"/></td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>aud</tt></td>
                <td align="left" colspan="1" rowspan="1">3</td>
                <td align="left" colspan="1" rowspan="1">text string</td>
                <td align="left" colspan="1" rowspan="1">
                  <xref target="RFC7662" format="default" sectionFormat="of" derivedContent="RFC7662"/></td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>exp</tt></td>
                <td align="left" colspan="1" rowspan="1">4</td>
                <td align="left" colspan="1" rowspan="1">integer or floating-point number</td>
                <td align="left" colspan="1" rowspan="1">
                  <xref target="RFC7662" format="default" sectionFormat="of" derivedContent="RFC7662"/></td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>nbf</tt></td>
                <td align="left" colspan="1" rowspan="1">5</td>
                <td align="left" colspan="1" rowspan="1">integer or floating-point number</td>
                <td align="left" colspan="1" rowspan="1">
                  <xref target="RFC7662" format="default" sectionFormat="of" derivedContent="RFC7662"/></td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>iat</tt></td>
                <td align="left" colspan="1" rowspan="1">6</td>
                <td align="left" colspan="1" rowspan="1">integer or floating-point number</td>
                <td align="left" colspan="1" rowspan="1">
                  <xref target="RFC7662" format="default" sectionFormat="of" derivedContent="RFC7662"/></td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>cti</tt></td>
                <td align="left" colspan="1" rowspan="1">7</td>
                <td align="left" colspan="1" rowspan="1">byte string</td>
                <td align="left" colspan="1" rowspan="1">RFC 9200</td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>scope</tt></td>
                <td align="left" colspan="1" rowspan="1">9</td>
                <td align="left" colspan="1" rowspan="1">text or byte string</td>
                <td align="left" colspan="1" rowspan="1">
                  <xref target="RFC7662" format="default" sectionFormat="of" derivedContent="RFC7662"/></td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>active</tt></td>
                <td align="left" colspan="1" rowspan="1">10</td>
                <td align="left" colspan="1" rowspan="1">True or False</td>
                <td align="left" colspan="1" rowspan="1">
                  <xref target="RFC7662" format="default" sectionFormat="of" derivedContent="RFC7662"/></td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>token</tt></td>
                <td align="left" colspan="1" rowspan="1">11</td>
                <td align="left" colspan="1" rowspan="1">byte string</td>
                <td align="left" colspan="1" rowspan="1">
                  <xref target="RFC7662" format="default" sectionFormat="of" derivedContent="RFC7662"/></td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>client_id</tt></td>
                <td align="left" colspan="1" rowspan="1">24</td>
                <td align="left" colspan="1" rowspan="1">text string</td>
                <td align="left" colspan="1" rowspan="1">
                  <xref target="RFC7662" format="default" sectionFormat="of" derivedContent="RFC7662"/></td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>error</tt></td>
                <td align="left" colspan="1" rowspan="1">30</td>
                <td align="left" colspan="1" rowspan="1">integer</td>
                <td align="left" colspan="1" rowspan="1">
                  <xref target="RFC7662" format="default" sectionFormat="of" derivedContent="RFC7662"/></td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>error_description</tt></td>
                <td align="left" colspan="1" rowspan="1">31</td>
                <td align="left" colspan="1" rowspan="1">text string</td>
                <td align="left" colspan="1" rowspan="1">
                  <xref target="RFC7662" format="default" sectionFormat="of" derivedContent="RFC7662"/></td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>error_uri</tt></td>
                <td align="left" colspan="1" rowspan="1">32</td>
                <td align="left" colspan="1" rowspan="1">text string</td>
                <td align="left" colspan="1" rowspan="1">
                  <xref target="RFC7662" format="default" sectionFormat="of" derivedContent="RFC7662"/></td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>token_type_hint</tt></td>
                <td align="left" colspan="1" rowspan="1">33</td>
                <td align="left" colspan="1" rowspan="1">text string</td>
                <td align="left" colspan="1" rowspan="1">
                  <xref target="RFC7662" format="default" sectionFormat="of" derivedContent="RFC7662"/></td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>token_type</tt></td>
                <td align="left" colspan="1" rowspan="1">34</td>
                <td align="left" colspan="1" rowspan="1">integer</td>
                <td align="left" colspan="1" rowspan="1">
                  <xref target="RFC7662" format="default" sectionFormat="of" derivedContent="RFC7662"/></td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>username</tt></td>
                <td align="left" colspan="1" rowspan="1">35</td>
                <td align="left" colspan="1" rowspan="1">text string</td>
                <td align="left" colspan="1" rowspan="1">
                  <xref target="RFC7662" format="default" sectionFormat="of" derivedContent="RFC7662"/></td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>ace_profile</tt></td>
                <td align="left" colspan="1" rowspan="1">38</td>
                <td align="left" colspan="1" rowspan="1">integer</td>
                <td align="left" colspan="1" rowspan="1">RFC 9200</td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">
                  <tt>cnonce</tt></td>
                <td align="left" colspan="1" rowspan="1">39</td>
                <td align="left" colspan="1" rowspan="1">byte string</td>
                <td align="left" colspan="1" rowspan="1">RFC 9200</td>
              </tr>
              <tr>
                <td align="left" colspan="1" rowspan="1">exi</td>
                <td align="left" colspan="1" rowspan="1">40</td>
                <td align="left" colspan="1" rowspan="1">unsigned integer</td>
                <td align="left" colspan="1" rowspan="1">RFC 9200</td>
              </tr>
            </tbody>
          </table>
        </section>
      </section>
      <section anchor="accessToken" numbered="true" toc="include" removeInRFC="false" pn="section-5.10">
        <name slugifiedName="name-the-access-token">The Access Token</name>
        <t indent="0" pn="section-5.10-1">In this framework, the use of CBOR Web Token (CWT) as
    specified in <xref target="RFC8392" format="default" sectionFormat="of" derivedContent="RFC8392"/> is <bcp14>RECOMMENDED</bcp14>.
        </t>
        <t indent="0" pn="section-5.10-2">In order to facilitate offline processing of access tokens,
  this document uses the <tt>cnf</tt> claim from <xref target="RFC8747" format="default" sectionFormat="of" derivedContent="RFC8747"/>
  and the <tt>scope</tt> claim from <xref target="RFC8693" format="default" sectionFormat="of" derivedContent="RFC8693"/> for
  JWT- and CWT-encoded tokens.  In addition to string encoding specified for
  the <tt>scope</tt> claim, a binary encoding <bcp14>MAY</bcp14> be used.  The syntax of such an
  encoding is explicitly not specified here and left to profiles or
  applications, specifically note that a binary encoded scope does not
  necessarily use the space character '0x20' to delimit scope-tokens.</t>
        <t indent="0" pn="section-5.10-3">If the AS needs to convey a hint to the RS about which profile it
  should use to communicate with the client, the AS <bcp14>MAY</bcp14> include an
  <tt>ace_profile</tt> claim in the access token, with the same syntax and semantics
  as defined in <xref target="paramProfile" format="default" sectionFormat="of" derivedContent="Section 5.8.4.3"/>.</t>
        <t indent="0" pn="section-5.10-4">If the client submitted a <tt>cnonce</tt> parameter in the access token
	request (<xref target="cnonceParamToken" format="default" sectionFormat="of" derivedContent="Section 5.8.4.4"/>), the AS
	<bcp14>MUST</bcp14> include the value of
	this parameter in the <tt>cnonce</tt> claim specified here.  The <tt>cnonce</tt> claim
	uses binary encoding.</t>
        <section anchor="tokenAuthInfoEndpoint" numbered="true" toc="include" removeInRFC="false" pn="section-5.10.1">
          <name slugifiedName="name-the-authorization-informati">The Authorization Information Endpoint</name>
          <t indent="0" pn="section-5.10.1-1">The access token, containing authorization information and information
  about the proof-of-possession method used by the client, needs to be
  transported to the RS so that the RS can authenticate and authorize the
  client request.</t>
          <t indent="0" pn="section-5.10.1-2">This section defines a method for transporting the access token to the RS
  using a RESTful protocol, such as CoAP. Profiles of this framework <bcp14>MAY</bcp14> define
  other methods for token transport.
          </t>
          <t indent="0" pn="section-5.10.1-3">The method consists of an authz-info endpoint, implemented by the
  RS.  A client using this method <bcp14>MUST</bcp14> make a POST request to the authz-info
  endpoint at the RS with the access token in the payload.  The CoAP 
  Content-Format or HTTP media type <bcp14>MUST</bcp14> reflect the format of the token,
  e.g., "application/cwt", for CBOR Web Tokens; if no Content-Format or media
  type is defined for the token format, "application/octet-stream" <bcp14>MUST</bcp14> be
  used.</t>
          <t indent="0" pn="section-5.10.1-4">The RS receiving the token <bcp14>MUST</bcp14> verify the validity of the
	  token.  If the
	  token is valid, the RS <bcp14>MUST</bcp14> respond to the POST request with a
	  response code equivalent to CoAP code 2.01 (Created).
  <xref target="verifyToken" format="default" sectionFormat="of" derivedContent="Section 5.10.1.1"/> outlines how an RS <bcp14>MUST</bcp14> proceed to verify the
  validity of an access token.</t>
          <t indent="0" pn="section-5.10.1-5">The RS <bcp14>MUST</bcp14> be prepared to store at least one access token for future
  use. This is a difference as to how access tokens are handled in OAuth 2.0,
  where the access token is typically sent along with each request and
  therefore not stored at the RS.</t>
          <t indent="0" pn="section-5.10.1-6">When using this framework, it is <bcp14>RECOMMENDED</bcp14> that an RS stores
	  only one token per proof-of-possession key.  This means that an additional token
	  linked to the same key will supersede any existing token at the RS by replacing
	  the corresponding authorization information.  The reason is that
	  this greatly simplifies (constrained) implementations, with respect to
	  required storage and resolving a request to the applicable token.  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 may contradict each other,
	  which 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.
          </t>
          <t indent="0" pn="section-5.10.1-7">If the payload sent to the authz-info endpoint does not parse
  to a token, the RS <bcp14>MUST</bcp14> respond with a response code equivalent to the CoAP
  code 4.00 (Bad Request).</t>
          <t indent="0" pn="section-5.10.1-8">The RS <bcp14>MAY</bcp14> make an introspection request to validate the token before
  responding to the POST request to the authz-info endpoint, e.g., if the
  token is an opaque reference.  Some transport protocols may provide a way to
  indicate that the RS is busy and the client should retry after an interval;
  this type of status update would be appropriate while the RS is waiting for
  an introspection response.
          </t>
          <t indent="0" pn="section-5.10.1-9">Profiles <bcp14>MUST</bcp14> specify whether the authz-info endpoint is protected,
  including whether error responses from this endpoint are protected.  Note that
  since the token contains information that allows the client and the RS to
  establish a security context in the first place, mutual authentication may
  not be possible at this point.</t>
          <t indent="0" pn="section-5.10.1-10">The default name of this endpoint in a url-path is '/authz-info';
	  however, implementations are not required to use this name and can define
	  their own instead.</t>
          <section anchor="verifyToken" numbered="true" toc="include" removeInRFC="false" pn="section-5.10.1.1">
            <name slugifiedName="name-verifying-an-access-token">Verifying an Access Token</name>
            <t indent="0" pn="section-5.10.1.1-1">When an RS receives an access token, it <bcp14>MUST</bcp14> verify it before storing
    it. The details of token verification depends on various aspects, including 
    the token encoding, the type of token, the security protection applied to
    the token, and the claims.  The token encoding matters since the security
    protection differs between the token encodings. For example, a CWT token
    uses COSE, while a JWT token uses JSON Object Signing and Encryption (JOSE).  
    The type of token also has an
    influence on the verification procedure since tokens may be self-contained,
    whereby token verification may happen locally at the RS, while a 
    reference token requires further interaction with the authorization
    server, for example, using token introspection, to obtain the claims
    associated with the token reference.  Self-contained tokens <bcp14>MUST</bcp14> at 
    least be integrity protected, but they <bcp14>MAY</bcp14> also be encrypted.</t>
            <t indent="0" pn="section-5.10.1.1-2">For self-contained tokens, the RS <bcp14>MUST</bcp14> process the security
	    protection of the token first, as specified by the respective token format.
	    For CWT, the description can be found in <xref target="RFC8392" format="default" sectionFormat="of" derivedContent="RFC8392"/>; for
	    JWT, the relevant specification is <xref target="RFC7519" format="default" sectionFormat="of" derivedContent="RFC7519"/>. 
	    This <bcp14>MUST</bcp14>
	    include a verification that security protection (and thus the token) was
	    generated by an AS that has the right to issue access tokens for this
	    RS.</t>
            <t indent="0" pn="section-5.10.1.1-3">In case the token is communicated by reference, the RS needs to obtain
    the claims first. When the RS uses token introspection, the relevant
    specification is <xref target="RFC7662" format="default" sectionFormat="of" derivedContent="RFC7662"/> with CoAP transport specified in
    <xref target="introspectionEndpoint" format="default" sectionFormat="of" derivedContent="Section 5.9"/>. </t>
            <t indent="0" pn="section-5.10.1.1-4">Errors may happen during this initial processing stage:
            </t>
            <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-5.10.1.1-5">
              <li pn="section-5.10.1.1-5.1">If the verification of the security wrapper fails, or the token
	  was issued by an AS that does not have the right to issue tokens
	  for the receiving RS, the RS <bcp14>MUST</bcp14> discard the token
	  and, if this was an interaction with authz-info, return an error
	  message with a response code equivalent to the CoAP code 4.01
	  (Unauthorized).</li>
              <li pn="section-5.10.1.1-5.2">If the claims cannot be obtained, the RS <bcp14>MUST</bcp14> discard the token and,
	  in case of an interaction via the authz-info endpoint, return an error
	  message with a response code equivalent to the CoAP code 4.00 (Bad
	  Request).</li>
            </ul>
            <t indent="0" pn="section-5.10.1.1-6">Next, the RS <bcp14>MUST</bcp14> verify claims, if present, contained in the
	    access
	    token. Errors are returned when claim checks fail, in the order of
	    priority of this list:
            </t>
            <dl newline="true" spacing="normal" indent="3" pn="section-5.10.1.1-7">
              <dt pn="section-5.10.1.1-7.1"><tt>iss</tt></dt>
              <dd pn="section-5.10.1.1-7.2">The <tt>iss</tt> claim (if present) must identify the AS that
	      has produced the security protection for the access token.  If that is
	      not the case, the RS <bcp14>MUST</bcp14> discard the token.  If this was an
	      interaction with authz-info, the RS <bcp14>MUST</bcp14> also respond with a
	      response code equivalent
	      to the CoAP code 4.01 (Unauthorized).</dd>
              <dt pn="section-5.10.1.1-7.3"><tt>exp</tt></dt>
              <dd pn="section-5.10.1.1-7.4">The expiration date must be in the future.  
	      If that is not the case, the RS <bcp14>MUST</bcp14> discard the token.  If
	      this was an
	      interaction with authz-info, the RS <bcp14>MUST</bcp14> also respond with a
	      response code
	      equivalent to the CoAP code 4.01 (Unauthorized). Note that the RS has to
	      terminate access rights to the protected resources at the time when the
	      tokens expire. </dd>
              <dt pn="section-5.10.1.1-7.5"><tt>aud</tt></dt>
              <dd pn="section-5.10.1.1-7.6">The <tt>aud</tt> claim must refer to an audience that
	      the RS identifies with. If that is not the case, the RS <bcp14>MUST</bcp14>
	      discard the
	      token.  If this was an interaction with authz-info, the RS
	      <bcp14>MUST</bcp14> also
	      respond with a response code equivalent to the CoAP code 4.03
	      (Forbidden).</dd>
              <dt pn="section-5.10.1.1-7.7"><tt>scope</tt></dt>
              <dd pn="section-5.10.1.1-7.8">The RS must recognize value of the <tt>scope</tt> claim.
	      If that is not the case, the RS <bcp14>MUST</bcp14> discard the token.  If
	      this was an
	      interaction with authz-info, the RS <bcp14>MUST</bcp14> also respond with a
	      response code
	      equivalent to the CoAP code 4.00 (Bad Request).  The RS <bcp14>MAY</bcp14>
	      provide
	      additional information in the error response to clarify what
	      went wrong.</dd>
            </dl>
            <t indent="0" pn="section-5.10.1.1-8">Additional processing may be needed for other claims in a way
    specific to a profile or the underlying application.</t>
            <t indent="0" pn="section-5.10.1.1-9">Note that the <tt>sub</tt> (Subject) claim cannot always be verified when
    the token is submitted to the RS since the client may not have
    authenticated yet. Also note that a counter for the <tt>exi</tt> (expires in) claim
    <bcp14>MUST</bcp14> be initialized when the RS first verifies this token.</t>
            <t indent="0" pn="section-5.10.1.1-10">Also note that profiles of this framework may define access token
    transport mechanisms that do not allow for error responses.  Therefore, the
    error messages specified here only apply if the token was sent to the
    authz-info endpoint.</t>
            <t indent="0" pn="section-5.10.1.1-11">When sending error responses, the RS <bcp14>MAY</bcp14> use the error
	    codes from <xref target="RFC6750" sectionFormat="of" section="3.1" format="default" derivedLink="https://rfc-editor.org/rfc/rfc6750#section-3.1" derivedContent="RFC6750"/> to
	    provide additional details to the client.</t>
          </section>
          <section anchor="protAuthzInfo" numbered="true" toc="include" removeInRFC="false" pn="section-5.10.1.2">
            <name slugifiedName="name-protecting-the-authorizatio">Protecting the Authorization Information Endpoint</name>
            <t indent="0" pn="section-5.10.1.2-1">As this framework can be used in RESTful environments, it is important
	    to make sure that attackers cannot perform unauthorized requests on the
	    authz-info endpoints, other than submitting access tokens.</t>
            <t indent="0" pn="section-5.10.1.2-2">Specifically, it <bcp14>SHOULD NOT</bcp14> be possible to perform GET,
	    DELETE, or PUT on the authz-info endpoint.</t>
            <t indent="0" pn="section-5.10.1.2-3">The RS <bcp14>SHOULD</bcp14> implement rate-limiting measures to mitigate
	    attacks aiming
	    to overload the processing capacity of the RS by repeatedly submitting
	    tokens. For CoAP-based communication, the RS could use the mechanisms from
	    <xref target="RFC8516" format="default" sectionFormat="of" derivedContent="RFC8516"/> to indicate that it is overloaded.</t>
          </section>
        </section>
        <section anchor="requestC2RS" numbered="true" toc="include" removeInRFC="false" pn="section-5.10.2">
          <name slugifiedName="name-client-requests-to-the-rs">Client Requests to the RS</name>
          <t indent="0" pn="section-5.10.2-1">Before sending a request to an RS, the client <bcp14>MUST</bcp14> verify that the keys
  used to protect this communication are still valid. See <xref target="keyExpiration" format="default" sectionFormat="of" derivedContent="Section 5.10.4"/> for details on how the client determines the
  validity of the keys used.</t>
          <t indent="0" pn="section-5.10.2-2">If an RS receives a request from a client and the target resource
  requires authorization, the RS <bcp14>MUST</bcp14> first verify that it has an access token
  that authorizes this request and that the client has performed the
  proof-of-possession binding for that token to the request.</t>
          <t indent="0" pn="section-5.10.2-3">The response code <bcp14>MUST</bcp14> be 4.01 (Unauthorized) in case the client has
  not performed the proof of possession or if the RS has no valid access token for
  the client. If the RS has an access token for the client but the token does not
  authorize access for the resource that was requested, the RS <bcp14>MUST</bcp14> reject the
  request with a 4.03 (Forbidden). If the RS has an access token for the client but
  it does not cover the action that was requested on the resource, the RS <bcp14>MUST</bcp14>
  reject the request with a 4.05 (Method Not Allowed).</t>
          <t indent="0" pn="section-5.10.2-4">Note: The use of the response codes 4.03 and 4.05 is intended to prevent
  infinite loops where a client optimistically tries to access a
  requested resource with any access token received from AS. As malicious
  clients could pretend to be the C to determine the C's privileges, these detailed
  response codes must be used only when a certain level of security is
  already available, which can be achieved only when the client is
  authenticated.</t>
          <t indent="0" pn="section-5.10.2-5">Note: The RS <bcp14>MAY</bcp14> use introspection for timely validation of an
  access token at the time when a request is presented.</t>
          <t indent="0" pn="section-5.10.2-6">Note: Matching the claims of the access token (e.g., <tt>scope</tt>) to a specific
  request is application specific.</t>
          <t indent="0" pn="section-5.10.2-7">If the request matches a valid token and the client has performed the
  proof of possession for that token, the RS continues to process the request
  as specified by the underlying application.</t>
        </section>
        <section anchor="tokenExpiration" numbered="true" toc="include" removeInRFC="false" pn="section-5.10.3">
          <name slugifiedName="name-token-expiration">Token Expiration</name>
          <t indent="0" pn="section-5.10.3-1">Depending on the capabilities of the RS, there are various ways in
	  which it can verify the expiration of a received access token.  The following is
	  a list of the possibilities including what functionality they require of the
	  RS.</t>
          <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-5.10.3-2">
            <li pn="section-5.10.3-2.1">The token is a CWT and includes an <tt>exp</tt> claim and possibly the
	    <tt>nbf</tt> claim.  The RS verifies these by comparing them to values from
	    its internal clock, as defined in <xref target="RFC7519" format="default" sectionFormat="of" derivedContent="RFC7519"/>.  In
	    this case, the RS's internal clock must reflect the current date and time or
	    at least be synchronized with the AS's clock.  How this clock
	    synchronization would be performed is out of scope for this
	    specification.</li>
            <li pn="section-5.10.3-2.2">The RS verifies the validity of the token by performing an
	    introspection request, as specified in <xref target="introspectionEndpoint" format="default" sectionFormat="of" derivedContent="Section 5.9"/>.  This requires the RS to have a
	    reliable network connection to the AS and to be able to handle two
	    secure sessions in parallel (C to RS and RS to AS).</li>
            <li pn="section-5.10.3-2.3">In order to support token expiration for devices that have no reliable
	    way of synchronizing their internal clocks, this specification defines the
	    following approach: The claim <tt>exi</tt> (expires in) can be used to provide
	    the RS with the lifetime of the token in seconds from the time the RS first
	    receives the token.  This mechanism only works for self-contained tokens,
	    i.e., CWTs and JWTs. For CWTs, this parameter is encoded as an unsigned integer,
	    while JWTs encode this as JSON number.</li>
            <li pn="section-5.10.3-2.4">
              <t indent="0" pn="section-5.10.3-2.4.1"> Processing this claim requires that the RS does the following:
              </t>
              <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-5.10.3-2.4.2">
                <li pn="section-5.10.3-2.4.2.1">For each token the RS receives that contains an <tt>exi</tt> claim,
		keep track of the time it received that token and revisit that list
		regularly to expunge expired tokens.</li>
                <li pn="section-5.10.3-2.4.2.2">
                  <t indent="0" pn="section-5.10.3-2.4.2.2.1">Keep track of the identifiers of tokens containing the <tt>exi</tt>
      claim that have expired (in order to avoid accepting them again).
      In order to avoid an unbounded memory usage growth, this <bcp14>MUST</bcp14> be
      implemented in the following way when the <tt>exi</tt> claim is used:
                  </t>
                  <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-5.10.3-2.4.2.2.2">
                    <li pn="section-5.10.3-2.4.2.2.2.1">When creating the token, the AS <bcp14>MUST</bcp14> add a <tt>cti</tt> claim (or <tt>jti</tt> for JWTs) to the access token.  The value of this claim
	<bcp14>MUST</bcp14> be created as the binary representation of the concatenation
	of the identifier of the RS with a sequence number counting the
	tokens containing an <tt>exi</tt> claim, issued by this AS for the
	RS.</li>
                    <li pn="section-5.10.3-2.4.2.2.2.2">The RS <bcp14>MUST</bcp14> store the highest sequence number of an expired
	token containing the <tt>exi</tt> claim that it has seen and treat
	tokens with lower sequence numbers as expired.  Note that
        this could lead to discarding valid tokens with lower sequence numbers
        if the AS where to issue tokens of different validity time for the same
	RS.  The assumption is that typically tokens in such a scenario would
	all have the same validity time.</li>
                  </ul>
                </li>
              </ul>
            </li>
          </ul>
          <t indent="0" pn="section-5.10.3-3">If a token that authorizes a long-running request, such as a CoAP
  Observe <xref target="RFC7641" format="default" sectionFormat="of" derivedContent="RFC7641"/>, expires, the RS <bcp14>MUST</bcp14> send an error
  response with the response code equivalent to the CoAP code 4.01
  (Unauthorized) to the client and then terminate processing the long-running
  request.</t>
        </section>
        <section anchor="keyExpiration" numbered="true" toc="include" removeInRFC="false" pn="section-5.10.4">
          <name slugifiedName="name-key-expiration">Key Expiration</name>
          <t indent="0" pn="section-5.10.4-1">The AS provides the client with key material that the RS uses. This can
  either be a common symmetric PoP key or an asymmetric key used by the RS to
  authenticate towards the client.  Since there is currently no expiration
  metadata associated to those keys, the client has no way of knowing if these
  keys are still valid.  This may lead to situations where the client sends
  requests containing sensitive information to the RS using a key that is
  expired and possibly in the hands of an attacker or where the client accepts responses from
  the RS that are not properly protected and could possibly have been forged by
  an attacker. 
          </t>
          <t indent="0" pn="section-5.10.4-2">In order to prevent this, the client must assume that those keys are
  only valid as long as the related access token is.  Since the access token
  is opaque to the client, one of the following methods <bcp14>MUST</bcp14> be used to
  inform the client about the validity of an access token:

          </t>
          <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-5.10.4-3">
            <li pn="section-5.10.4-3.1">The client knows a default validity time for all tokens it is
    using (i.e., how long a token is valid after being issued).  This
    information could be provisioned to the client when it is registered at the
    AS or published by the AS in a way that the client can query.</li>
            <li pn="section-5.10.4-3.2">The AS informs the client about the token validity using the
    <tt>expires_in</tt> parameter in the Access Information.</li>
          </ul>
          <t indent="0" pn="section-5.10.4-4">A client that is not able to obtain information about the expiration of a
  token <bcp14>MUST NOT</bcp14> use this token.</t>
        </section>
      </section>
    </section>
    <section anchor="security" numbered="true" toc="include" removeInRFC="false" pn="section-6">
      <name slugifiedName="name-security-considerations">Security Considerations</name>
      <t indent="0" pn="section-6-1">Security considerations applicable to authentication and authorization
  in RESTful environments provided in OAuth 2.0 <xref target="RFC6749" format="default" sectionFormat="of" derivedContent="RFC6749"/> apply
  to this work.  Furthermore, <xref target="RFC6819" format="default" sectionFormat="of" derivedContent="RFC6819"/>
  provides additional security considerations for OAuth, which apply to IoT
  deployments as well.  If the introspection endpoint is used,
  the security considerations from <xref target="RFC7662" format="default" sectionFormat="of" derivedContent="RFC7662"/> also apply.</t>
      <t indent="0" pn="section-6-2">The following subsections address issues specific to this document and
      its use in constrained environments.</t>
      <section anchor="tokenProtection" numbered="true" toc="include" removeInRFC="false" pn="section-6.1">
        <name slugifiedName="name-protecting-tokens">Protecting Tokens</name>
        <t indent="0" pn="section-6.1-1">A large range of threats can be mitigated by protecting the contents
	of the access token by using a digital signature or a keyed message
	digest, e.g., a Message Authentication Code (MAC) or an Authenticated 
	Encryption with Associated Data (AEAD)
	algorithm.  Consequently, the token integrity protection <bcp14>MUST</bcp14> be
	applied to prevent the token from being modified, particularly since it contains
	a reference to the symmetric key or the asymmetric key used for
	proof of possession.  If the access token contains the symmetric key,
	this symmetric key <bcp14>MUST</bcp14> be encrypted by the authorization server so
	that only the resource server can decrypt it.  Note that using an AEAD
	algorithm is preferable over using a MAC unless the token needs to be
	publicly readable.</t>
        <t indent="0" pn="section-6.1-2">If the token is intended for multiple recipients (i.e., an audience
      that is a group), integrity protection of the token with a symmetric key,
      shared between the AS and the recipients, is not sufficient, since any of
      the recipients could modify the token undetected by the other recipients.
      Therefore, a token with a multirecipient audience <bcp14>MUST</bcp14> be protected
      with an asymmetric signature.</t>
        <t indent="0" pn="section-6.1-3">It is important for the authorization server to include the identity
      of the intended recipient (the audience), typically a single resource
      server (or a list of resource servers), in the token.  The same
      shared secret <bcp14>MUST NOT</bcp14> be used as a proof-of-possession key with
      multiple resource servers, since the benefit from using the proof-of-possession
      concept is then significantly reduced.</t>
        <t indent="0" pn="section-6.1-4">If clients are capable of doing so, they should frequently request
      fresh access tokens, as this allows the AS to keep the lifetime of the
      tokens short. This allows the AS to use shorter proof-of-possession key
      sizes, which translate to a performance benefit for the client and for
      the resource server.  Shorter keys also lead to shorter messages
      (particularly with asymmetric keying material).</t>
        <t indent="0" pn="section-6.1-5">When authorization servers bind symmetric keys to access tokens,
      they <bcp14>SHOULD</bcp14> scope these access tokens to a specific permission.</t>
        <t indent="0" pn="section-6.1-6">In certain situations, it may be necessary to revoke an access
	token that is still valid.  Client-initiated revocation is specified
	in <xref target="RFC7009" format="default" sectionFormat="of" derivedContent="RFC7009"/> for OAuth 2.0.  Other revocation
	mechanisms
	are currently not specified, as the underlying assumption in OAuth
	is that access tokens are issued with a relatively short lifetime.
	This may not hold true for disconnected constrained devices needing
	access tokens with relatively long lifetimes and would therefore
	necessitate further standardization work that is out of scope for
	this document.</t>
      </section>
      <section anchor="commSec" numbered="true" toc="include" removeInRFC="false" pn="section-6.2">
        <name slugifiedName="name-communication-security">Communication Security</name>
        <t indent="0" pn="section-6.2-1">Communication with the authorization server <bcp14>MUST</bcp14> use confidentiality
      protection.  This step is extremely important since the client or the
      RS may obtain the proof-of-possession key from the authorization server
      for use with a specific access token.  Not using confidentiality
      protection exposes this secret (and the access token) to an eavesdropper,
      thereby completely negating proof-of-possession security.
      The requirements for communication security of profiles are specified
      in <xref target="oauthProfile" format="default" sectionFormat="of" derivedContent="Section 5"/>.</t>
        <t indent="0" pn="section-6.2-2">Additional protection for the access token can be applied by
	encrypting it, for example, encryption of CWTs is specified in
	<xref target="RFC8392" sectionFormat="of" section="7.1" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8392#section-7.1" derivedContent="RFC8392"/>.  Such additional
	protection can be necessary
	if the token is later transferred over an insecure connection
	(e.g., when it is sent to the authz-info endpoint).</t>
        <t indent="0" pn="section-6.2-3">Care must be taken by developers to prevent leakage of the PoP 
      credentials (i.e., the private key or the symmetric key).  An
      adversary in possession of the PoP credentials bound to the access
      token will be able to impersonate the client.  Be aware that this is a
      real risk with many constrained environments, since adversaries may
      get physical access to the devices and can therefore use physical
      extraction techniques to gain access to memory contents.  This risk can 
      be mitigated to some extent by making sure that keys are refreshed
      frequently, by using software isolation techniques, and by using hardware
	security.</t>
      </section>
      <section anchor="keys" numbered="true" toc="include" removeInRFC="false" pn="section-6.3">
        <name slugifiedName="name-long-term-credentials">Long-Term Credentials</name>
        <t indent="0" pn="section-6.3-1">Both the clients and RSs have long-term credentials that are used to
      secure communications and authenticate to the AS.  These credentials
      need to be protected against unauthorized access.  In constrained
      devices deployed in publicly accessible places, such protection can
      be difficult to achieve without specialized hardware (e.g., secure
      key storage memory).</t>
        <t indent="0" pn="section-6.3-2">If credentials are lost or compromised, the operator of the affected
      devices needs to have procedures to invalidate any access these
      credentials give and needs to revoke tokens linked to such credentials.  The
      loss of a credential linked to a specific device <bcp14>MUST NOT</bcp14> lead to a
      compromise of other credentials not linked to that device; therefore,
      secret keys used for authentication <bcp14>MUST NOT</bcp14> be shared between more than
      two parties.</t>
        <t indent="0" pn="section-6.3-3">Operators of the clients or RSs <bcp14>SHOULD</bcp14> have procedures in place to
      replace credentials that are suspected to have been compromised or that
      have been lost.</t>
        <t indent="0" pn="section-6.3-4">Operators also <bcp14>SHOULD</bcp14> have procedures for decommissioning devices
      that include securely erasing credentials and other security-critical
      material in the devices being decommissioned.</t>
      </section>
      <section anchor="unprotected-as-information" numbered="true" toc="include" removeInRFC="false" pn="section-6.4">
        <name slugifiedName="name-unprotected-as-request-crea">Unprotected AS Request Creation Hints</name>
        <t indent="0" pn="section-6.4-1">Initially, no secure channel exists to protect the communication
	between the C and RS. Thus, the C cannot determine if the AS Request
	Creation Hints contained in an unprotected response from the RS to an
	unauthorized request (see <xref target="asInfo" format="default" sectionFormat="of" derivedContent="Section 5.3"/>) are
	authentic. Therefore, the C
	<bcp14>MUST</bcp14> determine if an AS is authorized to provide
	access
	tokens for a certain RS. How this determination is implemented is out
	of scope for this document and left to the applications.</t>
      </section>
      <section anchor="minimalCommSecReq" numbered="true" toc="include" removeInRFC="false" pn="section-6.5">
        <name slugifiedName="name-minimal-security-requiremen">Minimal Security Requirements for Communication</name>
        <t indent="0" pn="section-6.5-1">This section summarizes the minimal requirements for the
	communication security of the different protocol interactions.
        </t>
        <dl newline="true" spacing="normal" indent="3" pn="section-6.5-2">
          <dt pn="section-6.5-2.1">C-AS</dt>
          <dd pn="section-6.5-2.2">All communication between the client and the
	  authorization server <bcp14>MUST</bcp14> be encrypted and integrity and
	  replay
	  protected. Furthermore, responses from the AS to the client <bcp14>MUST</bcp14> be
	  bound to the client's request to avoid attacks where the attacker
	  swaps the intended response for an older one valid for a previous
	  request.  This requires that the client and the authorization server
	  have previously exchanged either a shared secret or their public
	  keys in order to negotiate a secure communication. Furthermore, the
	  client <bcp14>MUST</bcp14> be able to determine whether an AS has the authority
	  to issue access tokens for a certain RS.  This can, for example, be
	  done through preconfigured lists or through an online lookup
	  mechanism that in turn also must be secured.
	  </dd>
          <dt pn="section-6.5-2.3">RS-AS</dt>
          <dd pn="section-6.5-2.4">The communication between the resource
	  server and the authorization server via the introspection endpoint
	  <bcp14>MUST</bcp14> be encrypted and integrity and replay protected. Furthermore,
	  responses from the AS to the RS <bcp14>MUST</bcp14> be bound to the RS's request.
	  This requires that the RS and the authorization server
	  have previously exchanged either a shared secret or their public
	  keys in order to negotiate a secure communication. Furthermore, the
	  RS <bcp14>MUST</bcp14> be able to determine whether an AS has the authority
	  to issue access tokens itself.  This is usually configured out of
	  band but could also be performed through an online lookup mechanism,
	  provided that it is also secured in the same way.</dd>
          <dt pn="section-6.5-2.5">C-RS</dt>
          <dd pn="section-6.5-2.6">The initial communication between the client
	  and the resource server cannot be secured in general, since
	  the RS is not in possession of on access token for that client,
	  which would carry the necessary parameters.  If both parties
	  support DTLS without client authentication, it is <bcp14>RECOMMENDED</bcp14> to use
	  this mechanism for protecting the initial communication.
	  After the client has successfully transmitted the access token to the
	  RS, a secure communication protocol <bcp14>MUST</bcp14> be established between the
	  client and RS for the actual resource request.  This protocol <bcp14>MUST</bcp14>
	  provide confidentiality, integrity, and replay protection, as well as a
	  binding between requests and responses.  This requires that the
	  client learned either the RS's public key or received a symmetric
	  proof-of-possession key bound to the access token from the AS.
	  The RS must have learned either the client's public key, a shared
	  symmetric key from the claims in the token, or an introspection
	  request.  Since ACE does not provide profile negotiation between the
	  C and RS, the client <bcp14>MUST</bcp14> have learned what profile the RS
	  supports (e.g., from the AS or preconfigured) and initiated the
	  communication accordingly.</dd>
        </dl>
      </section>
      <section anchor="nonce" numbered="true" toc="include" removeInRFC="false" pn="section-6.6">
        <name slugifiedName="name-token-freshness-and-expirat">Token Freshness and Expiration</name>
        <t indent="0" pn="section-6.6-1">An RS that is offline faces the problem of clock drift. Since it
	cannot synchronize its clock with the AS, it may be tricked
	into accepting old access tokens that are no longer valid or have been
	compromised.  In order to prevent this, an RS may use the nonce-based
	mechanism (<tt>cnonce</tt>) defined in <xref target="asInfo" format="default" sectionFormat="of" derivedContent="Section 5.3"/> to ensure
	freshness of an	Access Token subsequently presented to this RS.</t>
        <t indent="0" pn="section-6.6-2">Another problem with clock drift is that evaluating the
	standard token expiration claim <tt>exp</tt> can give unpredictable results.
        </t>
        <t indent="0" pn="section-6.6-3">Acceptable ranges of clock drift are highly dependent on the
	concrete application.  Important factors are how long access tokens
	are valid and how critical timely expiration of the access token is.</t>
        <t indent="0" pn="section-6.6-4">The expiration mechanism implemented by the <tt>exi</tt> claim, based on
	the first time the RS sees the token, was defined to provide a more
	predictable alternative.  The <tt>exi</tt> approach has some drawbacks that
	need to be considered:
        </t>
        <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-6.6-5">
          <li pn="section-6.6-5.1">A malicious client may hold back tokens with the <tt>exi</tt> claim in
	  order to prolong their lifespan.</li>
          <li pn="section-6.6-5.2">
	  If an RS loses state (e.g., due to an unscheduled reboot), it
	  may lose the current values of counters tracking the <tt>exi</tt> claims of
	  tokens it is storing.</li>
        </ul>
        <t indent="0" pn="section-6.6-6">
	The first drawback is inherent to the deployment scenario and the <tt>exi</tt>
	solution.  It can therefore not be mitigated without requiring the
	RS be online at times.  The second drawback can be mitigated by
	regularly storing the value of <tt>exi</tt> counters to persistent memory.</t>
      </section>
      <section anchor="mixnmatch" numbered="true" toc="include" removeInRFC="false" pn="section-6.7">
        <name slugifiedName="name-combining-profiles">Combining Profiles</name>
        <t indent="0" pn="section-6.7-1">There may be use cases where different transport and security
      protocols are allowed for the different interactions, and, if that is
      not explicitly covered by an existing profile, it corresponds to
      combining profiles into a new one.  For example, a new profile could
      specify that a previously defined MQTT-TLS profile is used between
      the client and the RS in combination with a previously defined
      CoAP-DTLS profile for interactions between the client and the AS. The
      new profile that combines existing profiles <bcp14>MUST</bcp14> specify how the
      existing profiles' security requirements remain satisfied. Therefore, any profile
      <bcp14>MUST</bcp14> clearly specify its security requirements and <bcp14>MUST</bcp14>
      document if its security depends on the combination of various
      protocol interactions.</t>
      </section>
      <section anchor="infoLeak" numbered="true" toc="include" removeInRFC="false" pn="section-6.8">
        <name slugifiedName="name-unprotected-information">Unprotected Information</name>
        <t indent="0" pn="section-6.8-1">Communication with the authz-info endpoint, as well as the
	various error responses defined in this framework, potentially
	includes sending information over an unprotected channel.
	These messages may leak information to an adversary or may be
	manipulated by active attackers to induce incorrect behavior.  For
	example, error responses for requests to the authorization information
	endpoint can reveal information about an otherwise opaque access token
	to an adversary who has intercepted this token.</t>
        <t indent="0" pn="section-6.8-2">As far as error messages are concerned, this framework is written
	under the assumption that, in general, the benefits of detailed error
	messages outweigh the risk due to information leakage. For particular
	use cases where this assessment does not apply, detailed error
	messages can be replaced by more generic ones.</t>
        <t indent="0" pn="section-6.8-3">In some scenarios, it may be possible to protect the
	communication with the authz-info endpoint (e.g., through
	DTLS with only server-side authentication). In cases where
	this is not possible, it is <bcp14>RECOMMENDED</bcp14> to use encrypted
	CWTs or tokens that are opaque references and need to be subjected to
	introspection by the RS.</t>
        <t indent="0" pn="section-6.8-4">If the initial Unauthorized Resource Request message (see <xref target="rreq" format="default" sectionFormat="of" derivedContent="Section 5.2"/>) is used, the client <bcp14>MUST</bcp14> make sure that it is
	not sending sensitive content in this request. While GET and DELETE
	requests only reveal the target URI of the resource, POST and PUT
	requests would reveal the whole payload of the intended operation.</t>
        <t indent="0" pn="section-6.8-5">Since the client is not authenticated at the point when
	it is submitting an access token to the authz-info endpoint,
	attackers may be pretending to be a client and trying to trick
	an RS to use an obsolete profile that in turn specifies a
	vulnerable security mechanism via the authz-info endpoint.  Such an
	attack would require a valid access token containing an <tt>ace_profile</tt>
	claim requesting the use of said obsolete profile.  Resource owners
	should update the configuration of their RSs to prevent them from
	using such obsolete profiles.</t>
      </section>
      <section anchor="audience" numbered="true" toc="include" removeInRFC="false" pn="section-6.9">
        <name slugifiedName="name-identifying-audiences">Identifying Audiences</name>
        <t indent="0" pn="section-6.9-1">The <tt>aud</tt> claim, as defined in <xref target="RFC7519" format="default" sectionFormat="of" derivedContent="RFC7519"/>,
	and the equivalent <tt>audience</tt> parameter from
	<xref target="RFC8693" format="default" sectionFormat="of" derivedContent="RFC8693"/> are intentionally vague
	on how to match the audience value to a specific RS.  This is intended
	to allow application-specific semantics to be used.  This section
	attempts to give some general guidance for the use of audiences in
	constrained environments.</t>
        <t indent="0" pn="section-6.9-2">URLs are not a good way of identifying mobile devices that can
	switch networks and thus be associated with new URLs.  If the
	audience represents a single RS and asymmetric keys are used,
	the RS can be uniquely identified by a hash of its public key.
	If this approach is used, it is <bcp14>RECOMMENDED</bcp14> to apply the
	procedure from <xref target="RFC6920" sectionFormat="of" section="3" format="default" derivedLink="https://rfc-editor.org/rfc/rfc6920#section-3" derivedContent="RFC6920"/>.</t>
        <t indent="0" pn="section-6.9-3">If the audience addresses a group of resource servers, the mapping
	of a group identifier to an individual RS has to be provisioned to each RS
	before the group-audience is usable.  Managing dynamic groups could be
	an issue if any RS is not always reachable when the groups' memberships
	change. Furthermore, issuing access tokens bound to symmetric
	proof-of-possession keys that apply to a group-audience is problematic,
	as an RS that is in possession of the access token can impersonate the
	client towards the other RSs that are part of the group.  It is
	therefore <bcp14>NOT RECOMMENDED</bcp14> to issue access tokens bound
	to a group-audience and symmetric proof-of possession keys.</t>
        <t indent="0" pn="section-6.9-4">Even the client must be able to determine the correct values to put
	into the <tt>audience</tt> parameter in order to obtain a token for the
	intended RS.  Errors in this process can lead to the client
	inadvertently obtaining a token for the wrong RS.  The correct values
	for <tt>audience</tt> can either be provisioned to the client as part of its
	configuration or dynamically looked up by the client in some
	directory. In the latter case, the integrity and	correctness of the
	directory data must be assured.  Note that the <tt>audience</tt> hint
	provided by the RS as part of the AS Request Creation Hints (<xref target="asInfo" format="default" sectionFormat="of" derivedContent="Section 5.3"/>) is not typically source authenticated and
	integrity protected and should therefore not be treated a trusted value.</t>
      </section>
      <section anchor="introDos" numbered="true" toc="include" removeInRFC="false" pn="section-6.10">
        <name slugifiedName="name-denial-of-service-against-o">Denial of Service Against or with Introspection</name>
        <t indent="0" pn="section-6.10-1">
	The optional introspection mechanism provided by OAuth and supported
	in the ACE framework allows for two types of attacks that need
	to be considered by implementers.</t>
        <t indent="0" pn="section-6.10-2">First, an attacker could perform a denial-of-service attack against
	the introspection endpoint at the AS in order to prevent validation of
	access tokens.  To maintain the security of the system, an RS that is
	configured to use introspection <bcp14>MUST NOT</bcp14> allow access based on a token
	for which it couldn't reach the introspection endpoint.</t>
        <t indent="0" pn="section-6.10-3">Second, an attacker could use the fact that an RS performs
	introspection to perform a denial-of-service attack against that RS by
	repeatedly sending tokens to its authz-info endpoint that require an
	introspection call. The RS can mitigate such attacks by implementing rate
	limits on how many introspection requests they perform in a given time
	interval for a certain client IP address submitting tokens to
	/authz-info.  When that limit has been reached, incoming requests from
	that address are rejected for a certain	amount of time.  A general rate
	limit on the introspection requests should also be considered in order to
	mitigate distributed attacks.</t>
      </section>
    </section>
    <section anchor="privacy" numbered="true" toc="include" removeInRFC="false" pn="section-7">
      <name slugifiedName="name-privacy-considerations">Privacy Considerations</name>
      <t indent="0" pn="section-7-1">Implementers and users should be aware of the privacy implications
      of the different possible deployments of this framework.</t>
      <t indent="0" pn="section-7-2">The AS is in a very central position and can potentially learn sensitive
      information about the clients requesting access tokens.  If the client
      credentials grant is used, the AS can track what kind of access
      the client intends to perform.  With other grants, this can be prevented
      by the resource owner.  To do so, the resource owner needs to bind the
      grants it issues to anonymous, ephemeral credentials that do not allow
      the AS to link different grants and thus different access token requests
      by the same client.</t>
      <t indent="0" pn="section-7-3">The claims contained in a token can reveal privacy-sensitive
      information about the client and the RS to any party having access to
      them (whether by processing the content of a self-contained token or by
      introspection).  The AS <bcp14>SHOULD</bcp14> be configured to minimize the information
      about clients and RSs disclosed in the tokens it issues.</t>
      <t indent="0" pn="section-7-4">If tokens are only integrity protected and not encrypted, they
      may reveal information to attackers listening on the wire or be able to
      acquire the access tokens in some other way.  In the case of CWTs,
      the token may, e.g., reveal the audience, the scope, and the confirmation
      method used by the client.  The latter may reveal the identity of the
      device or application running the client.  This may be linkable to
      the identity of the person using the client (if there is a person and
      not a machine-to-machine interaction).</t>
      <t indent="0" pn="section-7-5">Clients using asymmetric keys for proof of possession should be aware
      of the consequences of using the same key pair for proof of possession
      towards different RSs.  A set of colluding RSs or an attacker able to
      obtain the access tokens will be able to link the requests or even
      to determine the client's identity.</t>
      <t indent="0" pn="section-7-6">An unprotected response to an unauthorized request (see 
      <xref target="asInfo" format="default" sectionFormat="of" derivedContent="Section 5.3"/>) may disclose information about the RS
      and/or its
      existing relationship with the C. It is advisable to include as little
      information as possible in an unencrypted response. Even the absolute URI of the AS may reveal sensitive information about the service that the RS provides. Developers must ensure that the RS does not disclose information that has an impact on the privacy of the stakeholders in the AS Request Creation Hints. They may choose to use a different mechanism for the discovery of the AS if necessary. If means of encrypting
      communication between the C and RS already exist, more detailed information
      may be included with an error response to provide the C with sufficient
      information to react on that particular error.</t>
    </section>
    <section anchor="iana" numbered="true" toc="include" removeInRFC="false" pn="section-8">
      <name slugifiedName="name-iana-considerations">IANA Considerations</name>
      <t indent="0" pn="section-8-1">This document creates several registries with a registration policy of
  Expert Review; guidelines to the experts are given in
  <xref target="IANAinstructions" format="default" sectionFormat="of" derivedContent="Section 8.17"/>.</t>
      <section anchor="IANAASInformation" numbered="true" toc="include" removeInRFC="false" pn="section-8.1">
        <name slugifiedName="name-ace-authorization-server-re">ACE Authorization Server Request Creation Hints</name>
        <t indent="0" pn="section-8.1-1">This specification establishes the IANA "ACE Authorization Server
    Request Creation Hints" registry.</t>
        <t indent="0" pn="section-8.1-2">The columns of the registry are:</t>
        <dl newline="false" indent="3" spacing="normal" pn="section-8.1-3">
          <dt pn="section-8.1-3.1">Name:</dt>
          <dd pn="section-8.1-3.2">The name of the parameter.</dd>
          <dt pn="section-8.1-3.3">CBOR Key:</dt>
          <dd pn="section-8.1-3.4">CBOR map key for the parameter.  Different ranges
      of values use different registration policies <xref target="RFC8126" format="default" sectionFormat="of" derivedContent="RFC8126"/>. 
      Integer values from -256 to 255 are designated as Standards
      Action.  Integer values from -65536 to -257 and from 256 to 65535
      are designated as Specification Required.  Integer values greater than
      65535 are designated as Expert Review.  Integer values less than -65536
      are marked as Private Use.</dd>
          <dt pn="section-8.1-3.5">Value Type:</dt>
          <dd pn="section-8.1-3.6">The CBOR data types allowable for the values of
      this parameter.</dd>
          <dt pn="section-8.1-3.7">Reference:</dt>
          <dd pn="section-8.1-3.8">This contains a pointer to the public
      specification of the Request Creation Hint abbreviation, if one
      exists.</dd>
        </dl>
        <t indent="0" pn="section-8.1-4">This registry has been initially populated by the values in <xref target="table_asinfo" format="default" sectionFormat="of" derivedContent="Table 1"/>. The Reference column for all of these entries is this document.</t>
      </section>
      <section anchor="IANAcoreRT" numbered="true" toc="include" removeInRFC="false" pn="section-8.2">
        <name slugifiedName="name-core-resource-types">CoRE Resource Types</name>
        <t indent="0" pn="section-8.2-1">IANA has registered a new Resource Type (rt=) Link Target
    Attribute in the "Resource Type (rt=) Link Target Attribute Values"
    subregistry under the "Constrained RESTful Environments (CoRE)
    Parameters" <xref target="IANA.CoreParameters" format="default" sectionFormat="of" derivedContent="IANA.CoreParameters"/> registry:</t>
        <dl newline="false" spacing="compact" indent="3" pn="section-8.2-2">
          <dt pn="section-8.2-2.1">Value:</dt>
          <dd pn="section-8.2-2.2">
            <tt>ace.ai</tt></dd>
          <dt pn="section-8.2-2.3">Description:</dt>
          <dd pn="section-8.2-2.4">ACE-OAuth authz-info endpoint resource.</dd>
          <dt pn="section-8.2-2.5">Reference:</dt>
          <dd pn="section-8.2-2.6">RFC 9200</dd>
        </dl>
        <t indent="0" pn="section-8.2-3">Specific ACE-OAuth profiles can use this common resource type for
   defining their profile-specific discovery processes.</t>
      </section>
      <section anchor="IANAOAuthErrorCodes" numbered="true" toc="include" removeInRFC="false" pn="section-8.3">
        <name slugifiedName="name-oauth-extensions-errors">OAuth Extensions Errors</name>
        <t indent="0" pn="section-8.3-1">This specification registers the following error values in the
	"OAuth Extensions Error Registry"
    <xref target="IANA.OAuthExtensionsErrorRegistry" format="default" sectionFormat="of" derivedContent="IANA.OAuthExtensionsErrorRegistry"/>.</t>
        <dl newline="false" spacing="compact" indent="3" pn="section-8.3-2">
          <dt pn="section-8.3-2.1">Name:</dt>
          <dd pn="section-8.3-2.2">
            <tt>unsupported_pop_key</tt></dd>
          <dt pn="section-8.3-2.3">Usage Location:</dt>
          <dd pn="section-8.3-2.4">token error response</dd>
          <dt pn="section-8.3-2.5">Protocol Extension:</dt>
          <dd pn="section-8.3-2.6">RFC 9200</dd>
          <dt pn="section-8.3-2.7">Change Controller:</dt>
          <dd pn="section-8.3-2.8">IETF</dd>
          <dt pn="section-8.3-2.9">Reference:</dt>
          <dd pn="section-8.3-2.10">
            <xref target="errorsToken" format="default" sectionFormat="of" derivedContent="Section 5.8.3"/> of RFC 9200</dd>
        </dl>
        <dl newline="false" spacing="compact" indent="3" pn="section-8.3-3">
          <dt pn="section-8.3-3.1">Name:</dt>
          <dd pn="section-8.3-3.2">
            <tt>incompatible_ace_profiles</tt></dd>
          <dt pn="section-8.3-3.3">Usage Location:</dt>
          <dd pn="section-8.3-3.4">token error response</dd>
          <dt pn="section-8.3-3.5">Protocol Extension:</dt>
          <dd pn="section-8.3-3.6">RFC 9200</dd>
          <dt pn="section-8.3-3.7">Change Controller:</dt>
          <dd pn="section-8.3-3.8">IETF</dd>
          <dt pn="section-8.3-3.9">Reference:</dt>
          <dd pn="section-8.3-3.10">
            <xref target="errorsToken" format="default" sectionFormat="of" derivedContent="Section 5.8.3"/> of RFC 9200</dd>
        </dl>
      </section>
      <section anchor="IANAErrorCBORMappings" numbered="true" toc="include" removeInRFC="false" pn="section-8.4">
        <name slugifiedName="name-oauth-error-code-cbor-mappi">OAuth Error Code CBOR Mappings</name>
        <t indent="0" pn="section-8.4-1">This specification establishes the IANA "OAuth Error Code
    CBOR Mappings" registry.</t>
        <t indent="0" pn="section-8.4-2">The columns of the registry are:</t>
        <dl newline="false" indent="3" spacing="normal" pn="section-8.4-3">
          <dt pn="section-8.4-3.1">Name:</dt>
          <dd pn="section-8.4-3.2">The OAuth Error Code name, refers to the name in
	  <xref target="RFC6749" sectionFormat="of" section="5.2" format="default" derivedLink="https://rfc-editor.org/rfc/rfc6749#section-5.2" derivedContent="RFC6749"/>, e.g.,
	  "invalid_request".</dd>
          <dt pn="section-8.4-3.3">CBOR Value:</dt>
          <dd pn="section-8.4-3.4">CBOR abbreviation for this error code.   
Integer values less than -65536 are marked as Private Use; all other values use          
the registration policy Expert Review <xref target="RFC8126" format="default" sectionFormat="of" derivedContent="RFC8126"/>.</dd>
          <dt pn="section-8.4-3.5">Reference:</dt>
          <dd pn="section-8.4-3.6">This contains a pointer to the public
	  specification of the error code abbreviation, if one exists.</dd>
          <dt pn="section-8.4-3.7">Original Specification:</dt>
          <dd pn="section-8.4-3.8">This contains a pointer to the public
	        specification of the error code, if one exists.</dd>
        </dl>
        <t indent="0" pn="section-8.4-4">This registry has been initially populated by the values in <xref target="table_cborErrorCodes" format="default" sectionFormat="of" derivedContent="Table 3"/>. The Reference column for all of these entries is this document.</t>
      </section>
      <section anchor="IANAGrantTypeMappings" numbered="true" toc="include" removeInRFC="false" pn="section-8.5">
        <name slugifiedName="name-oauth-grant-type-cbor-mappi">OAuth Grant Type CBOR Mappings</name>
        <t indent="0" pn="section-8.5-1">This specification establishes the IANA "OAuth Grant Type CBOR Mappings"
    registry.</t>
        <t indent="0" pn="section-8.5-2">The columns of this registry are:</t>
        <dl newline="false" indent="3" spacing="normal" pn="section-8.5-3">
          <dt pn="section-8.5-3.1">Name:</dt>
          <dd pn="section-8.5-3.2">The name of the grant type, as specified in
      <xref target="RFC6749" sectionFormat="of" section="1.3" format="default" derivedLink="https://rfc-editor.org/rfc/rfc6749#section-1.3" derivedContent="RFC6749"/>.</dd>
          <dt pn="section-8.5-3.3">CBOR Value:</dt>
          <dd pn="section-8.5-3.4">CBOR abbreviation for this grant type. Integer
      values less than -65536 are marked as Private Use; all other values use
      the registration policy Expert Review <xref target="RFC8126" format="default" sectionFormat="of" derivedContent="RFC8126"/>.</dd>
          <dt pn="section-8.5-3.5">Reference:</dt>
          <dd pn="section-8.5-3.6">This contains a pointer to the public
      specification of the grant type abbreviation, if one exists.</dd>
          <dt pn="section-8.5-3.7">Original Specification:</dt>
          <dd pn="section-8.5-3.8">This contains a pointer to
      the public specification of the grant type, if one exists.</dd>
        </dl>
        <t indent="0" pn="section-8.5-4">This registry has been initially populated by the values in <xref target="table_grant_types" format="default" sectionFormat="of" derivedContent="Table 4"/>. The Reference column for all of these entries is this document.</t>
      </section>
      <section anchor="IANAOAuthTokenType" numbered="true" toc="include" removeInRFC="false" pn="section-8.6">
        <name slugifiedName="name-oauth-access-token-types">OAuth Access Token Types</name>
        <t indent="0" pn="section-8.6-1">This section registers the following new token type in the
    "OAuth Access Token Types" registry <xref target="IANA.OAuthAccessTokenTypes" format="default" sectionFormat="of" derivedContent="IANA.OAuthAccessTokenTypes"/>.</t>
        <dl newline="false" spacing="compact" indent="3" pn="section-8.6-2">
          <dt pn="section-8.6-2.1">Name:</dt>
          <dd pn="section-8.6-2.2">
            <tt>PoP</tt></dd>
          <dt pn="section-8.6-2.3">Additional Token Endpoint Response Parameters:</dt>
          <dd pn="section-8.6-2.4">
            <tt>cnf</tt>, <tt>rs_cnf</tt> (see <xref target="RFC8747" sectionFormat="of" section="3.1" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8747#section-3.1" derivedContent="RFC8747"/> and <xref target="RFC9201" sectionFormat="of" section="3.2" format="default" derivedLink="https://rfc-editor.org/rfc/rfc9201#section-3.2" derivedContent="RFC9201"/>).</dd>
          <dt pn="section-8.6-2.5">HTTP Authentication Scheme(s):</dt>
          <dd pn="section-8.6-2.6">N/A</dd>
          <dt pn="section-8.6-2.7">Change Controller:</dt>
          <dd pn="section-8.6-2.8">IETF</dd>
          <dt pn="section-8.6-2.9">Reference:</dt>
          <dd pn="section-8.6-2.10">RFC 9200</dd>
        </dl>
      </section>
      <section anchor="IANATokenTypeMappings" numbered="true" toc="include" removeInRFC="false" pn="section-8.7">
        <name slugifiedName="name-oauth-access-token-type-cbo">OAuth Access Token Type CBOR Mappings</name>
        <t indent="0" pn="section-8.7-1">This specification establishes the IANA "OAuth Access Token Type CBOR
     Mappings" registry.</t>
        <t indent="0" pn="section-8.7-2">The columns of this registry are:</t>
        <dl newline="false" indent="3" spacing="normal" pn="section-8.7-3">
          <dt pn="section-8.7-3.1">Name:</dt>
          <dd pn="section-8.7-3.2">The name of the token type, as registered in the
      "OAuth Access Token Types" registry, e.g., "Bearer".</dd>
          <dt pn="section-8.7-3.3">CBOR Value:</dt>
          <dd pn="section-8.7-3.4">CBOR abbreviation for this token type. Integer
      values less than -65536 are marked as Private Use; all other values use
      the registration policy Expert Review <xref target="RFC8126" format="default" sectionFormat="of" derivedContent="RFC8126"/>.</dd>
          <dt pn="section-8.7-3.5">Reference:</dt>
          <dd pn="section-8.7-3.6">This contains a pointer to the public
      specification of the OAuth token type abbreviation, if one exists.</dd>
          <dt pn="section-8.7-3.7">Original Specification:</dt>
          <dd pn="section-8.7-3.8">This contains a pointer to
      the public specification of the OAuth token type, if one exists.</dd>
        </dl>
        <section anchor="IANATokenTypeMappingsInitial" numbered="true" toc="include" removeInRFC="false" pn="section-8.7.1">
          <name slugifiedName="name-initial-registry-contents">Initial Registry Contents</name>
          <dl newline="false" spacing="compact" indent="3" pn="section-8.7.1-1">
            <dt pn="section-8.7.1-1.1">Name:</dt>
            <dd pn="section-8.7.1-1.2">
              <tt>Bearer</tt></dd>
            <dt pn="section-8.7.1-1.3">CBOR Value:</dt>
            <dd pn="section-8.7.1-1.4">1</dd>
            <dt pn="section-8.7.1-1.5">Reference:</dt>
            <dd pn="section-8.7.1-1.6">RFC 9200</dd>
            <dt pn="section-8.7.1-1.7">Original Specification:</dt>
            <dd pn="section-8.7.1-1.8">
              <xref target="RFC6749" format="default" sectionFormat="of" derivedContent="RFC6749"/></dd>
          </dl>
          <dl newline="false" spacing="compact" indent="3" pn="section-8.7.1-2">
            <dt pn="section-8.7.1-2.1">Name:</dt>
            <dd pn="section-8.7.1-2.2">
              <tt>PoP</tt></dd>
            <dt pn="section-8.7.1-2.3">CBOR Value:</dt>
            <dd pn="section-8.7.1-2.4">2</dd>
            <dt pn="section-8.7.1-2.5">Reference:</dt>
            <dd pn="section-8.7.1-2.6">RFC 9200</dd>
            <dt pn="section-8.7.1-2.7">Original Specification:</dt>
            <dd pn="section-8.7.1-2.8">RFC 9200</dd>
          </dl>
        </section>
      </section>
      <section anchor="IANAProfile" numbered="true" toc="include" removeInRFC="false" pn="section-8.8">
        <name slugifiedName="name-ace-profiles">ACE Profiles</name>
        <t indent="0" pn="section-8.8-1">This specification establishes the IANA "ACE Profile" registry. </t>
        <t indent="0" pn="section-8.8-2">The columns of this registry are:</t>
        <dl newline="false" indent="3" spacing="normal" pn="section-8.8-3">
          <dt pn="section-8.8-3.1">Name:</dt>
          <dd pn="section-8.8-3.2"> The name of the profile to be used as the value of
	  the profile attribute.</dd>
          <dt pn="section-8.8-3.3">Description:</dt>
          <dd pn="section-8.8-3.4"> Text giving an overview of the profile and
	  the context it is developed for.</dd>
          <dt pn="section-8.8-3.5">CBOR Value:</dt>
          <dd pn="section-8.8-3.6">CBOR abbreviation for this profile name. Different ranges of values use different registration policies <xref target="RFC8126" format="default" sectionFormat="of" derivedContent="RFC8126"/>.  Integer values from -256 to 255 are
	  designated as Standards Action.  Integer values from -65536 to -257 and from 256
	  to 65535 are designated as Specification Required.  Integer values greater
	  than 65535 are designated as Expert Review.  Integer values less than
	  -65536 are marked as Private Use.</dd>
          <dt pn="section-8.8-3.7">Reference:</dt>
          <dd pn="section-8.8-3.8">This contains a pointer to the public
      specification of the profile abbreviation, if one exists.</dd>
        </dl>
      </section>
      <section anchor="IANAOAuthParameter" numbered="true" toc="include" removeInRFC="false" pn="section-8.9">
        <name slugifiedName="name-oauth-parameters">OAuth Parameters</name>
        <t indent="0" pn="section-8.9-1">This specification registers the following parameter in the "OAuth
    Parameters" registry <xref target="IANA.OAuthParameters" format="default" sectionFormat="of" derivedContent="IANA.OAuthParameters"/>:</t>
        <dl newline="false" spacing="compact" indent="3" pn="section-8.9-2">
          <dt pn="section-8.9-2.1">Name:</dt>
          <dd pn="section-8.9-2.2">
            <tt>ace_profile</tt></dd>
          <dt pn="section-8.9-2.3">Parameter Usage Location:</dt>
          <dd pn="section-8.9-2.4">token response</dd>
          <dt pn="section-8.9-2.5">Change Controller:</dt>
          <dd pn="section-8.9-2.6">IETF</dd>
          <dt pn="section-8.9-2.7">Reference:</dt>
          <dd pn="section-8.9-2.8">Sections <xref target="tokenResponse" format="counter" sectionFormat="of" derivedContent="5.8.2"/> and
	  <xref target="paramProfile" format="counter" sectionFormat="of" derivedContent="5.8.4.3"/> of RFC 9200</dd>
        </dl>
      </section>
      <section anchor="IANAOAuthParameterMappingsRegistry" numbered="true" toc="include" removeInRFC="false" pn="section-8.10">
        <name slugifiedName="name-oauth-parameters-cbor-mappi">OAuth Parameters CBOR Mappings</name>
        <t indent="0" pn="section-8.10-1">This specification establishes the IANA "OAuth Parameters CBOR Mappings"
    registry.</t>
        <t indent="0" pn="section-8.10-2">The columns of this registry are:</t>
        <dl newline="false" indent="3" spacing="normal" pn="section-8.10-3">
          <dt pn="section-8.10-3.1">Name:</dt>
          <dd pn="section-8.10-3.2">The OAuth Parameter name, refers to the name in
      the OAuth parameter registry, e.g., <tt>client_id</tt>.</dd>
          <dt pn="section-8.10-3.3">CBOR Key:</dt>
          <dd pn="section-8.10-3.4">CBOR map key for this parameter.  Integer
      values less than -65536 are marked as Private Use; all other values use
      the registration policy Expert Review <xref target="RFC8126" format="default" sectionFormat="of" derivedContent="RFC8126"/>.</dd>
          <dt pn="section-8.10-3.5">Value Type:</dt>
          <dd pn="section-8.10-3.6">The allowable CBOR data types for values
      of this parameter.</dd>
          <dt pn="section-8.10-3.7">Reference:</dt>
          <dd pn="section-8.10-3.8">This contains a pointer to the public
	  specification of the OAuth parameter abbreviation, if one exists.</dd>
          <dt pn="section-8.10-3.9">Original Specification</dt>
          <dd pn="section-8.10-3.10">This contains a pointer to the public
	        specification of the OAuth parameter, if one exists.</dd>
        </dl>
        <t indent="0" pn="section-8.10-4">This registry has been initially populated by the values in <xref target="table_cborTokenParameters" format="default" sectionFormat="of" derivedContent="Table 5"/>. The Reference column for all of these entries is this document.</t>
      </section>
      <section anchor="IANAOAuthIntrospectionResponseParameterRegistration" numbered="true" toc="include" removeInRFC="false" pn="section-8.11">
        <name slugifiedName="name-oauth-introspection-respons">OAuth Introspection Response Parameters</name>
        <t indent="0" pn="section-8.11-1">This specification registers the following parameters in the "OAuth
    Token Introspection Response" registry <xref target="IANA.TokenIntrospectionResponse" format="default" sectionFormat="of" derivedContent="IANA.TokenIntrospectionResponse"/>.</t>
        <dl newline="false" spacing="compact" indent="3" pn="section-8.11-2">
          <dt pn="section-8.11-2.1">Name:</dt>
          <dd pn="section-8.11-2.2">
            <tt>ace_profile</tt></dd>
          <dt pn="section-8.11-2.3">Description:</dt>
          <dd pn="section-8.11-2.4">The ACE profile used between the client and RS.</dd>
          <dt pn="section-8.11-2.5">Change Controller:</dt>
          <dd pn="section-8.11-2.6">IETF</dd>
          <dt pn="section-8.11-2.7">Reference:</dt>
          <dd pn="section-8.11-2.8">
            <xref target="introRes" format="default" sectionFormat="of" derivedContent="Section 5.9.2"/> of RFC 9200</dd>
        </dl>
        <dl newline="false" spacing="compact" indent="3" pn="section-8.11-3">
          <dt pn="section-8.11-3.1">Name:</dt>
          <dd pn="section-8.11-3.2">
            <tt>cnonce</tt></dd>
          <dt pn="section-8.11-3.3">Description:</dt>
          <dd pn="section-8.11-3.4">"client-nonce". A nonce previously provided
	to the AS by the RS via the client.  Used to verify token freshness
	when the RS cannot synchronize its clock with the AS.</dd>
          <dt pn="section-8.11-3.5">Change Controller:</dt>
          <dd pn="section-8.11-3.6">IETF</dd>
          <dt pn="section-8.11-3.7">Reference:</dt>
          <dd pn="section-8.11-3.8">
            <xref target="introRes" format="default" sectionFormat="of" derivedContent="Section 5.9.2"/> of RFC 9200</dd>
        </dl>
        <dl newline="false" spacing="compact" indent="3" pn="section-8.11-4">
          <dt pn="section-8.11-4.1">Name</dt>
          <dd pn="section-8.11-4.2">
            <tt>cti</tt></dd>
          <dt pn="section-8.11-4.3">Description</dt>
          <dd pn="section-8.11-4.4">"CWT ID".  The identifier of a CWT as defined in
	  <xref target="RFC8392" format="default" sectionFormat="of" derivedContent="RFC8392"/>.</dd>
          <dt pn="section-8.11-4.5">Change Controller</dt>
          <dd pn="section-8.11-4.6">IETF</dd>
          <dt pn="section-8.11-4.7">Reference</dt>
          <dd pn="section-8.11-4.8">
            <xref target="introRes" format="default" sectionFormat="of" derivedContent="Section 5.9.2"/> of RFC 9200</dd>
        </dl>
        <dl newline="false" spacing="compact" indent="3" pn="section-8.11-5">
          <dt pn="section-8.11-5.1">Name:</dt>
          <dd pn="section-8.11-5.2">
            <tt>exi</tt></dd>
          <dt pn="section-8.11-5.3">Description:</dt>
          <dd pn="section-8.11-5.4">"Expires in". Lifetime of the token in seconds
	from the time the RS first sees it.  Used to implement a weaker form of
	token expiration for devices that cannot synchronize their internal
	clocks.</dd>
          <dt pn="section-8.11-5.5">Change Controller:</dt>
          <dd pn="section-8.11-5.6">IETF</dd>
          <dt pn="section-8.11-5.7">Reference:</dt>
          <dd pn="section-8.11-5.8">
            <xref target="introRes" format="default" sectionFormat="of" derivedContent="Section 5.9.2"/> of RFC 9200</dd>
        </dl>
      </section>
      <section anchor="IANAIntrospectionEndpointCBORMappingsRegistry" numbered="true" toc="include" removeInRFC="false" pn="section-8.12">
        <name slugifiedName="name-oauth-token-introspection-r">OAuth Token Introspection Response CBOR Mappings</name>
        <t indent="0" pn="section-8.12-1">This specification establishes the IANA "OAuth Token Introspection
    Response CBOR Mappings" registry.</t>
        <t indent="0" pn="section-8.12-2">The columns of this registry are:</t>
        <dl newline="false" indent="3" spacing="normal" pn="section-8.12-3">
          <dt pn="section-8.12-3.1">Name:</dt>
          <dd pn="section-8.12-3.2">The OAuth Parameter name, refers to the name in
      the OAuth parameter registry, e.g., <tt>client_id</tt>.</dd>
          <dt pn="section-8.12-3.3">CBOR Key:</dt>
          <dd pn="section-8.12-3.4">CBOR map key for this parameter.  Integer
      values less than -65536 are marked as Private Use; all other values use
      the registration policy Expert Review <xref target="RFC8126" format="default" sectionFormat="of" derivedContent="RFC8126"/>.</dd>
          <dt pn="section-8.12-3.5">Value Type:</dt>
          <dd pn="section-8.12-3.6">The allowable CBOR data types for values
      of this parameter.</dd>
          <dt pn="section-8.12-3.7">Reference:</dt>
          <dd pn="section-8.12-3.8">This contains a pointer to the public
	  specification of the introspection response parameter abbreviation, if
	  one exists.</dd>
          <dt pn="section-8.12-3.9">Original Specification</dt>
          <dd pn="section-8.12-3.10">This contains a pointer to the public
	  specification of the OAuth Token Introspection parameter, if one
	        exists.</dd>
        </dl>
        <t indent="0" pn="section-8.12-4">
	  This registry has been initially populated by the values in <xref target="table_cborIntrospectionParameters" format="default" sectionFormat="of" derivedContent="Table 6"/>. The Reference column for all of these entries is this document.</t>
        <t indent="0" pn="section-8.12-5">Note that the mappings of parameters corresponding to claim names
    intentionally coincide with the CWT claim name mappings from <xref target="RFC8392" format="default" sectionFormat="of" derivedContent="RFC8392"/>.</t>
      </section>
      <section anchor="IANAJWTClaims" numbered="true" toc="include" removeInRFC="false" pn="section-8.13">
        <name slugifiedName="name-json-web-token-claims">JSON Web Token Claims</name>
        <t indent="0" pn="section-8.13-1">This specification registers the following new claims in the "JSON
	Web Token Claims" subregistry under the "JSON
   Web Token (JWT)" registry <xref target="IANA.JsonWebTokenClaims" format="default" sectionFormat="of" derivedContent="IANA.JsonWebTokenClaims"/>:</t>
        <dl newline="false" spacing="compact" indent="3" pn="section-8.13-2">
          <dt pn="section-8.13-2.1">Claim Name:</dt>
          <dd pn="section-8.13-2.2">
            <tt>ace_profile</tt></dd>
          <dt pn="section-8.13-2.3">Claim Description:</dt>
          <dd pn="section-8.13-2.4">The ACE profile a token is supposed to be used with.</dd>
          <dt pn="section-8.13-2.5">Change Controller:</dt>
          <dd pn="section-8.13-2.6">IETF</dd>
          <dt pn="section-8.13-2.7">Reference:</dt>
          <dd pn="section-8.13-2.8">
            <xref target="accessToken" format="default" sectionFormat="of" derivedContent="Section 5.10"/> of RFC 9200</dd>
        </dl>
        <dl newline="false" spacing="compact" indent="3" pn="section-8.13-3">
          <dt pn="section-8.13-3.1">Claim Name:</dt>
          <dd pn="section-8.13-3.2">
            <tt>cnonce</tt></dd>
          <dt pn="section-8.13-3.3">Claim Description:</dt>
          <dd pn="section-8.13-3.4">"client-nonce". A nonce previously provided
      to the AS by the RS via the client.  Used to verify token freshness
      when the RS cannot synchronize its clock with the AS.</dd>
          <dt pn="section-8.13-3.5">Change Controller:</dt>
          <dd pn="section-8.13-3.6">IETF</dd>
          <dt pn="section-8.13-3.7">Reference:</dt>
          <dd pn="section-8.13-3.8">
            <xref target="accessToken" format="default" sectionFormat="of" derivedContent="Section 5.10"/> of RFC 9200</dd>
        </dl>
        <dl newline="false" spacing="compact" indent="3" pn="section-8.13-4">
          <dt pn="section-8.13-4.1">Claim Name:</dt>
          <dd pn="section-8.13-4.2">
            <tt>exi</tt></dd>
          <dt pn="section-8.13-4.3">Claim Description:</dt>
          <dd pn="section-8.13-4.4">"Expires in". Lifetime of the token in seconds
      from the time the RS first sees it.  Used to implement a weaker form of
      token expiration for devices that cannot synchronize their internal
      clocks.</dd>
          <dt pn="section-8.13-4.5">Change Controller:</dt>
          <dd pn="section-8.13-4.6">IETF</dd>
          <dt pn="section-8.13-4.7">Reference:</dt>
          <dd pn="section-8.13-4.8">
            <xref target="tokenExpiration" format="default" sectionFormat="of" derivedContent="Section 5.10.3"/> of RFC 9200</dd>
        </dl>
      </section>
      <section anchor="IANACWTClaims" numbered="true" toc="include" removeInRFC="false" pn="section-8.14">
        <name slugifiedName="name-cbor-web-token-claims">CBOR Web Token Claims</name>
        <t indent="0" pn="section-8.14-1">This specification registers the following new claims in the "CBOR
    Web Token (CWT) Claims" registry <xref target="IANA.CborWebTokenClaims" format="default" sectionFormat="of" derivedContent="IANA.CborWebTokenClaims"/>.</t>
        <dl newline="false" spacing="compact" indent="3" pn="section-8.14-2">
          <dt pn="section-8.14-2.1">Claim Name:</dt>
          <dd pn="section-8.14-2.2">
            <tt>ace_profile</tt></dd>
          <dt pn="section-8.14-2.3">Claim Description:</dt>
          <dd pn="section-8.14-2.4">The ACE profile a token is supposed to be used with.</dd>
          <dt pn="section-8.14-2.5">JWT Claim Name:</dt>
          <dd pn="section-8.14-2.6">
            <tt>ace_profile</tt></dd>
          <dt pn="section-8.14-2.7">Claim Key:</dt>
          <dd pn="section-8.14-2.8">38</dd>
          <dt pn="section-8.14-2.9">Claim Value Type:</dt>
          <dd pn="section-8.14-2.10">integer</dd>
          <dt pn="section-8.14-2.11">Change Controller:</dt>
          <dd pn="section-8.14-2.12">IETF</dd>
          <dt pn="section-8.14-2.13">Reference:</dt>
          <dd pn="section-8.14-2.14">
            <xref target="accessToken" format="default" sectionFormat="of" derivedContent="Section 5.10"/> of RFC 9200</dd>
        </dl>
        <dl newline="false" spacing="compact" indent="3" pn="section-8.14-3">
          <dt pn="section-8.14-3.1">Claim Name:</dt>
          <dd pn="section-8.14-3.2">
            <tt>cnonce</tt></dd>
          <dt pn="section-8.14-3.3">Claim Description:</dt>
          <dd pn="section-8.14-3.4">The client-nonce sent to the AS by the RS via the client.</dd>
          <dt pn="section-8.14-3.5">JWT Claim Name:</dt>
          <dd pn="section-8.14-3.6">
            <tt>cnonce</tt></dd>
          <dt pn="section-8.14-3.7">Claim Key:</dt>
          <dd pn="section-8.14-3.8">39</dd>
          <dt pn="section-8.14-3.9">Claim Value Type:</dt>
          <dd pn="section-8.14-3.10">byte string</dd>
          <dt pn="section-8.14-3.11">Change Controller:</dt>
          <dd pn="section-8.14-3.12">IETF</dd>
          <dt pn="section-8.14-3.13">Reference:</dt>
          <dd pn="section-8.14-3.14">
            <xref target="accessToken" format="default" sectionFormat="of" derivedContent="Section 5.10"/> of RFC 9200</dd>
        </dl>
        <dl newline="false" spacing="compact" indent="3" pn="section-8.14-4">
          <dt pn="section-8.14-4.1">Claim Name:</dt>
          <dd pn="section-8.14-4.2">
            <tt>exi</tt></dd>
          <dt pn="section-8.14-4.3">Claim Description:</dt>
          <dd pn="section-8.14-4.4">The expiration time of a token measured from when it was received at the RS
	  in seconds.</dd>
          <dt pn="section-8.14-4.5">JWT Claim Name:</dt>
          <dd pn="section-8.14-4.6">
            <tt>exi</tt></dd>
          <dt pn="section-8.14-4.7">Claim Key:</dt>
          <dd pn="section-8.14-4.8">40</dd>
          <dt pn="section-8.14-4.9">Claim Value Type:</dt>
          <dd pn="section-8.14-4.10">unsigned integer</dd>
          <dt pn="section-8.14-4.11">Change Controller:</dt>
          <dd pn="section-8.14-4.12">IETF</dd>
          <dt pn="section-8.14-4.13">Reference:</dt>
          <dd pn="section-8.14-4.14">
            <xref target="tokenExpiration" format="default" sectionFormat="of" derivedContent="Section 5.10.3"/> of RFC 9200</dd>
        </dl>
        <dl newline="false" spacing="compact" indent="3" pn="section-8.14-5">
          <dt pn="section-8.14-5.1">Claim Name:</dt>
          <dd pn="section-8.14-5.2">
            <tt>scope</tt></dd>
          <dt pn="section-8.14-5.3">Claim Description:</dt>
          <dd pn="section-8.14-5.4">The scope of an access token, as defined in <xref target="RFC6749" format="default" sectionFormat="of" derivedContent="RFC6749"/>.</dd>
          <dt pn="section-8.14-5.5">JWT Claim Name:</dt>
          <dd pn="section-8.14-5.6">
            <tt>scope</tt></dd>
          <dt pn="section-8.14-5.7">Claim Key:</dt>
          <dd pn="section-8.14-5.8">9</dd>
          <dt pn="section-8.14-5.9">Claim Value Type:</dt>
          <dd pn="section-8.14-5.10">byte string or text string</dd>
          <dt pn="section-8.14-5.11">Change Controller:</dt>
          <dd pn="section-8.14-5.12">IETF</dd>
          <dt pn="section-8.14-5.13">Reference:</dt>
          <dd pn="section-8.14-5.14">
            <xref target="RFC8693" sectionFormat="of" section="4.2" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8693#section-4.2" derivedContent="RFC8693"/></dd>
        </dl>
      </section>
      <section anchor="IANAmediaType" numbered="true" toc="include" removeInRFC="false" pn="section-8.15">
        <name slugifiedName="name-media-type-registration">Media Type Registration</name>
        <t indent="0" pn="section-8.15-1">This specification registers the "application/ace+cbor" media type for
    messages of the protocols defined in this document carrying parameters
    encoded in CBOR.  This registration follows the procedures specified in
    <xref target="RFC6838" format="default" sectionFormat="of" derivedContent="RFC6838"/>.</t>
        <dl newline="false" indent="3" spacing="normal" pn="section-8.15-2">
          <dt pn="section-8.15-2.1">Type name:</dt>
          <dd pn="section-8.15-2.2">application</dd>
          <dt pn="section-8.15-2.3">Subtype name:</dt>
          <dd pn="section-8.15-2.4">ace+cbor</dd>
          <dt pn="section-8.15-2.5">Required parameters:</dt>
          <dd pn="section-8.15-2.6">N/A</dd>
          <dt pn="section-8.15-2.7">Optional parameters:</dt>
          <dd pn="section-8.15-2.8">N/A</dd>
          <dt pn="section-8.15-2.9">Encoding considerations:</dt>
          <dd pn="section-8.15-2.10">Must be encoded as a CBOR map containing
	the protocol parameters defined in RFC 9200.</dd>
          <dt pn="section-8.15-2.11">Security considerations:</dt>
          <dd pn="section-8.15-2.12">See <xref target="security" format="default" sectionFormat="of" derivedContent="Section 6"/> of RFC 9200</dd>
          <dt pn="section-8.15-2.13">Interoperability considerations:</dt>
          <dd pn="section-8.15-2.14">N/A</dd>
          <dt pn="section-8.15-2.15">Published specification:</dt>
          <dd pn="section-8.15-2.16">RFC 9200</dd>
          <dt pn="section-8.15-2.17">Applications that use this media type:</dt>
          <dd pn="section-8.15-2.18">The type is used by
	authorization servers, clients, and resource servers that support the ACE
	framework with CBOR encoding, as specified in RFC 9200.</dd>
          <dt pn="section-8.15-2.19">Fragment identifier considerations:</dt>
          <dd pn="section-8.15-2.20">N/A</dd>
          <dt pn="section-8.15-2.21">Additional information:</dt>
          <dd pn="section-8.15-2.22">N/A</dd>
          <dt pn="section-8.15-2.23">Person &amp; email address to contact for further information:</dt>
          <dd pn="section-8.15-2.24">
            <br/>IESG &lt;iesg@ietf.org&gt;</dd>
          <dt pn="section-8.15-2.25">Intended usage:</dt>
          <dd pn="section-8.15-2.26">COMMON</dd>
          <dt pn="section-8.15-2.27">Restrictions on usage:</dt>
          <dd pn="section-8.15-2.28">none</dd>
          <dt pn="section-8.15-2.29">Author:</dt>
          <dd pn="section-8.15-2.30">Ludwig Seitz &lt;ludwig.seitz@combitech.se&gt;</dd>
          <dt pn="section-8.15-2.31">Change controller:</dt>
          <dd pn="section-8.15-2.32">IETF</dd>
        </dl>
      </section>
      <section anchor="IANAcoapContentFormat" numbered="true" toc="include" removeInRFC="false" pn="section-8.16">
        <name slugifiedName="name-coap-content-formats">CoAP Content-Formats</name>
        <t indent="0" pn="section-8.16-1">The following entry has been registered in the "CoAP
    Content-Formats" registry:</t>
        <dl newline="false" spacing="compact" indent="3" pn="section-8.16-2">
          <dt pn="section-8.16-2.1">Media Type:</dt>
          <dd pn="section-8.16-2.2">application/ace+cbor</dd>
          <dt pn="section-8.16-2.3">Encoding:</dt>
          <dd pn="section-8.16-2.4">-</dd>
          <dt pn="section-8.16-2.5">ID:</dt>
          <dd pn="section-8.16-2.6">19</dd>
          <dt pn="section-8.16-2.7">Reference:</dt>
          <dd pn="section-8.16-2.8">RFC 9200</dd>
        </dl>
      </section>
      <section anchor="IANAinstructions" numbered="true" toc="include" removeInRFC="false" pn="section-8.17">
        <name slugifiedName="name-expert-review-instructions">Expert Review Instructions</name>
        <t indent="0" pn="section-8.17-1">All of the IANA registries established in this document are defined
   to use a registration policy of Expert Review.  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-8.17-2">Expert Reviewers should take into consideration the following points:
        </t>
        <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-8.17-3">
          <li pn="section-8.17-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-8.17-3.2">Specifications are needed for the first-come, first-serve 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-8.17-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, i.e., the size of device it will be
      used on.</li>
          <li pn="section-8.17-3.4">Since a high degree of overlap is expected between these registries
      and the contents of the OAuth parameters <xref target="IANA.OAuthParameters" format="default" sectionFormat="of" derivedContent="IANA.OAuthParameters"/> registries, experts should require new
      registrations to maintain alignment with parameters from OAuth that have
      comparable functionality.  Deviation from this alignment should only
      be allowed if there are functional differences that are motivated by
      the use case and that cannot be easily or efficiently addressed by
      comparable OAuth parameters.</li>
        </ul>
      </section>
    </section>
  </middle>
  <back>
    <displayreference target="I-D.erdtman-oauth-rpcc" to="OAUTH-RPCC"/>
    <displayreference target="I-D.gerdes-ace-dcaf-authorize" to="DCAF"/>
    <displayreference target="I-D.ietf-oauth-pop-key-distribution" to="POP-KEY-DIST"/>
    <references pn="section-9">
      <name slugifiedName="name-references">References</name>
      <references pn="section-9.1">
        <name slugifiedName="name-normative-references">Normative References</name>
        <reference anchor="IANA.CborWebTokenClaims" target="https://www.iana.org/assignments/cwt" quoteTitle="true" derivedAnchor="IANA.CborWebTokenClaims">
          <front>
            <title>CBOR Web Token (CWT) Claims</title>
            <author>
              <organization showOnFrontPage="true">IANA</organization>
            </author>
          </front>
        </reference>
        <reference anchor="IANA.CoreParameters" target="https://www.iana.org/assignments/core-parameters" quoteTitle="true" derivedAnchor="IANA.CoreParameters">
          <front>
            <title>Constrained RESTful Environments (CoRE) Parameters</title>
            <author>
              <organization showOnFrontPage="true">IANA</organization>
            </author>
          </front>
        </reference>
        <reference anchor="IANA.JsonWebTokenClaims" target="https://www.iana.org/assignments/jwt" quoteTitle="true" derivedAnchor="IANA.JsonWebTokenClaims">
          <front>
            <title>JSON Web Token Claims</title>
            <author>
              <organization showOnFrontPage="true">IANA</organization>
            </author>
          </front>
        </reference>
        <reference anchor="IANA.OAuthAccessTokenTypes" target="https://www.iana.org/assignments/oauth-parameters" quoteTitle="true" derivedAnchor="IANA.OAuthAccessTokenTypes">
          <front>
            <title>OAuth Access Token Types</title>
            <author>
              <organization showOnFrontPage="true">IANA</organization>
            </author>
          </front>
        </reference>
        <reference anchor="IANA.OAuthExtensionsErrorRegistry" target="https://www.iana.org/assignments/oauth-parameters" quoteTitle="true" derivedAnchor="IANA.OAuthExtensionsErrorRegistry">
          <front>
            <title>OAuth Extensions Error Registry</title>
            <author>
              <organization showOnFrontPage="true">IANA</organization>
            </author>
          </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>
          </front>
        </reference>
        <reference anchor="IANA.TokenIntrospectionResponse" target="https://www.iana.org/assignments/oauth-parameters" quoteTitle="true" derivedAnchor="IANA.TokenIntrospectionResponse">
          <front>
            <title>OAuth Token Introspection Response</title>
            <author>
              <organization showOnFrontPage="true">IANA</organization>
            </author>
          </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="RFC3986" target="https://www.rfc-editor.org/info/rfc3986" quoteTitle="true" derivedAnchor="RFC3986">
          <front>
            <title>Uniform Resource Identifier (URI): Generic Syntax</title>
            <author fullname="T. Berners-Lee" initials="T." surname="Berners-Lee"/>
            <author fullname="R. Fielding" initials="R." surname="Fielding"/>
            <author fullname="L. Masinter" initials="L." surname="Masinter"/>
            <date month="January" year="2005"/>
            <abstract>
              <t indent="0">A Uniform Resource Identifier (URI) is a compact sequence of characters that identifies an abstract or physical resource.  This specification defines the generic URI syntax and a process for resolving URI references that might be in relative form, along with guidelines and security considerations for the use of URIs on the Internet.  The URI syntax defines a grammar that is a superset of all valid URIs, allowing an implementation to parse the common components of a URI reference without knowing the scheme-specific requirements of every possible identifier.  This specification does not define a generative grammar for URIs; that task is performed by the individual specifications of each URI scheme. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="STD" value="66"/>
          <seriesInfo name="RFC" value="3986"/>
          <seriesInfo name="DOI" value="10.17487/RFC3986"/>
        </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="RFC6347" target="https://www.rfc-editor.org/info/rfc6347" quoteTitle="true" derivedAnchor="RFC6347">
          <front>
            <title>Datagram Transport Layer Security Version 1.2</title>
            <author fullname="E. Rescorla" initials="E." surname="Rescorla"/>
            <author fullname="N. Modadugu" initials="N." surname="Modadugu"/>
            <date month="January" year="2012"/>
            <abstract>
              <t indent="0">This document specifies version 1.2 of the Datagram Transport Layer Security (DTLS) protocol.  The DTLS protocol provides communications privacy for datagram protocols.  The protocol allows client/server applications to communicate in a way that is designed to prevent eavesdropping, tampering, or message forgery.  The DTLS protocol is based on the Transport Layer Security (TLS) protocol and provides equivalent security guarantees.  Datagram semantics of the underlying transport are preserved by the DTLS protocol.  This document updates DTLS 1.0 to work with TLS version 1.2. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="6347"/>
          <seriesInfo name="DOI" value="10.17487/RFC6347"/>
        </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="RFC6750" target="https://www.rfc-editor.org/info/rfc6750" quoteTitle="true" derivedAnchor="RFC6750">
          <front>
            <title>The OAuth 2.0 Authorization Framework: Bearer Token Usage</title>
            <author fullname="M. Jones" initials="M." surname="Jones"/>
            <author fullname="D. Hardt" initials="D." surname="Hardt"/>
            <date month="October" year="2012"/>
            <abstract>
              <t indent="0">This specification describes how to use bearer tokens in HTTP requests to access OAuth 2.0 protected resources.  Any party in possession of a bearer token (a "bearer") can use it to get access to the associated resources (without demonstrating possession of a cryptographic key).  To prevent misuse, bearer tokens need to be protected from disclosure in storage and in transport. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="6750"/>
          <seriesInfo name="DOI" value="10.17487/RFC6750"/>
        </reference>
        <reference anchor="RFC6838" target="https://www.rfc-editor.org/info/rfc6838" quoteTitle="true" derivedAnchor="RFC6838">
          <front>
            <title>Media Type Specifications and Registration Procedures</title>
            <author fullname="N. Freed" initials="N." surname="Freed"/>
            <author fullname="J. Klensin" initials="J." surname="Klensin"/>
            <author fullname="T. Hansen" initials="T." surname="Hansen"/>
            <date month="January" year="2013"/>
            <abstract>
              <t indent="0">This document defines procedures for the specification and registration of media types for use in HTTP, MIME, and other Internet protocols.  This memo documents an Internet Best Current Practice.</t>
            </abstract>
          </front>
          <seriesInfo name="BCP" value="13"/>
          <seriesInfo name="RFC" value="6838"/>
          <seriesInfo name="DOI" value="10.17487/RFC6838"/>
        </reference>
        <reference anchor="RFC6920" target="https://www.rfc-editor.org/info/rfc6920" quoteTitle="true" derivedAnchor="RFC6920">
          <front>
            <title>Naming Things with Hashes</title>
            <author fullname="S. Farrell" initials="S." surname="Farrell"/>
            <author fullname="D. Kutscher" initials="D." surname="Kutscher"/>
            <author fullname="C. Dannewitz" initials="C." surname="Dannewitz"/>
            <author fullname="B. Ohlman" initials="B." surname="Ohlman"/>
            <author fullname="A. Keranen" initials="A." surname="Keranen"/>
            <author fullname="P. Hallam-Baker" initials="P." surname="Hallam-Baker"/>
            <date month="April" year="2013"/>
            <abstract>
              <t indent="0">This document defines a set of ways to identify a thing (a digital object in this case) using the output from a hash function.  It specifies a new URI scheme for this purpose, a way to map these to HTTP URLs, and binary and human-speakable formats for these names.  The various formats are designed to support, but not require, a strong link to the referenced object, such that the referenced object may be authenticated to the same degree as the reference to it.  The reason for this work is to standardise current uses of hash outputs in URLs and to support new information-centric applications and other uses of hash outputs in protocols.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="6920"/>
          <seriesInfo name="DOI" value="10.17487/RFC6920"/>
        </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="RFC7519" target="https://www.rfc-editor.org/info/rfc7519" quoteTitle="true" derivedAnchor="RFC7519">
          <front>
            <title>JSON Web Token (JWT)</title>
            <author fullname="M. Jones" initials="M." surname="Jones"/>
            <author fullname="J. Bradley" initials="J." surname="Bradley"/>
            <author fullname="N. Sakimura" initials="N." surname="Sakimura"/>
            <date month="May" year="2015"/>
            <abstract>
              <t indent="0">JSON Web Token (JWT) is a compact, URL-safe means of representing claims to be transferred between two parties.  The claims in a JWT are encoded as a JSON object that is used as the payload of a JSON Web Signature (JWS) structure or as the plaintext of a JSON Web Encryption (JWE) structure, enabling the claims to be digitally signed or integrity protected with a Message Authentication Code (MAC) and/or encrypted.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="7519"/>
          <seriesInfo name="DOI" value="10.17487/RFC7519"/>
        </reference>
        <reference anchor="RFC7662" target="https://www.rfc-editor.org/info/rfc7662" quoteTitle="true" derivedAnchor="RFC7662">
          <front>
            <title>OAuth 2.0 Token Introspection</title>
            <author fullname="J. Richer" initials="J." role="editor" surname="Richer"/>
            <date month="October" year="2015"/>
            <abstract>
              <t indent="0">This specification defines a method for a protected resource to query an OAuth 2.0 authorization server to determine the active state of an OAuth 2.0 token and to determine meta-information about this token.  OAuth 2.0 deployments can use this method to convey information about the authorization context of the token from the authorization server to the protected resource.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="7662"/>
          <seriesInfo name="DOI" value="10.17487/RFC7662"/>
        </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="RFC8152" target="https://www.rfc-editor.org/info/rfc8152" quoteTitle="true" derivedAnchor="RFC8152">
          <front>
            <title>CBOR Object Signing and Encryption (COSE)</title>
            <author fullname="J. Schaad" initials="J." surname="Schaad"/>
            <date month="July" year="2017"/>
            <abstract>
              <t indent="0">Concise Binary Object Representation (CBOR) is a data format designed for small code size and small message size.  There is a need for the ability to have basic security services defined for this data format.  This document defines the CBOR Object Signing and Encryption (COSE) protocol.  This specification describes how to create and process signatures, message authentication codes, and encryption using CBOR for serialization.  This specification additionally describes how to represent cryptographic keys using CBOR.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8152"/>
          <seriesInfo name="DOI" value="10.17487/RFC8152"/>
        </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="RFC8693" target="https://www.rfc-editor.org/info/rfc8693" quoteTitle="true" derivedAnchor="RFC8693">
          <front>
            <title>OAuth 2.0 Token Exchange</title>
            <author fullname="M. Jones" initials="M." surname="Jones"/>
            <author fullname="A. Nadalin" initials="A." surname="Nadalin"/>
            <author fullname="B. Campbell" initials="B." role="editor" surname="Campbell"/>
            <author fullname="J. Bradley" initials="J." surname="Bradley"/>
            <author fullname="C. Mortimore" initials="C." surname="Mortimore"/>
            <date month="January" year="2020"/>
            <abstract>
              <t indent="0">This specification defines a protocol for an HTTP- and JSON-based Security Token Service (STS) by defining how to request and obtain security tokens from OAuth 2.0 authorization servers, including security tokens employing impersonation and delegation.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8693"/>
          <seriesInfo name="DOI" value="10.17487/RFC8693"/>
        </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="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="RFC9201" target="https://www.rfc-editor.org/info/rfc9201" quoteTitle="true" derivedAnchor="RFC9201">
          <front>
            <title>Additional OAuth Parameters for Authentication and Authorization in 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-9.2">
        <name slugifiedName="name-informative-references">Informative References</name>
        <reference anchor="BLE" target="https://www.bluetooth.com/specifications/bluetooth-core-specification/" quoteTitle="true" derivedAnchor="BLE">
          <front>
            <title>Core Specification 5.3</title>
            <author>
              <organization showOnFrontPage="true">Bluetooth Special Interest Group</organization>
            </author>
            <date year="2021" month="July"/>
          </front>
          <seriesInfo name="Section" value="4.4"/>
        </reference>
        <reference anchor="I-D.gerdes-ace-dcaf-authorize" quoteTitle="true" target="https://datatracker.ietf.org/doc/html/draft-gerdes-ace-dcaf-authorize-04" derivedAnchor="DCAF">
          <front>
            <title>Delegated CoAP Authentication and Authorization Framework (DCAF)</title>
            <author initials="S." surname="Gerdes" fullname="Stefanie Gerdes">
         </author>
            <author initials="O." surname="Bergmann" fullname="Olaf Bergmann">
         </author>
            <author initials="C." surname="Bormann" fullname="Carsten Bormann">
         </author>
            <date month="October" day="19" year="2015"/>
            <abstract>
              <t indent="0">   This specification defines a protocol for delegating client
   authentication and authorization in a constrained environment for
   establishing a Datagram Transport Layer Security (DTLS) channel
   between resource-constrained nodes.  The protocol relies on DTLS to
   transfer authorization information and shared secrets for symmetric
   cryptography between entities in a constrained network.  A resource-
   constrained node can use this protocol to delegate authentication of
   communication peers and management of authorization information to a
   trusted host with less severe limitations regarding processing power
   and memory.

              </t>
            </abstract>
          </front>
          <seriesInfo name="Internet-Draft" value="draft-gerdes-ace-dcaf-authorize-04"/>
          <format type="TXT" target="https://www.ietf.org/archive/id/draft-gerdes-ace-dcaf-authorize-04.txt"/>
          <refcontent>Work in Progress</refcontent>
        </reference>
        <reference anchor="Margi10impact" quoteTitle="true" target="https://doi.org/10.1109/ICCCN.2010.5560028" derivedAnchor="Margi10impact">
          <front>
            <title>Impact of Operating Systems on Wireless Sensor Networks (Security) Applications and Testbeds</title>
            <author initials="C." surname="Margi"/>
            <author initials="B." surname="de Oliveira"/>
            <author initials="G." surname="de Sousa"/>
            <author initials="M." surname="Simplicio Jr"/>
            <author initials="P." surname="Barreto"/>
            <author initials="T." surname="Carvalho"/>
            <author initials="M." surname="Naeslund"/>
            <author initials="R." surname="Gold"/>
            <date year="2010" month="August"/>
          </front>
          <seriesInfo name="DOI" value="10.1109/ICCCN.2010.5560028"/>
          <refcontent>Proceedings of the 19th International Conference on Computer
	  Communications and Networks</refcontent>
        </reference>
        <reference anchor="MQTT5.0" target="https://docs.oasis-open.org/mqtt/mqtt/v5.0/mqtt-v5.0.html" quoteTitle="true" derivedAnchor="MQTT5.0">
          <front>
            <title>MQTT Version 5.0</title>
            <author initials="A." surname="Banks"/>
            <author initials="E." surname="Briggs"/>
            <author initials="K." surname="Borgendale"/>
            <author initials="R." surname="Gupta"/>
            <date year="2019" month="March"/>
          </front>
          <refcontent>OASIS Standard</refcontent>
        </reference>
        <reference anchor="I-D.erdtman-oauth-rpcc" quoteTitle="true" target="https://datatracker.ietf.org/doc/html/draft-erdtman-oauth-rpcc-00" derivedAnchor="OAUTH-RPCC">
          <front>
            <title>Raw-Public-Key and Pre-Shared-Key as OAuth client credentials</title>
            <author initials="L." surname="Seitz" fullname="Ludwig Seitz">
              <organization showOnFrontPage="true">RISE SICS</organization>
            </author>
            <author initials="S." surname="Erdtman" fullname="Samuel Erdtman">
              <organization showOnFrontPage="true">Spotify AB</organization>
            </author>
            <author initials="M." surname="Tiloca" fullname="Marco Tiloca">
              <organization showOnFrontPage="true">RISE SICS AB</organization>
            </author>
            <date month="November" day="21" year="2017"/>
            <abstract>
              <t indent="0">   This document describes Transport Layer Security (TLS) authentication
   using Raw-Public-Key and Pre-Shared-Key as new mechanisms for OAuth
   client authentication.  Although defined for TLS the mechanisms are
   equally applicable for DTLS.

              </t>
            </abstract>
          </front>
          <seriesInfo name="Internet-Draft" value="draft-erdtman-oauth-rpcc-00"/>
          <format type="TXT" target="https://www.ietf.org/archive/id/draft-erdtman-oauth-rpcc-00.txt"/>
          <refcontent>Work in Progress</refcontent>
        </reference>
        <reference anchor="I-D.ietf-oauth-pop-key-distribution" quoteTitle="true" target="https://datatracker.ietf.org/doc/html/draft-ietf-oauth-pop-key-distribution-07" derivedAnchor="POP-KEY-DIST">
          <front>
            <title>OAuth 2.0 Proof-of-Possession: Authorization Server to Client Key Distribution</title>
            <author initials="J." surname="Bradley" fullname="John Bradley">
              <organization showOnFrontPage="true">Ping Identity</organization>
            </author>
            <author initials="P." surname="Hunt" fullname="Phil Hunt">
              <organization showOnFrontPage="true">Oracle Corporation</organization>
            </author>
            <author initials="M." surname="Jones" fullname="Michael Jones">
              <organization showOnFrontPage="true">Microsoft</organization>
            </author>
            <author initials="H." surname="Tschofenig" fullname="Hannes Tschofenig">
              <organization showOnFrontPage="true">Arm Ltd.</organization>
            </author>
            <author initials="M." surname="Meszaros" fullname="Mihaly Meszaros">
              <organization showOnFrontPage="true">GITDA</organization>
            </author>
            <date month="March" day="27" year="2019"/>
            <abstract>
              <t indent="0">   RFC 6750 specified the bearer token concept for securing access to
   protected resources.  Bearer tokens need to be protected in transit
   as well as at rest.  When a client requests access to a protected
   resource it hands-over the bearer token to the resource server.

   The OAuth 2.0 Proof-of-Possession security concept extends bearer
   token security and requires the client to demonstrate possession of a
   key when accessing a protected resource.

              </t>
            </abstract>
          </front>
          <seriesInfo name="Internet-Draft" value="draft-ietf-oauth-pop-key-distribution-07"/>
          <format type="TXT" target="https://www.ietf.org/archive/id/draft-ietf-oauth-pop-key-distribution-07.txt"/>
          <refcontent>Work in Progress</refcontent>
        </reference>
        <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="RFC6690" target="https://www.rfc-editor.org/info/rfc6690" quoteTitle="true" derivedAnchor="RFC6690">
          <front>
            <title>Constrained RESTful Environments (CoRE) Link Format</title>
            <author fullname="Z. Shelby" initials="Z." surname="Shelby"/>
            <date month="August" year="2012"/>
            <abstract>
              <t indent="0">This specification defines Web Linking using a link format for use by constrained web servers to describe hosted resources, their attributes, and other relationships between links.  Based on the HTTP Link Header field defined in RFC 5988, the Constrained RESTful Environments (CoRE) Link Format is carried as a payload and is assigned an Internet media type. "RESTful" refers to the Representational State Transfer (REST) architecture.  A well-known URI is defined as a default entry point for requesting the links hosted by a server. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="6690"/>
          <seriesInfo name="DOI" value="10.17487/RFC6690"/>
        </reference>
        <reference anchor="RFC6819" target="https://www.rfc-editor.org/info/rfc6819" quoteTitle="true" derivedAnchor="RFC6819">
          <front>
            <title>OAuth 2.0 Threat Model and Security Considerations</title>
            <author fullname="T. Lodderstedt" initials="T." role="editor" surname="Lodderstedt"/>
            <author fullname="M. McGloin" initials="M." surname="McGloin"/>
            <author fullname="P. Hunt" initials="P." surname="Hunt"/>
            <date month="January" year="2013"/>
            <abstract>
              <t indent="0">This document gives additional security considerations for OAuth, beyond those in the OAuth 2.0 specification, based on a comprehensive threat model for the OAuth 2.0 protocol.  This document is not an Internet Standards Track specification; it is published for informational purposes.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="6819"/>
          <seriesInfo name="DOI" value="10.17487/RFC6819"/>
        </reference>
        <reference anchor="RFC7009" target="https://www.rfc-editor.org/info/rfc7009" quoteTitle="true" derivedAnchor="RFC7009">
          <front>
            <title>OAuth 2.0 Token Revocation</title>
            <author fullname="T. Lodderstedt" initials="T." role="editor" surname="Lodderstedt"/>
            <author fullname="S. Dronia" initials="S." surname="Dronia"/>
            <author fullname="M. Scurtescu" initials="M." surname="Scurtescu"/>
            <date month="August" year="2013"/>
            <abstract>
              <t indent="0">This document proposes an additional endpoint for OAuth authorization servers, which allows clients to notify the authorization server that a previously obtained refresh or access token is no longer needed.  This allows the authorization server to clean up security credentials.  A revocation request will invalidate the actual token and, if applicable, other tokens based on the same authorization grant.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="7009"/>
          <seriesInfo name="DOI" value="10.17487/RFC7009"/>
        </reference>
        <reference anchor="RFC7228" target="https://www.rfc-editor.org/info/rfc7228" quoteTitle="true" derivedAnchor="RFC7228">
          <front>
            <title>Terminology for Constrained-Node Networks</title>
            <author fullname="C. Bormann" initials="C." surname="Bormann"/>
            <author fullname="M. Ersue" initials="M." surname="Ersue"/>
            <author fullname="A. Keranen" initials="A." surname="Keranen"/>
            <date month="May" year="2014"/>
            <abstract>
              <t indent="0">The Internet Protocol Suite is increasingly used on small devices with severe constraints on power, memory, and processing resources, creating constrained-node networks.  This document provides a number of basic terms that have been useful in the standardization work for constrained-node networks.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="7228"/>
          <seriesInfo name="DOI" value="10.17487/RFC7228"/>
        </reference>
        <reference anchor="RFC7521" target="https://www.rfc-editor.org/info/rfc7521" quoteTitle="true" derivedAnchor="RFC7521">
          <front>
            <title>Assertion Framework for OAuth 2.0 Client Authentication and Authorization Grants</title>
            <author fullname="B. Campbell" initials="B." surname="Campbell"/>
            <author fullname="C. Mortimore" initials="C." surname="Mortimore"/>
            <author fullname="M. Jones" initials="M." surname="Jones"/>
            <author fullname="Y. Goland" initials="Y." surname="Goland"/>
            <date month="May" year="2015"/>
            <abstract>
              <t indent="0">This specification provides a framework for the use of assertions with OAuth 2.0 in the form of a new client authentication mechanism and a new authorization grant type. Mechanisms are specified for transporting assertions during interactions with a token endpoint; general processing rules are also specified.</t>
              <t indent="0">The intent of this specification is to provide a common framework for OAuth 2.0 to interwork with other identity systems using assertions and to provide alternative client authentication mechanisms.</t>
              <t indent="0">Note that this specification only defines abstract message flows and processing rules. In order to be implementable, companion specifications are necessary to provide the corresponding concrete instantiations.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="7521"/>
          <seriesInfo name="DOI" value="10.17487/RFC7521"/>
        </reference>
        <reference anchor="RFC7591" target="https://www.rfc-editor.org/info/rfc7591" quoteTitle="true" derivedAnchor="RFC7591">
          <front>
            <title>OAuth 2.0 Dynamic Client Registration Protocol</title>
            <author fullname="J. Richer" initials="J." role="editor" surname="Richer"/>
            <author fullname="M. Jones" initials="M." surname="Jones"/>
            <author fullname="J. Bradley" initials="J." surname="Bradley"/>
            <author fullname="M. Machulak" initials="M." surname="Machulak"/>
            <author fullname="P. Hunt" initials="P." surname="Hunt"/>
            <date month="July" year="2015"/>
            <abstract>
              <t indent="0">This specification defines mechanisms for dynamically registering OAuth 2.0 clients with authorization servers.  Registration requests send a set of desired client metadata values to the authorization server.  The resulting registration responses return a client identifier to use at the authorization server and the client metadata values registered for the client.  The client can then use this registration information to communicate with the authorization server using the OAuth 2.0 protocol.  This specification also defines a set of common client metadata fields and values for clients to use during registration.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="7591"/>
          <seriesInfo name="DOI" value="10.17487/RFC7591"/>
        </reference>
        <reference anchor="RFC7641" target="https://www.rfc-editor.org/info/rfc7641" quoteTitle="true" derivedAnchor="RFC7641">
          <front>
            <title>Observing Resources in the Constrained Application Protocol (CoAP)</title>
            <author fullname="K. Hartke" initials="K." surname="Hartke"/>
            <date month="September" year="2015"/>
            <abstract>
              <t indent="0">The Constrained Application Protocol (CoAP) is a RESTful application protocol for constrained nodes and networks.  The state of a resource on a CoAP server can change over time.  This document specifies a simple protocol extension for CoAP that enables CoAP clients to "observe" resources, i.e., to retrieve a representation of a resource and keep this representation updated by the server over a period of time.  The protocol follows a best-effort approach for sending new representations to clients and provides eventual consistency between the state observed by each client and the actual resource state at the server.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="7641"/>
          <seriesInfo name="DOI" value="10.17487/RFC7641"/>
        </reference>
        <reference anchor="RFC7744" target="https://www.rfc-editor.org/info/rfc7744" quoteTitle="true" derivedAnchor="RFC7744">
          <front>
            <title>Use Cases for Authentication and Authorization in Constrained Environments</title>
            <author fullname="L. Seitz" initials="L." role="editor" surname="Seitz"/>
            <author fullname="S. Gerdes" initials="S." role="editor" surname="Gerdes"/>
            <author fullname="G. Selander" initials="G." surname="Selander"/>
            <author fullname="M. Mani" initials="M." surname="Mani"/>
            <author fullname="S. Kumar" initials="S." surname="Kumar"/>
            <date month="January" year="2016"/>
            <abstract>
              <t indent="0">Constrained devices are nodes with limited processing power, storage space, and transmission capacities. In many cases, these devices do not provide user interfaces, and they are often intended to interact without human intervention.</t>
              <t indent="0">This document includes a collection of representative use cases for authentication and authorization in constrained environments. These use cases aim at identifying authorization problems that arise during the life cycle of a constrained device and are intended to provide a guideline for developing a comprehensive authentication and authorization solution for this class of scenarios.</t>
              <t indent="0">Where specific details are relevant, it is assumed that the devices use the Constrained Application Protocol (CoAP) as a communication protocol. However, most conclusions apply generally.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="7744"/>
          <seriesInfo name="DOI" value="10.17487/RFC7744"/>
        </reference>
        <reference anchor="RFC7959" target="https://www.rfc-editor.org/info/rfc7959" quoteTitle="true" derivedAnchor="RFC7959">
          <front>
            <title>Block-Wise Transfers in the Constrained Application Protocol (CoAP)</title>
            <author fullname="C. Bormann" initials="C." surname="Bormann"/>
            <author fullname="Z. Shelby" initials="Z." role="editor" surname="Shelby"/>
            <date month="August" year="2016"/>
            <abstract>
              <t indent="0">The Constrained Application Protocol (CoAP) is a RESTful transfer protocol for constrained nodes and networks. Basic CoAP messages work well for small payloads from sensors and actuators; however, applications will need to transfer larger payloads occasionally -- for instance, for firmware updates. In contrast to HTTP, where TCP does the grunt work of segmenting and resequencing, CoAP is based on datagram transports such as UDP or Datagram Transport Layer Security (DTLS). These transports only offer fragmentation, which is even more problematic in constrained nodes and networks, limiting the maximum size of resource representations that can practically be transferred.</t>
              <t indent="0">Instead of relying on IP fragmentation, this specification extends basic CoAP with a pair of "Block" options for transferring multiple blocks of information from a resource representation in multiple request-response pairs. In many important cases, the Block options enable a server to be truly stateless: the server can handle each block transfer separately, with no need for a connection setup or other server-side memory of previous block transfers. Essentially, the Block options provide a minimal way to transfer larger representations in a block-wise fashion.</t>
              <t indent="0">A CoAP implementation that does not support these options generally is limited in the size of the representations that can be exchanged, so there is an expectation that the Block options will be widely used in CoAP implementations. Therefore, this specification updates RFC 7252.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="7959"/>
          <seriesInfo name="DOI" value="10.17487/RFC7959"/>
        </reference>
        <reference anchor="RFC8252" target="https://www.rfc-editor.org/info/rfc8252" quoteTitle="true" derivedAnchor="RFC8252">
          <front>
            <title>OAuth 2.0 for Native Apps</title>
            <author fullname="W. Denniss" initials="W." surname="Denniss"/>
            <author fullname="J. Bradley" initials="J." surname="Bradley"/>
            <date month="October" year="2017"/>
            <abstract>
              <t indent="0">OAuth 2.0 authorization requests from native apps should only be made through external user-agents, primarily the user's browser.  This specification details the security and usability reasons why this is the case and how native apps and authorization servers can implement this best practice.</t>
            </abstract>
          </front>
          <seriesInfo name="BCP" value="212"/>
          <seriesInfo name="RFC" value="8252"/>
          <seriesInfo name="DOI" value="10.17487/RFC8252"/>
        </reference>
        <reference anchor="RFC8259" target="https://www.rfc-editor.org/info/rfc8259" quoteTitle="true" derivedAnchor="RFC8259">
          <front>
            <title>The JavaScript Object Notation (JSON) Data Interchange Format</title>
            <author fullname="T. Bray" initials="T." role="editor" surname="Bray"/>
            <date month="December" year="2017"/>
            <abstract>
              <t indent="0">JavaScript Object Notation (JSON) is a lightweight, text-based, language-independent data interchange format. It was derived from the ECMAScript Programming Language Standard. JSON defines a small set of formatting rules for the portable representation of structured data.</t>
              <t indent="0">This document removes inconsistencies with other specifications of JSON, repairs specification errors, and offers experience-based interoperability guidance.</t>
            </abstract>
          </front>
          <seriesInfo name="STD" value="90"/>
          <seriesInfo name="RFC" value="8259"/>
          <seriesInfo name="DOI" value="10.17487/RFC8259"/>
        </reference>
        <reference anchor="RFC8414" target="https://www.rfc-editor.org/info/rfc8414" quoteTitle="true" derivedAnchor="RFC8414">
          <front>
            <title>OAuth 2.0 Authorization Server Metadata</title>
            <author fullname="M. Jones" initials="M." surname="Jones"/>
            <author fullname="N. Sakimura" initials="N." surname="Sakimura"/>
            <author fullname="J. Bradley" initials="J." surname="Bradley"/>
            <date month="June" year="2018"/>
            <abstract>
              <t indent="0">This specification defines a metadata format that an OAuth 2.0 client can use to obtain the information needed to interact with an OAuth 2.0 authorization server, including its endpoint locations and authorization server capabilities.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8414"/>
          <seriesInfo name="DOI" value="10.17487/RFC8414"/>
        </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="RFC8516" target="https://www.rfc-editor.org/info/rfc8516" quoteTitle="true" derivedAnchor="RFC8516">
          <front>
            <title>"Too Many Requests" Response Code for the Constrained Application Protocol</title>
            <author fullname="A. Keranen" initials="A." surname="Keranen"/>
            <date month="January" year="2019"/>
            <abstract>
              <t indent="0">A Constrained Application Protocol (CoAP) server can experience temporary overload because one or more clients are sending requests to the server at a higher rate than the server is capable or willing to handle.  This document defines a new CoAP response code for a server to indicate that a client should reduce the rate of requests.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8516"/>
          <seriesInfo name="DOI" value="10.17487/RFC8516"/>
        </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="RFC8628" target="https://www.rfc-editor.org/info/rfc8628" quoteTitle="true" derivedAnchor="RFC8628">
          <front>
            <title>OAuth 2.0 Device Authorization Grant</title>
            <author fullname="W. Denniss" initials="W." surname="Denniss"/>
            <author fullname="J. Bradley" initials="J." surname="Bradley"/>
            <author fullname="M. Jones" initials="M." surname="Jones"/>
            <author fullname="H. Tschofenig" initials="H." surname="Tschofenig"/>
            <date month="August" year="2019"/>
            <abstract>
              <t indent="0">The OAuth 2.0 device authorization grant is designed for Internet- connected devices that either lack a browser to perform a user-agent- based authorization or are input constrained to the extent that requiring the user to input text in order to authenticate during the authorization flow is impractical.  It enables OAuth clients on such devices (like smart TVs, media consoles, digital picture frames, and printers) to obtain user authorization to access protected resources by using a user agent on a separate device.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8628"/>
          <seriesInfo name="DOI" value="10.17487/RFC8628"/>
        </reference>
        <reference anchor="RFC9000" target="https://www.rfc-editor.org/info/rfc9000" quoteTitle="true" derivedAnchor="RFC9000">
          <front>
            <title>QUIC: A UDP-Based Multiplexed and Secure Transport</title>
            <author fullname="J. Iyengar" initials="J." role="editor" surname="Iyengar"/>
            <author fullname="M. Thomson" initials="M." role="editor" surname="Thomson"/>
            <date month="May" year="2021"/>
            <abstract>
              <t indent="0">This document defines the core of the QUIC transport protocol.  QUIC provides applications with flow-controlled streams for structured communication, low-latency connection establishment, and network path migration.  QUIC includes security measures that ensure confidentiality, integrity, and availability in a range of deployment circumstances.  Accompanying documents describe the integration of TLS for key negotiation, loss detection, and an exemplary congestion control algorithm.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="9000"/>
          <seriesInfo name="DOI" value="10.17487/RFC9000"/>
        </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="RFC9113" target="https://www.rfc-editor.org/info/rfc9113" quoteTitle="true" derivedAnchor="RFC9113">
          <front>
            <title>HTTP/2</title>
            <author fullname="M. Thomson" initials="M." role="editor" surname="Thomson"/>
            <author fullname="C. Benfield" initials="C." role="editor" surname="Benfield"/>
            <date month="June" year="2022"/>
            <abstract>
              <t indent="0">This specification describes an optimized expression of the semantics of the Hypertext Transfer Protocol (HTTP), referred to as HTTP version 2 (HTTP/2). HTTP/2 enables a more efficient use of network resources and a reduced latency by introducing field compression and allowing multiple concurrent exchanges on the same connection.</t>
              <t indent="0">This document obsoletes RFCs 7540 and 8740.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="9113"/>
          <seriesInfo name="DOI" value="10.17487/RFC9113"/>
        </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>
        <reference anchor="RFC9202" target="https://www.rfc-editor.org/info/rfc9202" quoteTitle="true" derivedAnchor="RFC9202">
          <front>
            <title>Datagram Transport Layer Security (DTLS) Profile for Authentication and Authorization for Constrained Environments (ACE)</title>
            <author initials="S" surname="Gerdes" fullname="Stefanie Gerdes">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="O" surname="Bergmann" fullname="Olaf Bergmann">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="C" surname="Bormann" fullname="Carsten Bormann">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="G" surname="Selander" fullname="Goeran Selander">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="L" surname="Seitz" fullname="Ludwig Seitz">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2022" month="August"/>
          </front>
          <seriesInfo name="RFC" value="9202"/>
          <seriesInfo name="DOI" value="10.17487/RFC9202"/>
        </reference>
        <reference anchor="RFC9203" target="https://www.rfc-editor.org/info/rfc9203" quoteTitle="true" derivedAnchor="RFC9203">
          <front>
            <title>The Object Security for Constrained RESTful Environments (OSCORE) Profile of the Authentication and Authorization for Constrained Environments (ACE) Framework</title>
            <author initials="F" surname="Palombini" fullname="Francesca Palombini">
              <organization showOnFrontPage="true"/>
            </author>
            <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="M" surname="Gunnarsson" fullname="Martin Gunnarsson">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2022" month="August"/>
          </front>
          <seriesInfo name="RFC" value="9203"/>
          <seriesInfo name="DOI" value="10.17487/RFC9203"/>
        </reference>
      </references>
    </references>
    <section anchor="constraints" numbered="true" toc="include" removeInRFC="false" pn="section-appendix.a">
      <name slugifiedName="name-design-justification">Design Justification</name>
      <t indent="0" pn="section-appendix.a-1">This section provides further insight into the design decisions
     of the solution documented in this document.  <xref target="overview" format="default" sectionFormat="of" derivedContent="Section 3"/>
     lists several building blocks and briefly summarizes their importance.
     The justification for offering some of those building blocks, as opposed
     to using OAuth 2.0 as is, is given below.</t>
      <t indent="0" pn="section-appendix.a-2">Common IoT constraints are:

      </t>
      <dl newline="true" spacing="normal" indent="3" pn="section-appendix.a-3">
        <dt pn="section-appendix.a-3.1">Low Power Radio:</dt>
        <dd pn="section-appendix.a-3.2">
          Many IoT devices are equipped with a small battery that needs
          to last for a long time.  For many constrained wireless devices, the
          highest energy cost is associated to transmitting or receiving
          messages (roughly by a factor of 10 compared to AES)
	  <xref target="Margi10impact" format="default" sectionFormat="of" derivedContent="Margi10impact"/>.  It is therefore important
	  to keep
	  the total communication overhead low, including minimizing the number
	  and size of messages sent and received, which has an impact of choice
	  on the message format and protocol.  By using CoAP over UDP and 
	  CBOR-encoded messages, some of these aspects are addressed.  Security
	  protocols contribute to the communication overhead and can, in some
	  cases, be optimized.  For example, authentication and key
	  establishment may, in certain cases where security requirements
	  allow, be replaced by the provisioning of security context by a trusted
	  third party, using transport or application-layer security.
        </dd>
        <dt pn="section-appendix.a-3.3">Low CPU Speed:</dt>
        <dd pn="section-appendix.a-3.4">
          Some IoT devices are equipped with processors that are significantly
          slower than those found in most current devices on the Internet.
          This typically has implications on what timely cryptographic
          operations a device is capable of performing, which in turn impacts,
          e.g., protocol latency.  Symmetric key cryptography may be used
          instead of the computationally more expensive public key cryptography
          where the security requirements so allow, but this may also require
          support for trusted, third-party-assisted secret key establishment
          using transport- or application-layer security.
        </dd>
        <dt pn="section-appendix.a-3.5">Small Amount of Memory:</dt>
        <dd pn="section-appendix.a-3.6">
          Microcontrollers embedded in IoT devices are often equipped with
          only a small amount of RAM and flash memory, which places limitations on what
          kind of processing can be performed and how much code can be put on
          those devices.  To reduce code size, fewer and smaller protocol
          implementations can be put on the firmware of such a device.  In
          this case, CoAP may be used instead of HTTP,  symmetric-key
          cryptography may be used instead of public-key cryptography, and CBOR may be used
	  instead of
          JSON.  An authentication and key establishment protocol, e.g., the DTLS
          handshake,  in comparison with assisted key establishment, also has
          an impact on memory and code footprints.
        </dd>
        <dt pn="section-appendix.a-3.7">User Interface Limitations:</dt>
        <dd pn="section-appendix.a-3.8">
          Protecting access to resources is both an important security as well
          as privacy feature.  End users and enterprise customers may not want
          to give access to the data collected by their IoT device or to
          functions it may offer to third parties.  Since the classical
          approach of requesting permissions from end users via a rich user
          interface does not work in many IoT deployment scenarios, these
          functions need to be delegated to user-controlled devices that are
          better suitable for such tasks, such as smartphones and tablets.
        </dd>
        <dt pn="section-appendix.a-3.9">Communication Constraints:</dt>
        <dd pn="section-appendix.a-3.10">
          <t indent="0" pn="section-appendix.a-3.10.1">
          In certain constrained settings, an IoT device may not be able to
          communicate with a given device at all times.  Devices may be
          sleeping or just disconnected from the Internet because of general
          lack of connectivity in the area, cost reasons, or security
          reasons, e.g., to avoid an entry point for denial-of-service attacks.
          </t>
          <t indent="0" pn="section-appendix.a-3.10.2">
          The communication interactions this framework builds upon (as shown
          graphically in <xref target="fig_protocolFlow" format="default" sectionFormat="of" derivedContent="Figure 1"/>) may be
	  accomplished
          using a variety of different protocols, and not all parts of the
          message flow are used in all applications due to the communication
          constraints.  Deployments making use of CoAP are expected, but this
	  framework is not
          limited to them.  Other protocols, such as HTTP or
          Bluetooth Smart communication, that do not
          necessarily use IP could also be used.  The latter raises the need
          for application-layer security over the various interfaces.</t>
        </dd>
      </dl>
      <t indent="0" pn="section-appendix.a-4">In the light of these constraints, we have made the following design
      decisions:</t>
      <dl newline="true" spacing="normal" indent="3" pn="section-appendix.a-5">
        <dt pn="section-appendix.a-5.1">CBOR, COSE, CWT:</dt>
        <dd pn="section-appendix.a-5.2">
	  When using this framework, it is <bcp14>RECOMMENDED</bcp14> to use CBOR 
	  <xref target="RFC8949" format="default" sectionFormat="of" derivedContent="RFC8949"/> as the data format.  Where CBOR data
	  needs to be
	  protected, the use of COSE <xref target="RFC8152" format="default" sectionFormat="of" derivedContent="RFC8152"/> is
	  <bcp14>RECOMMENDED</bcp14>. 
	  Furthermore, where self-contained tokens are needed, it is
	  <bcp14>RECOMMENDED</bcp14>
	  to use CWT <xref target="RFC8392" format="default" sectionFormat="of" derivedContent="RFC8392"/>.  These measures aim
	  at reducing
	  the size of messages sent over the wire, the RAM size of data objects
	  that need to be kept in memory, and the size of libraries that devices
	  need to support.
       </dd>
        <dt pn="section-appendix.a-5.3">CoAP:</dt>
        <dd pn="section-appendix.a-5.4">
	  When using this framework, it is <bcp14>RECOMMENDED</bcp14> to use CoAP 
	  <xref target="RFC7252" format="default" sectionFormat="of" derivedContent="RFC7252"/> instead of HTTP.  This does not
	  preclude the
	  use of other protocols specifically aimed at constrained devices,
	  e.g., Bluetooth Low Energy (see <xref target="coap" format="default" sectionFormat="of" derivedContent="Section 3.2"/>). 
	  This aims
	  again at reducing the size of messages sent over the wire, the RAM size
	  of data objects that need to be kept in memory, and the size of 
	  libraries that devices need to support.
        </dd>
        <dt pn="section-appendix.a-5.5">Access Information:</dt>
        <dd pn="section-appendix.a-5.6">
	  This framework defines the name "Access Information" for data
	  concerning the RS that the AS returns to the client in an access
	  token response (see  <xref target="tokenResponse" format="default" sectionFormat="of" derivedContent="Section 5.8.2"/>).  This
	  aims at
	  enabling scenarios where a powerful client supporting multiple
	  profiles needs to interact with an RS for which it does not know the
	  supported profiles and the raw public key.
        </dd>
        <dt pn="section-appendix.a-5.7">Proof of Possession:</dt>
        <dd pn="section-appendix.a-5.8">
	  This framework makes use of proof-of-possession tokens, using
	  the <tt>cnf</tt> claim <xref target="RFC8747" format="default" sectionFormat="of" derivedContent="RFC8747"/>.  A request
	  parameter <tt>cnf</tt> and a Response parameter <tt>cnf</tt>, both having a
	  value space semantically and syntactically identical to the <tt>cnf</tt>
	  claim, are defined for the token endpoint to allow requesting and
	  stating confirmation keys.  This aims at making token theft harder.
	  Token theft is specifically relevant in constrained use cases, as
	  communication often passes through middleboxes, which could be able
	  to steal bearer tokens and use them to gain unauthorized access.
        </dd>
        <dt pn="section-appendix.a-5.9">Authz-Info endpoint:</dt>
        <dd pn="section-appendix.a-5.10">
	  This framework introduces a new way of providing access tokens
	  to an RS by exposing an authz-info endpoint to which access tokens
	  can be POSTed.  This aims at reducing the size of the request
	  message and the code complexity at the RS.  The size of the request
	  message is problematic, since many constrained protocols have severe
	  message size limitations at the physical layer (e.g., in the order of
	  100 bytes). This means that larger packets get fragmented, which in
	  turn combines badly with the high rate of packet loss and the
	  need to retransmit the whole message if one packet gets lost.
	  Thus, separating sending of the request and sending of the access
	  tokens helps to reduce fragmentation.
        </dd>
        <dt pn="section-appendix.a-5.11">Client Credentials Grant:</dt>
        <dd pn="section-appendix.a-5.12">
	  In this framework, the use of the client credentials grant is
	  <bcp14>RECOMMENDED</bcp14> for machine-to-machine communication use cases,
	  where 
	  manual intervention of the resource owner to produce a grant token is
	  not feasible.  The intention is that the resource owner would instead
	  prearrange authorization with the AS based on the client's own
	  credentials.  The client can then (without manual intervention) obtain
	  access tokens from the AS.
        </dd>
        <dt pn="section-appendix.a-5.13">Introspection:</dt>
        <dd pn="section-appendix.a-5.14">
	  In this framework, the use of access token introspection is
	  <bcp14>RECOMMENDED</bcp14>
	  in cases where the client is constrained in a way that it cannot
	  easily obtain new access tokens (i.e., it has connectivity issues
	  that prevent it from communicating with the AS). In that case,
	  it is <bcp14>RECOMMENDED</bcp14> to use a long-term token that could be a
	  simple reference.  The RS is assumed to be able to communicate
	  with the AS and can therefore perform introspection in order to
	  learn the claims associated with the token reference.  The advantage
	  of such an approach is that the resource owner can change the claims
	  associated to the token reference without having to be in contact
	  with the client, thus granting or revoking access rights.
        </dd>
      </dl>
    </section>
    <section anchor="app_rolesAndResponsibilities" numbered="true" toc="include" removeInRFC="false" pn="section-appendix.b">
      <name slugifiedName="name-roles-and-responsibilities">Roles and Responsibilities</name>
      <dl newline="true" spacing="normal" indent="3" pn="section-appendix.b-1">
        <dt pn="section-appendix.b-1.1">Resource Owner</dt>
        <dd pn="section-appendix.b-1.2">
          <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-appendix.b-1.2.1">
            <li pn="section-appendix.b-1.2.1.1">Make sure that the RS is registered at the AS.  This includes
	    making known to the AS which profiles, token_type, scopes, and
	    key types (symmetric/asymmetric) the RS supports. Also making
	    it known to the AS which audience(s) the RS identifies itself
	    with.</li>
            <li pn="section-appendix.b-1.2.1.2">Make sure that clients can discover the AS that is in charge
	    of the RS.</li>
            <li pn="section-appendix.b-1.2.1.3">If the client-credentials grant is used, make sure that the AS
	    has the necessary, up-to-date access control policies for the
	    RS.</li>
          </ul>
        </dd>
        <dt pn="section-appendix.b-1.3">Requesting Party</dt>
        <dd pn="section-appendix.b-1.4">
          <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-appendix.b-1.4.1">
            <li pn="section-appendix.b-1.4.1.1">Make sure that the client is provisioned the necessary
	    credentials to authenticate to the AS.</li>
            <li pn="section-appendix.b-1.4.1.2">Make sure that the client is configured to follow the security
	    requirements of the requesting party when issuing requests
	    (e.g., minimum communication security requirements or trust
	    anchors).</li>
            <li pn="section-appendix.b-1.4.1.3">Register the client at the AS.  This includes making known to
	    the AS which profiles, token_types, and key types
	    (symmetric/asymmetric) for the client.</li>
          </ul>
        </dd>
        <dt pn="section-appendix.b-1.5">Authorization Server</dt>
        <dd pn="section-appendix.b-1.6">
          <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-appendix.b-1.6.1">
            <li pn="section-appendix.b-1.6.1.1">Register the RS and manage corresponding security contexts.</li>
            <li pn="section-appendix.b-1.6.1.2">Register clients and authentication credentials.</li>
            <li pn="section-appendix.b-1.6.1.3">Allow resource owners to configure and update access control
	    policies related to their registered RSs.</li>
            <li pn="section-appendix.b-1.6.1.4">Expose the token endpoint to allow  clients to request
	    tokens.</li>
            <li pn="section-appendix.b-1.6.1.5">Authenticate clients that wish to request a token.</li>
            <li pn="section-appendix.b-1.6.1.6">Process a token request using the authorization
	    policies configured for the RS.</li>
            <li pn="section-appendix.b-1.6.1.7">Optionally, expose the introspection endpoint that allows
	    RSs to submit token introspection requests.</li>
            <li pn="section-appendix.b-1.6.1.8">If providing an introspection endpoint, authenticate RSs that
	    wish to get an introspection response.</li>
            <li pn="section-appendix.b-1.6.1.9">If providing an introspection endpoint, process token
	    introspection requests.</li>
            <li pn="section-appendix.b-1.6.1.10">Optionally, handle token revocation.</li>
            <li pn="section-appendix.b-1.6.1.11">Optionally, provide discovery metadata. See <xref target="RFC8414" format="default" sectionFormat="of" derivedContent="RFC8414"/>.</li>
            <li pn="section-appendix.b-1.6.1.12">Optionally, handle refresh tokens.</li>
          </ul>
        </dd>
        <dt pn="section-appendix.b-1.7">Client</dt>
        <dd pn="section-appendix.b-1.8">
          <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-appendix.b-1.8.1">
            <li pn="section-appendix.b-1.8.1.1">Discover the AS in charge of the RS that is to be targeted with
	    a request.</li>
            <li pn="section-appendix.b-1.8.1.2">
              <t indent="0" pn="section-appendix.b-1.8.1.2.1">Submit the token request (see step (A) of
	    <xref target="fig_protocolFlow" format="default" sectionFormat="of" derivedContent="Figure 1"/>).
              </t>
              <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-appendix.b-1.8.1.2.2">
                <li pn="section-appendix.b-1.8.1.2.2.1">Authenticate to the AS.</li>
                <li pn="section-appendix.b-1.8.1.2.2.2">Optionally (if not preconfigured), specify which RS, which
		resource(s), and which action(s) the request(s) will
		target.</li>
                <li pn="section-appendix.b-1.8.1.2.2.3">If raw public keys (RPKs) or certificates are used, make sure
		the AS has the right RPK or certificate for this client.</li>
              </ul>
            </li>
            <li pn="section-appendix.b-1.8.1.3">
              <t indent="0" pn="section-appendix.b-1.8.1.3.1">Process the access token and Access Information (see step (B)
	    of <xref target="fig_protocolFlow" format="default" sectionFormat="of" derivedContent="Figure 1"/>).
              </t>
              <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-appendix.b-1.8.1.3.2">
                <li pn="section-appendix.b-1.8.1.3.2.1">Check that the Access Information provides the necessary
		security parameters (e.g., PoP key or information on
		communication security protocols supported by the RS).</li>
                <li pn="section-appendix.b-1.8.1.3.2.2">Safely store the proof-of-possession key.</li>
                <li pn="section-appendix.b-1.8.1.3.2.3">If provided by the AS, safely store the refresh token.</li>
              </ul>
            </li>
            <li pn="section-appendix.b-1.8.1.4">
              <t indent="0" pn="section-appendix.b-1.8.1.4.1">Send the token and request to the RS (see step (C) of
	    <xref target="fig_protocolFlow" format="default" sectionFormat="of" derivedContent="Figure 1"/>).
              </t>
              <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-appendix.b-1.8.1.4.2">
                <li pn="section-appendix.b-1.8.1.4.2.1">Authenticate towards the RS (this could coincide with the
		proof-of-possession process).</li>
                <li pn="section-appendix.b-1.8.1.4.2.2">Transmit the token as specified by the AS (default is to the
		authz-info endpoint; alternative options are specified by
		profiles).</li>
                <li pn="section-appendix.b-1.8.1.4.2.3">Perform the proof-of-possession procedure as specified by
		the profile in use (this may already have been taken care
		of through the authentication procedure).</li>
              </ul>
            </li>
            <li pn="section-appendix.b-1.8.1.5">Process the RS response (see step (F) of
	    <xref target="fig_protocolFlow" format="default" sectionFormat="of" derivedContent="Figure 1"/>) of the RS.</li>
          </ul>
        </dd>
        <dt pn="section-appendix.b-1.9">Resource Server</dt>
        <dd pn="section-appendix.b-1.10">
          <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-appendix.b-1.10.1">
            <li pn="section-appendix.b-1.10.1.1">Expose a way to submit access tokens. By default, this is
	    the authz-info endpoint.</li>
            <li pn="section-appendix.b-1.10.1.2">
              <t indent="0" pn="section-appendix.b-1.10.1.2.1">Process an access token.
              </t>
              <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-appendix.b-1.10.1.2.2">
                <li pn="section-appendix.b-1.10.1.2.2.1">Verify the token is from a recognized AS.</li>
                <li pn="section-appendix.b-1.10.1.2.2.2">Check the token's integrity.</li>
                <li pn="section-appendix.b-1.10.1.2.2.3">Verify that the token applies to this RS.</li>
                <li pn="section-appendix.b-1.10.1.2.2.4">Check that the token has not expired (if the token provides
		expiration information).</li>
                <li pn="section-appendix.b-1.10.1.2.2.5">Store the token so that it can be retrieved in the context
		of a matching request.</li>
              </ul>
              <t indent="0" pn="section-appendix.b-1.10.1.2.3">
	      Note: The order proposed here is not normative; any process
	      that arrives at an equivalent result can be used.  A noteworthy
	      consideration is whether one can use cheap operations early on to
	      quickly discard nonapplicable or invalid tokens before
	      performing expensive cryptographic operations (e.g., doing an
	      expiration check before verifying a signature).
              </t>
            </li>
            <li pn="section-appendix.b-1.10.1.3">
              <t indent="0" pn="section-appendix.b-1.10.1.3.1">Process a request.
              </t>
              <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-appendix.b-1.10.1.3.2">
                <li pn="section-appendix.b-1.10.1.3.2.1">Set up communication security with the client.</li>
                <li pn="section-appendix.b-1.10.1.3.2.2">Authenticate the client.</li>
                <li pn="section-appendix.b-1.10.1.3.2.3">Match the client against existing tokens.</li>
                <li pn="section-appendix.b-1.10.1.3.2.4">Check that tokens belonging to the client actually
		authorize the requested action.</li>
                <li pn="section-appendix.b-1.10.1.3.2.5">Optionally, check that the matching tokens are still valid,
		using introspection (if this is possible.)</li>
              </ul>
            </li>
            <li pn="section-appendix.b-1.10.1.4">Send a response following the agreed upon communication
	    security mechanism(s).</li>
            <li pn="section-appendix.b-1.10.1.5">Safely store credentials, such as raw public keys, for
	    authentication or proof-of-possession keys linked to access
	    tokens.</li>
          </ul>
        </dd>
      </dl>
    </section>
    <section anchor="app_profileRequirements" numbered="true" toc="include" removeInRFC="false" pn="section-appendix.c">
      <name slugifiedName="name-requirements-on-profiles">Requirements on Profiles</name>
      <t indent="0" pn="section-appendix.c-1">This section lists the requirements on profiles of this framework
      for the convenience of profile designers.</t>
      <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-appendix.c-2">
        <li pn="section-appendix.c-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 Sections <xref target="asDiscovery" format="counter" sectionFormat="of" derivedContent="5.1"/> and <xref target="specs" format="counter" sectionFormat="of" derivedContent="4"/></li>
        <li pn="section-appendix.c-2.2">Optionally, specify new grant types
	(<xref target="authorizationGrants" format="default" sectionFormat="of" derivedContent="Section 5.4"/>).</li>
        <li pn="section-appendix.c-2.3">Optionally, define the use of client certificates as client credential
	type (<xref target="clientCredentials" format="default" sectionFormat="of" derivedContent="Section 5.5"/>).</li>
        <li pn="section-appendix.c-2.4">Specify the communication protocol the client and RS must use
	(e.g., CoAP) (Sections <xref target="oauthProfile" format="counter" sectionFormat="of" derivedContent="5"/> and <xref target="paramProfile" format="counter" sectionFormat="of" derivedContent="5.8.4.3"/>).</li>
        <li pn="section-appendix.c-2.5">Specify the security protocol the client and RS must use to protect
	their communication (e.g., OSCORE or DTLS).  This must provide
	encryption and integrity and replay protection (<xref target="paramProfile" format="default" sectionFormat="of" derivedContent="Section 5.8.4.3"/>).</li>
        <li pn="section-appendix.c-2.6">Specify how the client and the RS mutually authenticate (<xref target="specs" format="default" sectionFormat="of" derivedContent="Section 4"/>).</li>
        <li pn="section-appendix.c-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 (<xref target="paramTokenType" format="default" sectionFormat="of" derivedContent="Section 5.8.4.2"/>).</li>
        <li pn="section-appendix.c-2.8">Specify a unique <tt>ace_profile</tt> identifier (<xref target="paramProfile" format="default" sectionFormat="of" derivedContent="Section 5.8.4.3"/>).</li>
        <li pn="section-appendix.c-2.9">If introspection is supported, specify the communication and security
	protocol for introspection (<xref target="introspectionEndpoint" format="default" sectionFormat="of" derivedContent="Section 5.9"/>).</li>
        <li pn="section-appendix.c-2.10">Specify the communication and security protocol for interactions between
	the client and AS. This must provide encryption, integrity protection,
	replay protection,  and a binding between requests and responses (Sections <xref target="oauthProfile" format="counter" sectionFormat="of" derivedContent="5"/> and <xref target="tokenEndpoint" format="counter" sectionFormat="of" derivedContent="5.8"/>).</li>
        <li pn="section-appendix.c-2.11">Specify how/if the authz-info endpoint is protected, including
	how error responses are protected (<xref target="tokenAuthInfoEndpoint" format="default" sectionFormat="of" derivedContent="Section 5.10.1"/>).</li>
        <li pn="section-appendix.c-2.12">Optionally, define other methods of token transport than the authz-info
	endpoint (<xref target="tokenAuthInfoEndpoint" format="default" sectionFormat="of" derivedContent="Section 5.10.1"/>).</li>
      </ul>
    </section>
    <section anchor="app_registration" numbered="true" toc="include" removeInRFC="false" pn="section-appendix.d">
      <name slugifiedName="name-assumptions-on-as-knowledge">Assumptions on AS Knowledge about the C and RS</name>
      <t indent="0" pn="section-appendix.d-1">This section lists the assumptions on what an AS should know about a
 client and an RS in order to be able to respond to requests to the token
 and introspection endpoints.  How this information is established is out of
 scope for this document.

      </t>
      <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-appendix.d-2">
        <li pn="section-appendix.d-2.1">The identifier of the client or RS.</li>
        <li pn="section-appendix.d-2.2">The profiles that the client or RS supports.</li>
        <li pn="section-appendix.d-2.3">The scopes that the RS supports.</li>
        <li pn="section-appendix.d-2.4">The audiences that the RS identifies with.</li>
        <li pn="section-appendix.d-2.5">The key types (e.g., pre-shared symmetric key, raw public key,
	key length, and other key parameters) that the client or RS supports.</li>
        <li pn="section-appendix.d-2.6">The types of access tokens the RS supports (e.g., CWT).</li>
        <li pn="section-appendix.d-2.7">If the RS supports CWTs, the COSE parameters for the crypto wrapper
	(e.g., algorithm, key-wrap algorithm, and key-length) that the RS supports.</li>
        <li pn="section-appendix.d-2.8">The expiration time for access tokens issued to this RS
	(unless the RS accepts a default time chosen by the AS).</li>
        <li pn="section-appendix.d-2.9">The symmetric key shared between the client and AS (if any).</li>
        <li pn="section-appendix.d-2.10">The symmetric key shared between the RS and AS (if any).</li>
        <li pn="section-appendix.d-2.11">The raw public key of the client or RS (if any).</li>
        <li pn="section-appendix.d-2.12">Whether the RS has synchronized time (and thus is able to use the <tt>exp</tt>
	claim) or not.</li>
      </ul>
    </section>
    <section anchor="app_diffOAuth" numbered="true" toc="include" removeInRFC="false" pn="section-appendix.e">
      <name slugifiedName="name-differences-to-oauth-20">Differences to OAuth 2.0</name>
      <t indent="0" pn="section-appendix.e-1">This document adapts OAuth 2.0 to be suitable for constrained environments.  
      This section lists the main differences from the normative requirements of
      OAuth 2.0.</t>
      <dl newline="true" spacing="normal" indent="3" pn="section-appendix.e-2">
        <dt pn="section-appendix.e-2.1">Use of TLS</dt>
        <dd pn="section-appendix.e-2.2">OAuth 2.0 requires the use of TLS to protect the
	communication between the AS and client when requesting an access token,
	between the client and RS when accessing a resource, and between the AS and RS if
	introspection is used.  This framework requires similar security
	properties but does not require that they be realized with TLS.  
	See <xref target="oauthProfile" format="default" sectionFormat="of" derivedContent="Section 5"/>.</dd>
        <dt pn="section-appendix.e-2.3">Cardinality of <tt>grant_type</tt> parameter</dt>
        <dd pn="section-appendix.e-2.4">In client-to-AS requests 
	using OAuth 2.0, the <tt>grant_type</tt> parameter is required (per 
	<xref target="RFC6749" format="default" sectionFormat="of" derivedContent="RFC6749"/>).  In this framework, this parameter
	is optional.  See <xref target="tokenRequest" format="default" sectionFormat="of" derivedContent="Section 5.8.1"/>.</dd>
        <dt pn="section-appendix.e-2.5">Encoding of <tt>scope</tt> parameter</dt>
        <dd pn="section-appendix.e-2.6">In client-to-AS requests using OAuth
	2.0, the <tt>scope</tt> parameter is string encoded (per 
	<xref target="RFC6749" format="default" sectionFormat="of" derivedContent="RFC6749"/>).  In this framework, this parameter
	may also be
	encoded as a byte string.  See <xref target="tokenRequest" format="default" sectionFormat="of" derivedContent="Section 5.8.1"/>.</dd>
        <dt pn="section-appendix.e-2.7">Cardinality of <tt>token_type</tt> parameter</dt>
        <dd pn="section-appendix.e-2.8">In AS-to-client responses
	using OAuth 2.0, the <tt>token_type</tt> parameter is required (per 
	<xref target="RFC6749" format="default" sectionFormat="of" derivedContent="RFC6749"/>).  In this framework, this parameter
	is
	optional.  See <xref target="tokenResponse" format="default" sectionFormat="of" derivedContent="Section 5.8.2"/>.</dd>
        <dt pn="section-appendix.e-2.9">Access token retention</dt>
        <dd pn="section-appendix.e-2.10">In OAuth 2.0, the access token may be sent with
	every request to the RS. The exact use of access tokens depends on the
	semantics 
	of the application and the session management concept it uses. In this
	framework, 
	the RS must be able to store these tokens for later use.  See
        <xref target="tokenAuthInfoEndpoint" format="default" sectionFormat="of" derivedContent="Section 5.10.1"/>.</dd>
      </dl>
    </section>
    <section anchor="app_options" numbered="true" toc="include" removeInRFC="false" pn="section-appendix.f">
      <name slugifiedName="name-deployment-examples">Deployment Examples</name>
      <t indent="0" pn="section-appendix.f-1">There is a large variety of IoT deployments, as is indicated in
        <xref target="constraints" format="default" sectionFormat="of" derivedContent="Appendix A"/>, and this section highlights a few common
        variants.  This section is not normative but illustrates how the
        framework can be applied.
      </t>
      <t indent="0" pn="section-appendix.f-2">For each of the deployment variants, there are a number of possible
        security setups between clients, resource servers, and authorization
        servers.  The main focus in the following subsections is on how
        authorization of a client request for a resource hosted by an RS is
        performed.  This requires the security of the requests and
        responses between the clients and the RS to be considered.
      </t>
      <t indent="0" pn="section-appendix.f-3">Note: CBOR diagnostic notation is used for examples of requests
          and responses.</t>
      <section anchor="localTokenValidation" numbered="true" toc="include" removeInRFC="false" pn="section-appendix.f.1">
        <name slugifiedName="name-local-token-validation">Local Token Validation</name>
        <t indent="0" pn="section-appendix.f.1-1">In this scenario, the case where the resource server is offline is considered,
	i.e., it is not connected to the AS at the time of the access request.
	This access procedure involves steps (A), (B), (C), and (F) of <xref target="fig_protocolFlow" format="default" sectionFormat="of" derivedContent="Figure 1"/>.</t>
        <t indent="0" pn="section-appendix.f.1-2">Since the resource server must be able to verify the access token locally,
	self-contained access tokens must be used.</t>
        <t indent="0" pn="section-appendix.f.1-3">This example shows the interactions between a client, the
	authorization server, and a temperature sensor acting as a resource server.  Message
	exchanges A and B are shown in <xref target="fig_RSOffline" format="default" sectionFormat="of" derivedContent="Figure 11"/>.</t>
        <dl newline="false" spacing="normal" indent="4" pn="section-appendix.f.1-4">
          <dt pn="section-appendix.f.1-4.1">A:</dt>
          <dd pn="section-appendix.f.1-4.2">
            <t indent="0" pn="section-appendix.f.1-4.2.1">The client first generates a public-private key pair used for
	    communication security with the RS.</t>
            <t indent="0" pn="section-appendix.f.1-4.2.2">The client sends a CoAP POST request to the token endpoint at the AS. 
	    The security
            of this request can be transport or application layer. It is up the
            communication security profile to define. In the example, it is
	    assumed that both the client and AS have performed mutual authentication,
	    e.g., via DTLS.  The request contains the public key of the client and
	    the <tt>audience</tt> parameter set to "tempSensorInLivingRoom", a value that
	    the temperature sensor identifies itself with.  The AS evaluates the
	    request and authorizes the client to access the resource.</t>
          </dd>
          <dt pn="section-appendix.f.1-4.3">B:</dt>
          <dd pn="section-appendix.f.1-4.4">
            <t indent="0" pn="section-appendix.f.1-4.4.1">The AS responds with a 2.05 (Content) response containing the
	    Access Information, including the access token.
	    The PoP access token contains the public key of the client, and the
	    Access Information  contains the public key of the RS.  For communication
	    security, this example uses DTLS RawPublicKey between the client and the
	    RS. The issued token will have a short validity time, i.e., <tt>exp</tt> close
	    to <tt>iat</tt>, in order to mitigate attacks using stolen client credentials.
	    The token includes claims, such as <tt>scope</tt>, with the authorized access
	    that an owner of the temperature device can enjoy.  In this example, the
	    <tt>scope</tt> claim issued by the AS informs the RS that the owner of the
	    token that can prove the possession of a key is authorized to make a GET
	    request against the /temperature resource and a POST request on the
	    /firmware resource.  Note that the syntax and semantics of the <tt>scope</tt> claim
	    are application specific.</t>
            <t indent="0" pn="section-appendix.f.1-4.4.2">Note: In this example, it is assumed that the client knows what resource
	    it wants to access and is therefore able to request specific
	    <tt>audience</tt> and <tt>scope</tt> claims for the access token.</t>
          </dd>
        </dl>
        <figure anchor="fig_RSOffline" align="left" suppress-title="false" pn="figure-11">
          <name slugifiedName="name-token-request-and-response-">Token Request and Response Using Client Credentials</name>
          <artwork align="left" name="" type="" alt="" pn="section-appendix.f.1-5.1">
         Authorization
  Client    Server
    |         |
    |&lt;=======&gt;| DTLS Connection Establishment
    |         |   and mutual authentication
    |         |
A:  +--------&gt;| Header: POST (Code=0.02)
    |  POST   | Uri-Path:"token"
    |         | Content-Format: application/ace+cbor
    |         | Payload: &lt;Request-Payload&gt;
    |         |
B:  |&lt;--------+ Header: 2.05 Content
    |  2.05   | Content-Format: application/ace+cbor
    |         | Payload: &lt;Response-Payload&gt;
    |         |
        </artwork>
        </figure>
        <t indent="0" pn="section-appendix.f.1-6">The information contained in the Request-Payload and the
    Response-Payload is shown in <xref target="fig_RSOfflineReq" format="default" sectionFormat="of" derivedContent="Figure 12"/>.
    Note that the parameter <tt>rs_cnf</tt> from
    <xref target="RFC9201" format="default" sectionFormat="of" derivedContent="RFC9201"/> is used to inform
    the client about the resource server's public key.

        </t>
        <figure anchor="fig_RSOfflineReq" align="left" suppress-title="false" pn="figure-12">
          <name slugifiedName="name-request-and-response-payloa">Request and Response Payload Details</name>
          <sourcecode name="" type="cbor-diag" markers="false" pn="section-appendix.f.1-7.1">
Request-Payload :
{
  / audience / 5 : "tempSensorInLivingRoom",
  / client_id / 24 : "myclient",
  / req_cnf / 4 : {
  / COSE_Key / 1 : {
      / kid / 2 : b64'1Bg8vub9tLe1gHMzV76e',
      / kty / 1 : 2 / EC2 /,
      / crv / -1 : 1 / P-256 /,
      / x / -2 : b64'f83OJ3D2xF1Bg8vub9tLe1gHMzV76e8Tus9uPHvRVEU',
      / y / -3 : b64'x_FEzRu9m36HLN_tue659LNpXW6pCyStikYjKIWI5a0'
    }
  }
}

Response-Payload :
{
  / access_token / 1 : b64'0INDoQEKoQVNKkXfb7xaWqMT'/ .../,
  / rs_cnf / 41 : {
    / COSE_Key / 1 : {
      / kid / 2 : b64'c29tZSBwdWJsaWMga2V5IGlk',
      / kty / 1 : 2 / EC2 /,
      / crv / -1 : 1 / P-256 /,
      / x / -2   : b64'MKBCTNIcKUSDii11ySs3526iDZ8AiTo7Tu6KPAqv7D4',
      / y / -3   : b64'4Etl6SRW2YiLUrN5vfvVHuhp7x8PxltmWWlbbM4IFyM'
    }
  }
}
</sourcecode>
        </figure>
        <t indent="0" pn="section-appendix.f.1-8">The content of the access token is shown
    in <xref target="fig_BothcborMappingValueAsymmetricCWT" format="default" sectionFormat="of" derivedContent="Figure 13"/>.</t>
        <figure anchor="fig_BothcborMappingValueAsymmetricCWT" align="left" suppress-title="false" pn="figure-13">
          <name slugifiedName="name-access-token-including-publ">Access Token Including Public Key of the Client</name>
          <sourcecode name="" type="cbor-diag" markers="false" pn="section-appendix.f.1-9.1">
{
  / aud / 3 : "tempSensorInLivingRoom",
  / iat / 6 : 1563451500,
  / exp / 4 : 1563453000,
  / scope / 9 :  "temperature_g firmware_p",
  / cnf / 8 : {
    / COSE_Key / 1 : {
      / kid / 2 : b64'1Bg8vub9tLe1gHMzV76e',
      / kty / 1 : 2 / EC2 /,
      / crv / -1 : 1 / P-256 /,
      / x / -2 : b64'f83OJ3D2xF1Bg8vub9tLe1gHMzV76e8Tus9uPHvRVEU',
      / y / -3 : b64'x_FEzRu9m36HLN_tue659LNpXW6pCyStikYjKIWI5a0'
    }
  }
}
</sourcecode>
        </figure>
        <t indent="0" pn="section-appendix.f.1-10">Messages C and F are shown in Figures
    <xref target="fig_RSOfflinePostAccessTokenAsymmetric" format="counter" sectionFormat="of" derivedContent="14"/> and
    <xref target="fig_RSOfflineDTLSRequestAndResponse" format="counter" sectionFormat="of" derivedContent="15"/>.</t>
        <dl newline="false" spacing="normal" indent="4" pn="section-appendix.f.1-11">
          <dt pn="section-appendix.f.1-11.1">C:</dt>
          <dd pn="section-appendix.f.1-11.2">
	    The client then sends the PoP access token to the authz-info endpoint at
	    the RS.  This is a plain CoAP POST request, i.e., no transport or
	    application-layer security is used between the client and RS since the token is
	    integrity protected
	    between the AS and RS.  The RS verifies that the PoP access token was
	    created by a
	    known and trusted AS, which it applies to this RS, and that it is valid. 
	    The RS caches
	    the security context together with authorization information about this
	    client contained in the PoP access token.</dd>
        </dl>
        <figure anchor="fig_RSOfflinePostAccessTokenAsymmetric" align="left" suppress-title="false" pn="figure-14">
          <name slugifiedName="name-access-token-provisioning-t">Access Token Provisioning to the RS</name>
          <artwork align="left" name="" type="" alt="" pn="section-appendix.f.1-12.1">
           Resource
 Client     Server
    |         |
C:  +--------&gt;| Header: POST (Code=0.02)
    |  POST   | Uri-Path:"authz-info"
    |         | Payload: 0INDoQEKoQVN ...
    |         |
    |&lt;--------+ Header: 2.04 Changed
    |  2.04   |
    |         |
</artwork>
        </figure>
        <t indent="0" pn="section-appendix.f.1-13">The client and the RS runs the DTLS handshake using the raw
      public keys established in steps B and C.</t>
        <t indent="0" pn="section-appendix.f.1-14">The client sends a CoAP GET request to /temperature on the RS over
      DTLS. The RS verifies that the request is authorized based on
      previously established security context.</t>
        <dl newline="false" spacing="normal" indent="3" pn="section-appendix.f.1-15">
          <dt pn="section-appendix.f.1-15.1">F:</dt>
          <dd pn="section-appendix.f.1-15.2">The RS responds over the same DTLS channel with a CoAP 2.05 Content response
	  containing a resource representation as payload.</dd>
        </dl>
        <figure anchor="fig_RSOfflineDTLSRequestAndResponse" align="left" suppress-title="false" pn="figure-15">
          <name slugifiedName="name-resource-request-and-respon">Resource Request and Response Protected by DTLS</name>
          <artwork align="left" name="" type="" alt="" pn="section-appendix.f.1-16.1">
           Resource
 Client     Server
    |         |
    |&lt;=======&gt;| DTLS Connection Establishment
    |         |   using Raw Public Keys
    |         |
    +--------&gt;| Header: GET (Code=0.01)
    | GET     | Uri-Path: "temperature"
    |         |
    |         |
    |         |
F:  |&lt;--------+ Header: 2.05 Content
    | 2.05    | Payload: &lt;sensor value&gt;
    |         |
      </artwork>
        </figure>
      </section>
      <section anchor="introspectionAidedTokenValidation" numbered="true" toc="include" removeInRFC="false" pn="section-appendix.f.2">
        <name slugifiedName="name-introspection-aided-token-v">Introspection Aided Token Validation</name>
        <t indent="0" pn="section-appendix.f.2-1">In this deployment scenario, it is assumed that a client is not able to
  access the AS at the time of the access request, whereas the RS is assumed
  to be connected to the back-end infrastructure. Thus, the RS can make use of
  token introspection.  This access procedure involves steps (A)-(F) of
  <xref target="fig_protocolFlow" format="default" sectionFormat="of" derivedContent="Figure 1"/> but assumes steps (A) and (B) have been
  carried out during a phase when the client had connectivity to the AS.
        </t>
        <t indent="0" pn="section-appendix.f.2-2">Since the client is assumed to be offline, at least for a certain period of
  time, a preprovisioned access token has to be long lived.  Since the client
  is constrained, the token will not be self-contained (i.e., not a CWT) but
  instead just a reference.  The resource server uses its connectivity to
  learn about the claims associated to the access token by using introspection,
  which is shown in the example below.</t>
        <t indent="0" pn="section-appendix.f.2-3">In the example, interactions between an offline client
    (key fob), an RS (online lock), and an AS is shown.  It is
    assumed that there is a provisioning step where the client has access to the
    AS.  This corresponds to message exchanges A and B, which are shown in
    <xref target="fig_cOffline" format="default" sectionFormat="of" derivedContent="Figure 16"/>.
        </t>
        <t indent="0" pn="section-appendix.f.2-4">Authorization consent from the resource owner can be preconfigured,
    but it can also be provided via an interactive flow with the resource
    owner.  An example of this for the key fob case could be that the
    resource owner has a connected car and buys a generic key to use with the
	car.  To authorize the key fob, the owner connects it to a computer that 
	then provides the UI for the device.  After that, OAuth 2.0 implicit flow
	can be used to authorize the key for the car at the car manufacturer's 
	AS.</t>
        <t indent="0" pn="section-appendix.f.2-5">Note: In this example, the client does not know the exact door it
    will be used to access since the token request is not sent at the
    time of access. So the <tt>scope</tt> and <tt>audience</tt> parameters are set quite
    wide to start with, while tailored values narrowing down the claims to
    the specific RS being accessed can be provided to that RS during
    an introspection step.</t>
        <dl newline="false" spacing="normal" indent="4" pn="section-appendix.f.2-6">
          <dt pn="section-appendix.f.2-6.1">A:</dt>
          <dd pn="section-appendix.f.2-6.2">The client sends a CoAP POST request to the token endpoint at the
	AS.  The request contains the <tt>audience</tt> parameter set to  "PACS1337"
	(Physical Access System (PACS)), a value that identifies the
	physical access control system to which the individual doors are
	connected.  The AS generates an access token as	an opaque string, which
	it can match to the specific client and the targeted audience. It
	furthermore generates a symmetric proof-of-possession key. The
	communication security and authentication between the client and AS
	is assumed to have been	provided at the transport layer (e.g., via DTLS)
	  using a pre-shared security context (pre-shared key (PSK), RPK, or
	  certificate).</dd>
          <dt pn="section-appendix.f.2-6.3">B:</dt>
          <dd pn="section-appendix.f.2-6.4">The AS responds with a CoAP 2.05 Content response, containing as
	payload the Access Information, including the access token and the
	symmetric proof-of-possession key.  Communication security between the C
        and RS will be DTLS and PreSharedKey.  The PoP key is used as the
        PreSharedKey.
        </dd>
        </dl>
        <t indent="0" pn="section-appendix.f.2-7">Note: In this example, we are using a symmetric key for a multi-RS
	audience, which is not recommended normally (see <xref target="audience" format="default" sectionFormat="of" derivedContent="Section 6.9"/>).
	However, in this case, the risk is deemed to be acceptable, since
	all the doors are part of the same physical access control system;
	therefore, the risk of a malicious RS impersonating the client towards
	another RS is low.</t>
        <figure anchor="fig_cOffline" align="left" suppress-title="false" pn="figure-16">
          <name slugifiedName="name-token-request-and-response-u">Token Request and Response Using Client Credentials</name>
          <artwork align="left" name="" type="" alt="" pn="section-appendix.f.2-8.1">
         Authorization
 Client     Server
    |         |
    |&lt;=======&gt;| DTLS Connection Establishment
    |         |   and mutual authentication
    |         |
A:  +--------&gt;| Header: POST (Code=0.02)
    |  POST   | Uri-Path:"token"
    |         | Content-Format: application/ace+cbor
    |         | Payload: &lt;Request-Payload&gt;
    |         |
B:  |&lt;--------+ Header: 2.05 Content
    |         | Content-Format: application/ace+cbor
    |  2.05   | Payload: &lt;Response-Payload&gt;
    |         |
    </artwork>
        </figure>
        <t indent="0" pn="section-appendix.f.2-9">The information contained in the Request-Payload and the
	Response-Payload is shown in <xref target="fig_cOfflineReq" format="default" sectionFormat="of" derivedContent="Figure 17"/>.
        </t>
        <figure anchor="fig_cOfflineReq" align="left" suppress-title="false" pn="figure-17">
          <name slugifiedName="name-request-and-response-payload">Request and Response Payload for the C Offline</name>
          <sourcecode name="" type="cbor-diag" markers="false" pn="section-appendix.f.2-10.1">
Request-Payload:
{
  / client_id / 24 : "keyfob",
  / audience / 5   : "PACS1337"
}

Response-Payload:
{
  / access_token / 1 : b64'VGVzdCB0b2tlbg',
  / cnf / 8 : {
    / COSE_Key / 1 : {
      / kid / 2 : b64'c29tZSBwdWJsaWMga2V5IGlk',
      / kty / 1 : 4 / Symmetric /,
      / k / -1  : b64'ZoRSOrFzN_FzUA5XKMYoVHyzff5oRJxl-IXRtztJ6uE'
    }
  }
}
</sourcecode>
        </figure>
        <t indent="0" pn="section-appendix.f.2-11">In this case, the access token is just an opaque byte string referencing
   the authorization information at the AS.</t>
        <dl newline="false" spacing="normal" indent="4" pn="section-appendix.f.2-12">
          <dt pn="section-appendix.f.2-12.1">C:</dt>
          <dd pn="section-appendix.f.2-12.2">Next, the client POSTs the access token to the authz-info
        endpoint in the RS.  This is a plain CoAP request, i.e., no
        DTLS between the client and RS.  Since the token is an opaque string,
        the RS cannot verify it on its own, and thus defers to respond to the
        client with a status code until after step E.</dd>
          <dt pn="section-appendix.f.2-12.3">D:</dt>
          <dd pn="section-appendix.f.2-12.4">The RS sends the token to the introspection
          endpoint on the AS using a CoAP POST request.  In this example, the RS and
	  AS are assumed to have performed mutual authentication using a pre-shared security
	  context (PSK, RPK, or certificate) with the RS acting as the DTLS client.</dd>
          <dt pn="section-appendix.f.2-12.5">E:</dt>
          <dd pn="section-appendix.f.2-12.6">
            <t indent="0" pn="section-appendix.f.2-12.6.1">The AS provides the introspection response (2.05 Content)
	containing parameters about the token.  This includes the confirmation
	key (<tt>cnf</tt>) parameter that allows the RS to verify the client's proof of
	possession in step F. Note that our example in <xref target="fig_cOfflineIntroReq" format="default" sectionFormat="of" derivedContent="Figure 19"/> assumes a preestablished key
	(e.g., one
	used by the client and the RS for a previous token) that is now only
	referenced by its key identifier <tt>kid</tt>.</t>
            <t indent="0" pn="section-appendix.f.2-12.6.2">After receiving message E, the RS responds to the client's POST in
        step C with the CoAP response code 2.01 (Created).</t>
          </dd>
        </dl>
        <figure anchor="fig_cOfflineIntrospection" align="left" suppress-title="false" pn="figure-18">
          <name slugifiedName="name-token-introspection-for-the">Token Introspection for the C Offline</name>
          <artwork align="left" name="" type="" alt="" pn="section-appendix.f.2-13.1">
           Resource
  Client    Server
    |         |
C:  +--------&gt;| Header: POST (T=CON, Code=0.02)
    |  POST   | Uri-Path:"authz-info"
    |         | Payload: b64'VGVzdCB0b2tlbg'
    |         |
    |         |     Authorization
    |         |       Server
    |         |          |
    |      D: +---------&gt;| Header: POST (Code=0.02)
    |         |  POST    | Uri-Path: "introspect"
    |         |          | Content-Format: application/ace+cbor
    |         |          | Payload: &lt;Request-Payload&gt;
    |         |          |
    |      E: |&lt;---------+ Header: 2.05 Content
    |         |  2.05    | Content-Format: application/ace+cbor
    |         |          | Payload: &lt;Response-Payload&gt;
    |         |          |
    |         |
    |&lt;--------+ Header: 2.01 Created
    |  2.01   |
    |         |
</artwork>
        </figure>
        <t indent="0" pn="section-appendix.f.2-14">The information contained in the Request-Payload and the
        Response-Payload is shown in <xref target="fig_cOfflineIntroReq" format="default" sectionFormat="of" derivedContent="Figure 19"/>.

        </t>
        <figure anchor="fig_cOfflineIntroReq" align="left" suppress-title="false" pn="figure-19">
          <name slugifiedName="name-request-and-response-payload-">Request and Response Payload for Introspection</name>
          <sourcecode name="" type="cbor-diag" markers="false" pn="section-appendix.f.2-15.1">
Request-Payload:
{
  / token /     11 : b64'VGVzdCB0b2tlbg',
  / client_id / 24 : "FrontDoor"
}

Response-Payload:
{
  / active / 10 : true,
  / aud /     3 : "lockOfDoor4711",
  / scope /   9 : "open close",
  / iat /     6 : 1563454000,
  / cnf /     8 : {
         / kid / 3 : b64'c29tZSBwdWJsaWMga2V5IGlk'
  }
}
</sourcecode>
        </figure>
        <t indent="0" pn="section-appendix.f.2-16">The client uses the symmetric PoP key to establish a DTLS
            PreSharedKey secure connection to the RS. The CoAP request PUT is
            sent to the uri-path /state on the RS, changing the state of the door to
	    locked.</t>
        <dl newline="false" spacing="normal" indent="4" pn="section-appendix.f.2-17">
          <dt pn="section-appendix.f.2-17.1">F:</dt>
          <dd pn="section-appendix.f.2-17.2">The RS responds with an appropriate response over the secure DTLS channel.</dd>
        </dl>
        <figure anchor="fig_cOfflineDTLSRequestAndResponse" align="left" suppress-title="false" pn="figure-20">
          <name slugifiedName="name-resource-request-and-respons">Resource Request and Response Protected by OSCORE</name>
          <artwork align="left" name="" type="" alt="" pn="section-appendix.f.2-18.1">
           Resource
  Client    Server
    |         |
    |&lt;=======&gt;| DTLS Connection Establishment
    |         |   using Pre Shared Key
    |         |
    +--------&gt;| Header: PUT (Code=0.03)
    | PUT     | Uri-Path: "state"
    |         | Payload: &lt;new state for the lock&gt;
    |         |
F:  |&lt;--------+ Header: 2.04 Changed
    | 2.04    | Payload: &lt;new state for the lock&gt;
    |         |
            </artwork>
        </figure>
      </section>
    </section>
    <section anchor="Acknowledgments" numbered="false" toc="include" removeInRFC="false" pn="section-appendix.g">
      <name slugifiedName="name-acknowledgments">Acknowledgments</name>
      <t indent="0" pn="section-appendix.g-1">This document is a product of the ACE Working Group of the IETF.</t>
      <t indent="0" pn="section-appendix.g-2">Thanks to <contact fullname="Eve Maler"/> for her contributions to the use of
      OAuth 2.0 and Unlicensed Mobile Access (UMA) in IoT scenarios, 
      <contact fullname="Robert Taylor"/> for his
      discussion input, and <contact fullname="Mališa Vučinić"/> for his input on the
      predecessors of this proposal.</t>
      <t indent="0" pn="section-appendix.g-3">Thanks to the authors of "<xref target="I-D.ietf-oauth-pop-key-distribution" format="default" sectionFormat="of" derivedContent="POP-KEY-DIST"/><xref target="I-D.ietf-oauth-pop-key-distribution" format="title" sectionFormat="of" derivedContent="OAuth 2.0 Proof-of-Possession: Authorization Server to Client Key Distribution"/>" <xref target="I-D.ietf-oauth-pop-key-distribution" format="default" sectionFormat="of" derivedContent="POP-KEY-DIST"/>, from where
      parts of the security considerations where copied.</t>
      <t indent="0" pn="section-appendix.g-4">Thanks to <contact fullname="Stefanie Gerdes"/>, <contact fullname="Olaf       Bergmann"/>, and <contact fullname="Carsten       Bormann"/> for contributing their work on AS discovery from
      "<xref target="I-D.gerdes-ace-dcaf-authorize" format="title" sectionFormat="of" derivedContent="Delegated CoAP Authentication and Authorization Framework (DCAF)"/>" <xref target="I-D.gerdes-ace-dcaf-authorize" format="default" sectionFormat="of" derivedContent="DCAF"/> (see <xref target="asDiscovery" format="default" sectionFormat="of" derivedContent="Section 5.1"/>) and the considerations on multiple access tokens.</t>
      <t indent="0" pn="section-appendix.g-5">Thanks to <contact fullname="Jim Schaad"/> and <contact fullname="Mike       Jones"/> for their comprehensive reviews.</t>
      <t indent="0" pn="section-appendix.g-6">Thanks to <contact fullname="Benjamin Kaduk"/> for his input on various
      questions related to this work.</t>
      <t indent="0" pn="section-appendix.g-7">Thanks to <contact fullname="Cigdem Sengul"/> for some very useful review
      comments.</t>
      <t indent="0" pn="section-appendix.g-8">Thanks to <contact fullname="Carsten Bormann"/> for contributing the text for
      the CoRE Resource Type registry.</t>
      <t indent="0" pn="section-appendix.g-9">Thanks to <contact fullname="Roman Danyliw"/> for suggesting <xref target="app_diffOAuth" format="default" sectionFormat="of" derivedContent="Appendix E"/>
      (including its contents).</t>
      <t indent="0" pn="section-appendix.g-10"><contact fullname="Ludwig Seitz"/> and <contact fullname="Göran Selander"/>
      worked on this document as part of the CelticPlus project CyberWI, with funding
      from Vinnova. <contact fullname="Ludwig Seitz"/>
      has also received further funding for this work by Vinnova in the context of
      the CelticNext project CRITISEC.</t>
    </section>
    <section anchor="authors-addresses" numbered="false" removeInRFC="false" toc="include" pn="section-appendix.h">
      <name slugifiedName="name-authors-addresses">Authors' Addresses</name>
      <author fullname="Ludwig Seitz" initials="L." surname="Seitz">
        <organization showOnFrontPage="true">Combitech</organization>
        <address>
          <postal>
            <street>Djäknegatan 31</street>
            <code>211 35</code>
            <city>Malmö</city>
            <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</organization>
        <address>
          <postal>
            <code>164 80</code>
            <city>Kista</city>
            <country>Sweden</country>
          </postal>
          <email>goran.selander@ericsson.com</email>
        </address>
      </author>
      <author fullname="Erik Wahlstroem" initials="E." surname="Wahlstroem">
        <organization showOnFrontPage="true"/>
        <address>
          <postal>
            <street/>
            <code/>
            <city/>
            <country>Sweden</country>
          </postal>
          <email>erik@wahlstromstekniska.se</email>
        </address>
      </author>
      <author fullname="Samuel Erdtman" initials="S." surname="Erdtman">
        <organization showOnFrontPage="true">Spotify AB</organization>
        <address>
          <postal>
            <street>Birger Jarlsgatan 61, 4tr</street>
            <code>113 56</code>
            <city>Stockholm</city>
            <country>Sweden</country>
          </postal>
          <email>erdtman@spotify.com</email>
        </address>
      </author>
      <author fullname="Hannes Tschofenig" initials="H." surname="Tschofenig">
        <organization showOnFrontPage="true">Arm Ltd.</organization>
        <address>
          <postal>
            <street/>
            <code>6067</code>
            <city>Absam</city>
            <country>Austria</country>
          </postal>
          <email>Hannes.Tschofenig@arm.com</email>
        </address>
      </author>
    </section>
  </back>
</rfc>
