[Ace] Review of draft-ietf-ace-oauth-authz-07 by Mike Jones

Mike Jones <Michael.Jones@microsoft.com> Mon, 02 October 2017 09:12 UTC

Return-Path: <Michael.Jones@microsoft.com>
X-Original-To: ace@ietfa.amsl.com
Delivered-To: ace@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id AAAAA134517 for <ace@ietfa.amsl.com>; Mon, 2 Oct 2017 02:12:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.019
X-Spam-Level:
X-Spam-Status: No, score=-2.019 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=microsoft.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id D_-nVCg15_BM for <ace@ietfa.amsl.com>; Mon, 2 Oct 2017 02:12:01 -0700 (PDT)
Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0130.outbound.protection.outlook.com [104.47.33.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 99EAC13448C for <ace@ietf.org>; Mon, 2 Oct 2017 02:12:00 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=v7vt8cbDbRn5+pKMNql7ejk62cmzV8HKqLVOyMTAscA=; b=QlgWwhIep2UT8XQHEVkTwuQa+EFwNF3wb/QkeOoM0QShFUGV4Qas4R0uZZpY3E1M81pbti1FKSqyQ2pdagBngLMcfo+cWLxxAdW9cWRniJSFMDPNk+Dl7TUNQnrx27RVoUPZrj1gwCHcU2bd06vVZTRUNJjvOFoaakO2Z02Q7EA=
Received: from CY4PR21MB0504.namprd21.prod.outlook.com (10.172.122.14) by CY4PR21MB0854.namprd21.prod.outlook.com (10.173.192.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.98.3; Mon, 2 Oct 2017 09:11:57 +0000
Received: from CY4PR21MB0504.namprd21.prod.outlook.com ([10.172.122.14]) by CY4PR21MB0504.namprd21.prod.outlook.com ([10.172.122.14]) with mapi id 15.20.0122.000; Mon, 2 Oct 2017 09:11:58 +0000
From: Mike Jones <Michael.Jones@microsoft.com>
To: "ace@ietf.org" <ace@ietf.org>
CC: Ludwig Seitz <ludwig@sics.se>, Göran Selander <goran.selander@ericsson.com>, Erik Wahlström <erik@wahlstromstekniska.se>, Samuel Erdtman <samuel@erdtman.se>, Hannes Tschofenig <Hannes.Tschofenig@arm.com>
Thread-Topic: Review of draft-ietf-ace-oauth-authz-07 by Mike Jones
Thread-Index: AdM7W6CQJNWkaDadRS6XI7KhPAdRmQ==
Date: Mon, 02 Oct 2017 09:11:57 +0000
Message-ID: <CY4PR21MB0504D057E5B47ED166F35083F57D0@CY4PR21MB0504.namprd21.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [121.7.33.159]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; CY4PR21MB0854; 6:nSZiNEDM9YbKKy8MXA3Syg8j9G5Vh+hXCQC8pB1tYtaPdYfO5ejNfeApKUi74gZ78Tm5XYZCMd0RX7v1JhQsdm/ZGIzBxYaEdAWErbsCUjs/0aMlz6p+HF9dk4oJCoM+VBbijmG02NX0YG2qEVwoUe73K6N6c3MKC9s3qyq1omfRaGilRJftq8VglnfLjWdi6QWgsbzd27w350guTD+7VKLrNXyk9ykFgSdJEX9XvD56AIrPV4EF1mTesFrIfmG+AEo8WFa4dLXCGXy3jtvxyswoyeuLAZdcQJOsIOMMYTVTvXDfhl9ZyqUGYNLHlXgdzyaGUXVwN30hgLivQiQPTw==; 5:ZiAToy0L7y0klAU3gx84XUgEeiP/Q924vAWfSslCC0E03Boh6MP5i2qahFhBYMnfdnPAu2i8fLrx20JsRNUP+Mx16Wftu4dgQd4kOMJwgMB0HnXVZlqIRKVJOfj4ombSaxN/KxjJT0KnAMfTr+uqINoK4cQ/mrQ8/X5yNBiy6E0=; 24:KktavfhRBt0RbFxeue+gHHaTQm1G91d+syKjo1EdpGb49UAzkoX5WnxfVWvqUm6987XMhhfwhxRFVZlnnMsAXYz7U9ygTjOTNqB+uPLluuw=; 7:ORmmxf8VCyl13ZCI3W1bJlcOBA34sW+dTEbFKDWONssA0IEldQfupqxUd7enX0x/aOqbk/5C1/lggLi03D6GQRka8KdsL87g4UHWgoqDvlhZXz0oTie7Z2vsXJfzMBQd+lbZuCMJwvXqUkdrB+m7zglsOfgICCuusW/LAU+2KeVN3Bm8Pn+Gi69lPPj2MWBbro5ce6UOQzQVmGvNXz/5q1FMyNjN+6J2G2tiIsDZGxI=
x-ms-exchange-antispam-srfa-diagnostics: SOS;
x-ms-office365-filtering-correlation-id: d402634b-d49b-40d6-ae7c-08d50975a242
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(48565401081)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:CY4PR21MB0854;
x-ms-traffictypediagnostic: CY4PR21MB0854:
x-ld-processed: 72f988bf-86f1-41af-91ab-2d7cd011db47,ExtAddr
x-exchange-antispam-report-test: UriScan:(158342451672863)(166708455590820)(192374486261705)(788757137089)(21748063052155)(21532816269658)(1591387915157);
x-microsoft-antispam-prvs: <CY4PR21MB08549AB8A46B6F7EB48ADF07F57D0@CY4PR21MB0854.namprd21.prod.outlook.com>
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(61425038)(6040450)(2401047)(8121501046)(5005006)(93006095)(93001095)(100000703101)(100105400095)(12181511122)(10201501046)(3002001)(6055026)(61426038)(61427038)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123558100)(20161123555025)(20161123560025)(20161123562025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY4PR21MB0854; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY4PR21MB0854;
x-forefront-prvs: 0448A97BF2
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(346002)(376002)(39860400002)(47760400005)(189002)(199003)(6306002)(102836003)(230783001)(99286003)(55016002)(4326008)(66066001)(53946003)(2900100001)(53936002)(81166006)(8676002)(790700001)(3846002)(54906003)(14454004)(7696004)(3660700001)(54356999)(6916009)(54896002)(8936002)(236005)(1730700003)(10090500001)(9686003)(22452003)(50986999)(2906002)(316002)(68736007)(5660300001)(189998001)(86362001)(105586002)(3280700002)(86612001)(106356001)(2351001)(8990500004)(81156014)(6116002)(74316002)(7736002)(97736004)(33656002)(101416001)(6506006)(966005)(5640700003)(77096006)(10290500003)(2501003)(25786009)(6436002)(5630700001)(606006)(478600001)(72206003); DIR:OUT; SFP:1102; SCL:1; SRVR:CY4PR21MB0854; H:CY4PR21MB0504.namprd21.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en;
received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts)
authentication-results: spf=none (sender IP is ) smtp.mailfrom=Michael.Jones@microsoft.com;
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_CY4PR21MB0504D057E5B47ED166F35083F57D0CY4PR21MB0504namp_"
MIME-Version: 1.0
X-OriginatorOrg: microsoft.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Oct 2017 09:11:57.9645 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47
X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR21MB0854
Archived-At: <https://mailarchive.ietf.org/arch/msg/ace/l_ebPfEqqkr5_1QjGM8GOkqNQos>
Subject: [Ace] Review of draft-ietf-ace-oauth-authz-07 by Mike Jones
X-BeenThere: ace@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "Authentication and Authorization for Constrained Environments \(ace\)" <ace.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ace>, <mailto:ace-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ace/>
List-Post: <mailto:ace@ietf.org>
List-Help: <mailto:ace-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ace>, <mailto:ace-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 02 Oct 2017 09:12:08 -0000

Having read the spec cover-to-cover, it surprised me how different this is from OAuth, despite the statements that it is based on OAuth.  My highest-priority request is to make all the extensions to OAuth defined in this document optional, so that profiles could use actual OAuth, which currently doesn't seem to be possible.  Much of this draft written in a way that huge OAuth extensions are obliquely assumed when describing other features, without any clear definitions or justifications for them when they are introduced in passing.  These things need to be teased apart, with references to sections actually defining and justifying each extension, rather than assuming that many of them exist in passing in other sections.

Detailed substantive comments on specific document text follow.  Editorial nits are communicated in the accompanying pull request https://github.com/LudwigSeitz/ace-oauth/pull/112.

Title
The current title "Authentication and Authorization for Constrained Environments (ACE)" doesn't match the scope of what's in the spec, as the spec is only about resource authorization but not authentication.  Please change the title to "Resource Authorization Framework for Constrained Environments" or something similar.  (Authentication would require defining the equivalent of an OpenID Connect ID Token to convey authentication information, but this is entirely absent from the specification.)

1.  Introduction
The introduction defines what it means by "authorization" by doesn't say what it is referring to by "authentication".  This provides more evidence that "authentication" does not belong in the title or abstract.  Please remove the passing references to the underspecified concept "authentication" from the introduction and the abstract.  (Note that while "OAuth client authentication" is a limited form of authentication, its use as a mechanism in the spec does not justify saying that the spec is defining authentication for its use cases in any general sense of the term.)

2.  Terminology
The "/" syntax for endpoint names, such as "/token" is misleading, as it seems to imply that these endpoints use particular pathnames.  Please replace all uses of "/endpoint-name" with just "endpoint-name".

2.  Terminology
References are needed for the first uses of many of the terms and abbreviations used.  For instance, you're using abbreviations like "AS", "RS", and "IoT" without saying what they refer to.

2.  Terminology
Please change all uses of the word "introspect" to "introspection" when referring to the introspection endpoint.

2.  Terminology
You introduce an "authz-info" endpoint in the terminology section, when this isn't commonly understood.  You need a section reference following the first use of this concept.

3.1 OAuth 2.0 - token and introspect endpoints
This section is the first of many places in which the text is written in a way that assumes that introspection will be implemented and used.  This needs to be corrected throughout the document, appropriately qualifying descriptions of introspection saying that some profiles may use it and others will not.  For instance, the draft says "The token introspection endpoint, /introspect, is used by the RS when requesting additional information regarding a received access token."  Please change this so something more like "In some profiles, a token introspection endpoint may be present and used by the RS to request additional information about a received access token."  You should also clearly state that introspection is unnecessary and adds overhead that can be avoided when the resource server understands the access token format, such as when it is a CWT.

3.1 OAuth 2.0 - Proof of Possession Tokens
The draft uses the term "proof of possession token" to denote an access token supporting proof of possession.  Note however, that there are many other kinds of proof of possession tokens other than just access tokens.  Please change all uses of the term "proof of possession token" to "proof of possession access token" or "access token supporting proof of possession".  Similarly, change all uses of the term "PoP token" to "PoP access token".

3.1 OAuth 2.0 - Scopes and Permissions
This section contains another example of an extension to OAuth being assumed, when for many profiles it won't be necessary.  The draft says "In turn, the AS may use the scope response parameter to inform the client of the scope of the access token issued."  This assumes that a "scope" response will be added to all participating OAuth implementations, without justifying this addition to the standard.  At most, this section should refer to another section which defines an optional "scope" response parameter and describes the circumstances in which profiles would and would not need it.

3.1 OAuth 2.0 - Scopes and Permissions
Likewise, the draft says "As the client could be a constrained device as well, this specification uses CBOR encoded messages for CoAP".  This is one of many places in the draft that it's assumed that CBOR and COAP will be used rather than JSON and HTTP.  The framework draft should explicitly leave these choices up to profiles.

4. Protocol Interactions
Please do not in any way endorse using the Client Credentials grant - which defeats the purpose of even having OAuth.  The client should never have the user's credentials!  At most, you should say that while the Client Credentials grant may be used for some scenarios, it has known security and privacy flaws and its use is deprecated.

4. Protocol Interactions
The sentence "In such a case the resource owner or another person on his or her behalf have arranged with the authorization server out-of-band, which is often accomplished using a commissioning tool." needs clarification.  What has been arranged?

Figure 1: Basic Protocol Flow
This is yet another place where a major OAuth extension is assumed, without clear justification.  The diagram adds "+ RS Information" to the authorization server response to the client, when this isn't a normal part of OAuth and not defined.  At least, please indicate that this is optional and refer to a section that defines and justifies this optional extension, rather than assuming in passing that it's been added.

Figure 1: Basic Protocol Flow
Please rework this diagram to illustrate that introspection is optional (and wastes resources by performing unnecessary communication).

4. Protocol Interactions - Access Token Response
This also assumes the existence of "RS Information".  At least, say that "Some profiles may choose to return information about the resource servers" and reference a section describing this optional feature, rather than write the text in a way that assumes its existence.

4. Protocol Interactions - Access Token Response
This also assumes the existence of profile information in the response.  This would normally be implicit.  Again, please do not write the draft in a way that assumes the presence of extensions that are often not needed.

4. Protocol Interactions - Resource Request
The two-part request described in the third paragraph is not OAuth, nor is there any justification for adding additional steps.  Likewise, the language in paragraph 4 about "comparing the claims in the access token with the resource request" is a highly specific extension that is not normal OAuth.  Please refactor this description to clearly delineate what's OAuth and what are optional extensions - referencing specific sections that define these extensions.

4. Protocol Interactions - Token Introspection Request
Please rework this section to describe that introspection is optional (and wastes resources by performing unnecessary communication).  Describe how things are simpler and more efficient when the resource directly understands the contents of the access token.

4. Protocol Interactions - Token Introspection Response
This section adds yet another OAuth extension on the fly - the "client token" - again with no justification or clear definition.  Please remove the oblique "client token" reference here.

5. Framework - Proof-of-Possession
After "The binding is provided by the "cnf" claim" add references to [RFC 7800] and [draft-ietf-ace-cwt-proof-of-possession].

5. Framework - Proof-of-Possession
The text currently includes "update a token".  Shouldn't this actually be "get a new token", since an existing access token can't be updated?

5.1 Authorization Grants
This section includes the phrase "client credentials grant is recommended".  Because of the security and privacy problems with the client credentials grant, please rework this section to ensure that implementers and profile writers understand that the use of client credentials grant is never recommended, including describing why that is the case.

5.1 Authorization Grants
Reference [RFC 6749] after you say "see the OAuth 2.0 framework".

5.2 Client Credentials
After you say that "the OAuth framework defines one client credential type", you should also describe that RFC 7522 and RFC 7523 define additional kinds of client credentials that may be used.

5.4 The Authorize Endpoint
Change all occurrences of "authorize endpoint" to "authorization endpoint".

5.5 The Token Endpoint
Rather than saying that "this framework extends", say that the framework defines optional extensions and reference their definitions and justifications.

5.5 The Token Endpoint
Change "this framework defines encodings using CoAP and CBOR, as a substitute for HTTP and JSON" in a way that allows profiles to make either choice.

5.5.1 Client-to-AS Request
This section is another place in which this specification is making assumptions about choices that rightfully belong to profiles.  It starts with "The client sends a CoAP POST request".  Profiles may choose to use CoAP or they may choose to use HTTP.  Please reword this so that it says something more like "The client sends a CoAP or HTTP POST request, depending upon the profile".  Please likewise generalize the description of the framework so that it's clear that the choice between CoAP or HTTP is up to the profile.  Heck, Bluetooth Smart is another transport that's possible, which this spec shouldn't preclude!

5.5.1 Client-to-AS Request
This is again written in such a way that it assumes that the additional parameters will be implemented and used, which won't be necessary for some profiles.  It starts "In addition to these parameters, this framework defines the following parameters".  Qualify this by saying that some profiles may choose to implement and use the following OAuth extension parameters.

5.5.1 Client-to-AS Request - aud
The OAuth Token Exchange spec uses the "audience" parameter for this functionality.  See https://tools.ietf.org/html/draft-ietf-oauth-token-exchange-09#section-2.1.  Please reference this spec and use the same parameter name.

5.5.1 Client-to-AS Request - aud
The spec says that "If a client submits a request for an access token without specifying an "aud" parameter, and the AS does not have a default "aud" value for this client, then the AS MUST respond with an error message".  This violates the OAuth principle that implementations must ignore parameters that they do not understand.  https://tools.ietf.org/html/rfc6749#section-3.1 says "The authorization server MUST ignore unrecognized request parameters".  Rework this to say that it's perfectly legitimate for participants to ignore the "aud" parameter when they don't implement or understand it.

5.5.2 AS-to-Client Response
Once again, extensions to OAuth are implicitly required - in this case the "profile" and "cnf" parameters.  Reword to make these choices available to profiles.

5.5.2 AS-to-Client Response - profile
This certainly shouldn't be required, as the profile knowledge will be implicit in most OAuth deployments.  Very rare indeed will the cases in which participants will support multiple profiles.

5.5.2 AS-to-Client Response
The spec says that "Figure 5 summarizes the parameters that may be part of the RS Information".  However the term "RS information" is undefined.  Instead, change this sentence to say  "Figure 5 summarizes the parameters that may be part of the token response".

5.5.2 AS-to-Client Response - Figure 6
I suggest removing "profile" from the example, as this is unnecessary protocol bloat.

5.5.3 Error Response
The spec says "The error codes MAY be abbreviated using the codes specified in table Figure 7".  Again, whether to do this is a profile choice.  Making it optional only makes all implementations bigger because they have to support both choices.  Reword to say that profiles will specify whether error codes are abbreviated in this manner or not.

5.5.3 Error Response - Figure 7
These values should be in a registry - possibly called something like "OAuth error code CBOR value mappings".  This registry should reference the values registered in the OAuth Extensions Error Registry at https://www.iana.org/assignments/oauth-parameters/oauth-parameters.xhtml#extensions-error.

5.5.4.1 Audience
Reference the audience parameter in https://tools.ietf.org/html/draft-ietf-oauth-token-exchange-09#section-2.1 and indicate that whether it is used a profile-specific choice.

5.5.4.1 Audience
The spec says that "It should be encoded as CBOR text string".  Again, reword this to say that it's a profile choice whether to use CBOR or standard OAuth.

5.5.4.2 Grant Type
Rather than saying "MAY", say that the profile specifies the representation that it used.

5.5.4.2 Figure 8
These values should be in a registry - possibly called something like "OAuth grant type CBOR value mappings".  This registry should reference the sections defining these values in RFC 6749 and the grant type values defined by RFC 7522 and RFC 7523.

5.5.4.3 Token Type
Reference draft-ietf-oauth-pop-key-distribution for the definition of the "pop" token_type.

5.5.4.3 Token Type
When you say that "The values in the 'token_type' parameter MUST be CBOR text strings", you're again implicitly making choices that belong to profiles.  Please generalize this description.

5.5.4.4 Profile
Whether "profile" is even needed is up to the profile.  Typically it will be implicit, since implementations will use a single profile.  Please revise accordingly.

5.5.4.5 Confirmation
Please replace the definition of "cnf" for CBOR here with references to RFC 7800 and draft-ietf-ace-cwt-proof-of-possession.

5.5.5 Mapping parameters to CBOR
It looks to me like these values are intended to align with those registered in the CBOR Web Token (CWT) Claims registry initially populated by https://tools.ietf.org/html/draft-ietf-ace-cbor-web-token-08#section-9.1.2.  If so, the spec should make this relationship explicit.  However, it would be inappropriate to use the rare single-byte CBOR integer values for application-specific claim keys.  I would suggest that the claim identifiers for client_id through refresh_token and profile start at 256 (a two-byte CBOR value) and go up from there.  In that case, I suspect they could be successfully registered in the CWT Claims registry - which I think you want.  ("cnf" will already be registered by draft-ietf-ace-cwt-proof-of-possession.)

5.6 The Introspect Endpoint
First, change introspect to introspection.  And like other places, state that it is up to the profile whether to use introspection at all, and if so, whether to use standard introspection syntax or the CoAP/CBOR version.

5.6.2 AS-to-RS Response - Figure 15
Remove profile and client_token from this example, since both are pretty esoteric and not likely to be used in the common case.

5.6.4 Client Token
I agree with Hannes' review of this feature: "The "Client Token" is somewhat experimental and not on par with the rest of the document in terms of maturity and alignment with OAuth. I would prefer this functionality to be covered in a separate document, if someone still cares about it. While OAuth has seen a lot of formal analysis this feature obviously hasn't."  Please remove this from the specification and if you still believe in it, place it in a separate document for independent consideration by the working group.

5.6.4 Client Token
The spec says "The client is pre-configured with a generic, long-term access token when it is commissioned."  This hardly seems secure - especially since secrets can often be extracted from deployed software.

5.6.4 Client Token
The spec says "The RS then performs token introspection to learn what access this token grants."  Again, this is unnecessary if the resource understands the claims in the access token.

5.6.5 Mapping Introspection Parameters to CBOR
As in my related comment on 5.5.5, it looks to me like these values are intended to align with those registered in the CBOR Web Token (CWT) Claims registry initially populated by https://tools.ietf.org/html/draft-ietf-ace-cbor-web-token-08#section-9.1.2.  If so, the spec should make this relationship explicit.  However, it would be inappropriate to use the rare single-byte CBOR integer values for application-specific claim keys.  I would suggest that the claim identifiers for client_id through refresh_token and profile start at 256 (a two-byte CBOR value) and go up from there.  In that case, I suspect they could be successfully registered in the CWT Claims registry - which I think you want.  ("cnf" will already be registered by draft-ietf-ace-cwt-proof-of-possession.)

5.7 The Access Token
Reference [RFC 7800] and [draft-ietf-ace-cwt-proof-of-possession] when describing the use of "cnf".

5.7.1 The Authorization Information Endpoint
Please describe the relationship between this endpoint and the resource endpoint used by RFC 6750.

5.7.1 The Authorization Information Endpoint
Again, please clarify that support for this OAuth extension, the use of CoAP, and the use of introspection are all choices up to particular profiles.

5.7.1 The Authorization Information Endpoint
The spec says "The RS MUST be prepared to store more than one token for each client, and MUST apply the combined permissions granted by all applicable, valid tokens to client requests."  This seems really overly specific for a framework spec.  Simple systems will likely only have one token per client, let alone not supporting complex permission combination logic!  Please remove this statement.

5.7.2 Token Expiration
Rather than saying "CWT/JWT" expand this to "CWT or JWT" for readability.

6. Security Considerations
Add a reference upon first use of the term "AEAD".

7. Privacy Considerations
The spec says "The latter may reveal the client's identity."  What is meant by the client's identity?  What kinds of information does this entail and what are the privacy risks associated with it?  How does the client's identity relate to the identities of people who may be associated with the system in some way?

8.1 OAuth Introspection Response Parameter Registration
Every place an IANA registration currently says "this document", please change it to "Section x.y.z of this document" (using the appropriate <ref target="x.y.z"/> tag for the section that defines the value.

8.1 OAuth Introspection Response Parameter Registration
"aud" is already registered at https://www.iana.org/assignments/oauth-parameters/oauth-parameters.xhtml#token-introspection-response.

8.4 Token Type Mappings
The name "Token Type Mappings" registry is too generic.  Please change it to "OAuth Token Type CBOR Mappings" or something similar.

8.4.1  Registration Template
As was pointed out in comments on earlier versions of the CWT spec, the range 1 to 65536 makes no sense.  Please consider using the same treatment of value ranges as CWT does (which themselves derived from the COSE usage of value ranges).  Do this consistently every place that "1 to 65536" occurs in the spec.

8.5 CBOR Web Token Claims
Consider using the "scp" claim defined at https://tools.ietf.org/html/draft-ietf-oauth-token-exchange-09#section-4.2 rather than "scope".  If you don't, at least say why you are introducing a different claim to convey the same information.

8.5 CBOR Web Token Claims
"cnf" is already being registered by draft-ietf-ace-cwt-proof-of-possession.

8.6 ACE Profile Registry
The name "ACE Profile Registry" registry is too generic.  Please change it to "ACE OAuth Profile Registry" or something similar.

8.7 OAuth Parameter Mappings Registry
The name "OAuth Parameter Mappings" registry is too generic.  Please change it to "OAuth CBOR Parameter Mappings" or something similar.

8.7.2 Initial Registry Contents
Per my earlier comments, these values should actually reference the CWT Claims registry and application-specific values such as "client_id", etc. should not use the scarce single-byte value range.

8.8.1 Registration Template
Registrations for the Introspection Endpoint CBOR Mappings registry should contain a field that lists the corresponding value registered in the OAuth Token Introspection Response registry at https://www.iana.org/assignments/oauth-parameters/oauth-parameters.xhtml#token-introspection-response.

8.10 CWT Confirmation Methods Registry
Delete this section, as it has been moved to draft-ietf-ace-cwt-proof-of-possession.

Appendix A. Design Justification - Communication Constraints
Add that power saving may be another reason for communication constraints.

Appendix B. Roles and Responsibilities - Authorization Server
Add that enabling discovery of the AS's capabilities via metadata is likely in scope.  Reference draft-ietf-oauth-discovery.

Appendix B. Roles and Responsibilities - Client
What do the parenthetical letters such as "(A)" refer to?  Why are "(D)" and "(E)" missing?

Appendix C. Requirements on Profiles
You should be much more clear in this section that choices of JSON vs. CBOR, JWT vs. CWT, HTTP versus COaP, PoP versus Token Binding, Introspection or not, authz-info endpoint or not, etc. must be made by profiles.

Appendix E. Deployment Examples - Figure 20
Use the "scp" claim defined at https://tools.ietf.org/html/draft-ietf-oauth-token-exchange-09#section-4.2 rather than "scope".

Appendix E.2 Introspection Aided Token Validation
It makes no sense to assume that the client is not able to access the AS at the time of the access request but can access the introspection endpoint, since the introspection endpoint is part of the AS.  Please remove this section or revise accordingly.

Appendix E.2 Introspection Aided Token Validation - Figure 23
Please revise the example to not use Client Credentials, because of the security and privacy problems associated with this grant type.

Surprising Omission of Token Binding!
The specification should describe the ability to use Token Bound access tokens, rather than PoP access tokens, as this will be substantially simpler for most implementations.  Please reference draft-ietf-oauth-token-binding and describe how to apply it to this specification.

                                                       Best wishes,
                                                       -- Mike