Internet-Draft | ACE-OAuth-Params | September 2021 |
Seitz | Expires 11 March 2022 | [Page] |
This specification defines new parameters and encodings for the OAuth 2.0 token and introspection endpoints when used with the framework for authentication and authorization for constrained environments (ACE). These are used to express the proof-of-possession key the client wishes to use, the proof-of-possession key that the Authorization Server has selected, and the key the Resource Server uses to authenticate to the client.¶
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.¶
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.¶
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."¶
This Internet-Draft will expire on 11 March 2022.¶
Copyright (c) 2021 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) 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 Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License.¶
The Authentication and Authorization for Constrained Environments (ACE) specification [I-D.ietf-ace-oauth-authz] requires some new parameters for interactions with the OAuth 2.0 [RFC6749] token and introspection endpoints, as well as some new claims to be used in access tokens. These parameters and claims can also be used in other contexts and have therefore been put into a dedicated document, to facilitate their use in a manner independent of [I-D.ietf-ace-oauth-authz].¶
Note that although all examples are shown in Concise Binary Object Representation (CBOR) [RFC8949], JSON [RFC8259] MAY be used as an alternative for HTTP-based communications, as specified in [I-D.ietf-ace-oauth-authz].¶
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.¶
Readers are assumed to be familiar with the terminology from [I-D.ietf-ace-oauth-authz], especially the terminology for entities in the architecture such as client (C), resource server (RS) and authorization server (AS).¶
Terminology from [RFC8152] is used in the examples, especially COSE_Key defined in section 7 of [RFC8152].¶
Note that the term "endpoint" is used here following its OAuth 2.0 [RFC6749] definition, which is to denote resources such as token and introspection at the AS and authz-info at the RS. The Constrained Application Protocol (CoAP) [RFC7252] definition, which is "An entity participating in the CoAP protocol" is not used in this specification.¶
This section defines additional parameters for the interactions with the token endpoint in the ACE framework [I-D.ietf-ace-oauth-authz].¶
This section defines the "req_cnf" parameter allowing clients to request a specific proof-of-possession key in an access token from a token endpoint in the ACE framework [I-D.ietf-ace-oauth-authz]:¶
Figure 1 shows a request for an access token using the "req_cnf" parameter to request a specific public key as proof-of-possession key. The content is displayed in CBOR diagnostic notation, without abbreviations and with line-breaks for better readability.¶
This section defines the following additional parameters for an AS response to a request to the token endpoint:¶
REQUIRED if the token type is "pop" and a symmetric key is used. MAY be present for asymmetric proof-of-possession keys. This field contains the proof-of-possession key that the AS selected for the token. Values of this parameter follow the syntax and semantics of the "cnf" claim either from section 3.1 of [RFC8747] for CBOR-based interactions or from section 3.1 of [RFC7800] for JSON-based interactions. See Section 5 for additional discussion of the usage of this parameter.¶
Figure 2 shows an AS response containing a token and a "cnf" parameter with a symmetric proof-of-possession key.¶
Figure 3 shows an AS response containing a token bound to a previously requested asymmetric proof-of-possession key (not shown) and a "rs_cnf" parameter containing the public key of the RS.¶
This section defines the use of CBOR instead of JSON for the "cnf" introspection response parameter specified in section 9.4 of [RFC8705].¶
If CBOR is used instead of JSON in an interaction with the introspection endpoint, the AS MUST use the parameter mapping specified in Figure 5 and the value must follow the syntax of "cnf" claim values from section 3.1 of [RFC8747].¶
Figure 4 shows an AS response to an introspection request including the "cnf" parameter to indicate the proof-of-possession key bound to the token.¶
The confirmation method parameters are used in [I-D.ietf-ace-oauth-authz] as follows:¶
Note that the COSE_Key structure in a confirmation claim or parameter may contain an "alg" or "key_ops" parameter. If such parameters are present, a client MUST NOT use a key that is incompatible with the profile or proof-of-possession algorithm according to those parameters. An RS MUST reject a proof-of-possession using such a key with a response code equivalent to the CoAP code 4.00 (Bad Request).¶
If an access token is issued for an audience that includes several RS, the "rs_cnf" parameter MUST NOT be used, since the client cannot determine for which RS the key applies. This document recommends to specify a different endpoint that the client can use to acquire RS authentication keys in such cases. The specification of such an endpoint is out of scope for this document.¶
If CBOR is used, the new parameters and claims defined in this document MUST be mapped to CBOR types as specified in Figure 5, using the given integer abbreviation for the map key.¶
An RS using asymmetric keys to authenticate to the client MUST NOT hold several different asymmetric key pairs, applicable to the same authentication algorithm. For example when using DTLS, the RS MUST NOT hold several asymmetric key pairs applicable to the same cipher suite. The reason for this restriction is that the RS has no way of determining which key to use before the client's identity is established. Therefore authentication attempts by the RS could randomly fail based on which key the RS selects, unless the algorithm negotiation produces a unique choice of key pair for the RS.¶
This document is an extension to [I-D.ietf-ace-oauth-authz]. All security considerations from that document apply here as well.¶
This document is an extension to [I-D.ietf-ace-oauth-authz]. All privacy considerations from that document apply here as well.¶
This section registers the following parameters in the "OAuth Parameters" registry [IANA.OAuthParameters]:¶
req_cnf
¶
This section registers the following parameter mappings in the "OAuth Parameters CBOR Mappings" registry established in section 8.9. of [I-D.ietf-ace-oauth-authz].¶
req_cnf
¶
This section registers the following parameter mapping in the "OAuth Token Introspection Response CBOR Mappings" registry established in section 8.11. of [I-D.ietf-ace-oauth-authz].¶
This document is a product of the ACE working group of the IETF. Special thanks to Brian Campbell for his thorough review of this document.¶
Ludwig Seitz worked on this document as part of the CelticNext projects CyberWI, and CRITISEC with funding from Vinnova.¶