{"uuid": "310d2dde-399b-4e87-bd1d-63f7c988ddb8", "vulnerability_lookup_origin": "1a89b78e-f703-45f3-bb86-59eb712668bd", "author": "9f56dd64-161d-43a6-b9c3-555944290a09", "vulnerability": "CVE-2012-4929", "type": "seen", "source": "https://gist.github.com/citadelculture/72bf2b2c6c56cabad61da284b66f59bf", "content": "\ufeff\n\n\n\nInternet Engineering Task Force (IETF)                           D. Fett\nRequest for Comments: 9449                                      Authlete\nCategory: Standards Track                                    B. Campbell\nISSN: 2070-1721                                            Ping Identity\n                                                              J. Bradley\n                                                                  Yubico\n                                                          T. Lodderstedt\n                                                                 Tuconic\n                                                                M. Jones\n                                                  Self-Issued Consulting\n                                                                D. Waite\n                                                           Ping Identity\n                                                          September 2023\n\n\n           OAuth 2.0 Demonstrating Proof of Possession (DPoP)\n\nAbstract\n\n   This document describes a mechanism for sender-constraining OAuth 2.0\n   tokens via a proof-of-possession mechanism on the application level.\n   This mechanism allows for the detection of replay attacks with access\n   and refresh tokens.\n\nStatus of This Memo\n\n   This is an Internet Standards Track document.\n\n   This document is a product of the Internet Engineering Task Force\n   (IETF).  It represents the consensus of the IETF community.  It has\n   received public review and has been approved for publication by the\n   Internet Engineering Steering Group (IESG).  Further information on\n   Internet Standards is available in Section 2 of RFC 7841.\n\n   Information about the current status of this document, any errata,\n   and how to provide feedback on it may be obtained at\n   https://www.rfc-editor.org/info/rfc9449.\n\nCopyright Notice\n\n   Copyright (c) 2023 IETF Trust and the persons identified as the\n   document authors.  All rights reserved.\n\n   This document is subject to BCP 78 and the IETF Trust's Legal\n   Provisions Relating to IETF Documents\n   (https://trustee.ietf.org/license-info) in effect on the date of\n   publication of this document.  Please review these documents\n   carefully, as they describe your rights and restrictions with respect\n   to this document.  Code Components extracted from this document must\n   include Revised BSD License text as described in Section 4.e of the\n   Trust Legal Provisions and are provided without warranty as described\n   in the Revised BSD License.\n\nTable of Contents\n\n   1.  Introduction\n     1.1.  Conventions and Terminology\n   2.  Objectives\n   3.  Concept\n   4.  DPoP Proof JWTs\n     4.1.  The DPoP HTTP Header\n     4.2.  DPoP Proof JWT Syntax\n     4.3.  Checking DPoP Proofs\n   5.  DPoP Access Token Request\n     5.1.  Authorization Server Metadata\n     5.2.  Client Registration Metadata\n   6.  Public Key Confirmation\n     6.1.  JWK Thumbprint Confirmation Method\n     6.2.  JWK Thumbprint Confirmation Method in Token Introspection\n   7.  Protected Resource Access\n     7.1.  The DPoP Authentication Scheme\n     7.2.  Compatibility with the Bearer Authentication Scheme\n     7.3.  Client Considerations\n   8.  Authorization Server-Provided Nonce\n     8.1.  Nonce Syntax\n     8.2.  Providing a New Nonce Value\n   9.  Resource Server-Provided Nonce\n   10. Authorization Code Binding to a DPoP Key\n     10.1.  DPoP with Pushed Authorization Requests\n   11. Security Considerations\n     11.1.  DPoP Proof Replay\n     11.2.  DPoP Proof Pre-generation\n     11.3.  DPoP Nonce Downgrade\n     11.4.  Untrusted Code in the Client Context\n     11.5.  Signed JWT Swapping\n     11.6.  Signature Algorithms\n     11.7.  Request Integrity\n     11.8.  Access Token and Public Key Binding\n     11.9.  Authorization Code and Public Key Binding\n     11.10. Hash Algorithm Agility\n     11.11. Binding to Client Identity\n   12. IANA Considerations\n     12.1.  OAuth Access Token Types Registration\n     12.2.  OAuth Extensions Error Registration\n     12.3.  OAuth Parameters Registration\n     12.4.  HTTP Authentication Schemes Registration\n     12.5.  Media Type Registration\n     12.6.  JWT Confirmation Methods Registration\n     12.7.  JSON Web Token Claims Registration\n       12.7.1.  \"nonce\" Registration Update\n     12.8.  Hypertext Transfer Protocol (HTTP) Field Name Registration\n     12.9.  OAuth Authorization Server Metadata Registration\n     12.10. OAuth Dynamic Client Registration Metadata\n   13. References\n     13.1.  Normative References\n     13.2.  Informative References\n   Acknowledgements\n   Authors' Addresses\n\n1.  Introduction\n\n   Demonstrating Proof of Possession (DPoP) is an application-level\n   mechanism for sender-constraining OAuth [RFC6749] access and refresh\n   tokens.  It enables a client to prove the possession of a public/\n   private key pair by including a DPoP header in an HTTP request.  The\n   value of the header is a JSON Web Token (JWT) [RFC7519] that enables\n   the authorization server to bind issued tokens to the public part of\n   a client's key pair.  Recipients of such tokens are then able to\n   verify the binding of the token to the key pair that the client has\n   demonstrated that it holds via the DPoP header, thereby providing\n   some assurance that the client presenting the token also possesses\n   the private key.  In other words, the legitimate presenter of the\n   token is constrained to be the sender that holds and proves\n   possession of the private part of the key pair.\n\n   The mechanism specified herein can be used in cases where other\n   methods of sender-constraining tokens that utilize elements of the\n   underlying secure transport layer, such as [RFC8705] or\n   [TOKEN-BINDING], are not available or desirable.  For example, due to\n   a sub-par user experience of TLS client authentication in user agents\n   and a lack of support for HTTP token binding, neither mechanism can\n   be used if an OAuth client is an application that is dynamically\n   downloaded and executed in a web browser (sometimes referred to as a\n   \"single-page application\").  Additionally, applications that are\n   installed and run directly on a user's device are well positioned to\n   benefit from DPoP-bound tokens that guard against the misuse of\n   tokens by a compromised or malicious resource.  Such applications\n   often have dedicated protected storage for cryptographic keys.\n\n   DPoP can be used to sender-constrain access tokens regardless of the\n   client authentication method employed, but DPoP itself is not used\n   for client authentication.  DPoP can also be used to sender-constrain\n   refresh tokens issued to public clients (those without authentication\n   credentials associated with the client_id).\n\n1.1.  Conventions and Terminology\n\n   The key words \"MUST\", \"MUST NOT\", \"REQUIRED\", \"SHALL\", \"SHALL NOT\",\n   \"SHOULD\", \"SHOULD NOT\", \"RECOMMENDED\", \"NOT RECOMMENDED\", \"MAY\", and\n   \"OPTIONAL\" in this document are to be interpreted as described in\n   BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all\n   capitals, as shown here.\n\n   This specification uses the Augmented Backus-Naur Form (ABNF)\n   notation of [RFC5234].\n\n   This specification uses the terms \"access token\", \"refresh token\",\n   \"authorization server\", \"resource server\", \"authorization endpoint\",\n   \"authorization request\", \"authorization response\", \"token endpoint\",\n   \"grant type\", \"access token request\", \"access token response\",\n   \"client\", \"public client\", and \"confidential client\" defined by \"The\n   OAuth 2.0 Authorization Framework\" [RFC6749].\n\n   The terms \"request\", \"response\", \"header field\", and \"target URI\" are\n   imported from [RFC9110].\n\n   The terms \"JOSE\" and \"JOSE Header\" are imported from [RFC7515].\n\n   This document contains non-normative examples of partial and complete\n   HTTP messages.  Some examples use a single trailing backslash to\n   indicate line wrapping for long values, as per [RFC8792].  The\n   character and leading spaces on wrapped lines are not part of the\n   value.\n\n2.  Objectives\n\n   The primary aim of DPoP is to prevent unauthorized or illegitimate\n   parties from using leaked or stolen access tokens, by binding a token\n   to a public key upon issuance and requiring that the client proves\n   possession of the corresponding private key when using the token.\n   This constrains the legitimate sender of the token to only the party\n   with access to the private key and gives the server receiving the\n   token added assurances that the sender is legitimately authorized to\n   use it.\n\n   Access tokens that are sender-constrained via DPoP thus stand in\n   contrast to the typical bearer token, which can be used by any party\n   in possession of such a token.  Although protections generally exist\n   to prevent unintended disclosure of bearer tokens, unforeseen vectors\n   for leakage have occurred due to vulnerabilities and implementation\n   issues in other layers in the protocol or software stack (see, e.g.,\n   Compression Ratio Info-leak Made Easy (CRIME) [CRIME], Browser\n   Reconnaissance and Exfiltration via Adaptive Compression of Hypertext\n   (BREACH) [BREACH], Heartbleed [Heartbleed], and the Cloudflare parser\n   bug [Cloudbleed]).  There have also been numerous published token\n   theft attacks on OAuth implementations themselves ([GitHub.Tokens] is\n   just one high-profile example).  DPoP provides a general defense in\n   depth against the impact of unanticipated token leakage.  DPoP is\n   not, however, a substitute for a secure transport and MUST always be\n   used in conjunction with HTTPS.\n\n   The very nature of the typical OAuth protocol interaction\n   necessitates that the client discloses the access token to the\n   protected resources that it accesses.  The attacker model in\n   [SECURITY-TOPICS] describes cases where a protected resource might be\n   counterfeit, malicious, or compromised and plays received tokens\n   against other protected resources to gain unauthorized access.\n   Audience-restricted access tokens (e.g., using the JWT [RFC7519] aud\n   claim) can prevent such misuse.  However, doing so in practice has\n   proven to be prohibitively cumbersome for many deployments (despite\n   extensions such as [RFC8707]).  Sender-constraining access tokens is\n   a more robust and straightforward mechanism to prevent such token\n   replay at a different endpoint, and DPoP is an accessible\n   application-layer means of doing so.\n\n   Due to the potential for cross-site scripting (XSS), browser-based\n   OAuth clients bring to bear added considerations with respect to\n   protecting tokens.  The most straightforward XSS-based attack is for\n   an attacker to exfiltrate a token and use it themselves completely\n   independent of the legitimate client.  A stolen access token is used\n   for protected resource access, and a stolen refresh token is used for\n   obtaining new access tokens.  If the private key is non-extractable\n   (as is possible with [W3C.WebCryptoAPI]), DPoP renders exfiltrated\n   tokens alone unusable.\n\n   XSS vulnerabilities also allow an attacker to execute code in the\n   context of the browser-based client application and maliciously use a\n   token indirectly through the client.  That execution context has\n   access to utilize the signing key; thus, it can produce DPoP proofs\n   to use in conjunction with the token.  At this application layer,\n   there is most likely no feasible defense against this threat except\n   generally preventing XSS; therefore, it is considered out of scope\n   for DPoP.\n\n   Malicious XSS code executed in the context of the browser-based\n   client application is also in a position to create DPoP proofs with\n   timestamp values in the future and exfiltrate them in conjunction\n   with a token.  These stolen artifacts can later be used independent\n   of the client application to access protected resources.  To prevent\n   this, servers can optionally require clients to include a server-\n   chosen value into the proof that cannot be predicted by an attacker\n   (nonce).  In the absence of the optional nonce, the impact of pre-\n   computed DPoP proofs is limited somewhat by the proof being bound to\n   an access token on protected resource access.  Because a proof\n   covering an access token that does not yet exist cannot feasibly be\n   created, access tokens obtained with an exfiltrated refresh token and\n   pre-computed proofs will be unusable.\n\n   Additional security considerations are discussed in Section 11.\n\n3.  Concept\n\n   The main data structure introduced by this specification is a DPoP\n   proof JWT that is sent as a header in an HTTP request, as described\n   in detail below.  A client uses a DPoP proof JWT to prove the\n   possession of a private key corresponding to a certain public key.\n\n   Roughly speaking, a DPoP proof is a signature over:\n\n   *  some data of the HTTP request to which it is attached,\n\n   *  a timestamp,\n\n   *  a unique identifier,\n\n   *  an optional server-provided nonce, and\n\n   *  a hash of the associated access token when an access token is\n      present within the request.\n\n   +--------+                                          +---------------+\n   |        |--(A)-- Token Request -------------------&gt;|               |\n   | Client |        (DPoP Proof)                      | Authorization |\n   |        |                                          |     Server    |\n   |        |&lt;-(B)-- DPoP-Bound Access Token ----------|               |\n   |        |        (token_type=DPoP)                 +---------------+\n   |        |\n   |        |\n   |        |                                          +---------------+\n   |        |--(C)-- DPoP-Bound Access Token ---------&gt;|               |\n   |        |        (DPoP Proof)                      |    Resource   |\n   |        |                                          |     Server    |\n   |        |&lt;-(D)-- Protected Resource ---------------|               |\n   |        |                                          +---------------+\n   +--------+\n\n                         Figure 1: Basic DPoP Flow\n\n   The basic steps of an OAuth flow with DPoP (without the optional\n   nonce) are shown in Figure 1.\n\n   A.  In the token request, the client sends an authorization grant\n       (e.g., an authorization code, refresh token, etc.) to the\n       authorization server in order to obtain an access token (and\n       potentially a refresh token).  The client attaches a DPoP proof\n       to the request in an HTTP header.\n\n   B.  The authorization server binds (sender-constrains) the access\n       token to the public key claimed by the client in the DPoP proof;\n       that is, the access token cannot be used without proving\n       possession of the respective private key.  If a refresh token is\n       issued to a public client, it is also bound to the public key of\n       the DPoP proof.\n\n   C.  To use the access token, the client has to prove possession of\n       the private key by, again, adding a header to the request that\n       carries a DPoP proof for that request.  The resource server needs\n       to receive information about the public key to which the access\n       token is bound.  This information may be encoded directly into\n       the access token (for JWT-structured access tokens) or provided\n       via token introspection endpoint (not shown).  The resource\n       server verifies that the public key to which the access token is\n       bound matches the public key of the DPoP proof.  It also verifies\n       that the access token hash in the DPoP proof matches the access\n       token presented in the request.\n\n   D.  The resource server refuses to serve the request if the signature\n       check fails or if the data in the DPoP proof is wrong, e.g., the\n       target URI does not match the URI claim in the DPoP proof JWT.\n       The access token itself, of course, must also be valid in all\n       other respects.\n\n   The DPoP mechanism presented herein is not a client authentication\n   method.  In fact, a primary use case of DPoP is for public clients\n   (e.g., single-page applications and applications on a user's device)\n   that do not use client authentication.  Nonetheless, DPoP is designed\n   to be compatible with private_key_jwt and all other client\n   authentication methods.\n\n   DPoP does not directly ensure message integrity, but it relies on the\n   TLS layer for that purpose.  See Section 11 for details.\n\n4.  DPoP Proof JWTs\n\n   DPoP introduces the concept of a DPoP proof, which is a JWT created\n   by the client and sent with an HTTP request using the DPoP header\n   field.  Each HTTP request requires a unique DPoP proof.\n\n   A valid DPoP proof demonstrates to the server that the client holds\n   the private key that was used to sign the DPoP proof JWT.  This\n   enables authorization servers to bind issued tokens to the\n   corresponding public key (as described in Section 5) and enables\n   resource servers to verify the key-binding of tokens that it receives\n   (see Section 7.1), which prevents said tokens from being used by any\n   entity that does not have access to the private key.\n\n   The DPoP proof demonstrates possession of a key and, by itself, is\n   not an authentication or access control mechanism.  When presented in\n   conjunction with a key-bound access token as described in\n   Section 7.1, the DPoP proof provides additional assurance about the\n   legitimacy of the client to present the access token.  However, a\n   valid DPoP proof JWT is not sufficient alone to make access control\n   decisions.\n\n4.1.  The DPoP HTTP Header\n\n   A DPoP proof is included in an HTTP request using the following\n   request header field.\n\n   DPoP:  A JWT that adheres to the structure and syntax of Section 4.2.\n\n   Figure 2 shows an example DPoP HTTP header field.  The example uses\n   \"\\\" line wrapping per [RFC8792].\n\n   DPoP: eyJ0eXAiOiJkcG9wK2p3dCIsImFsZyI6IkVTMjU2IiwiandrIjp7Imt0eSI6Ik\\\n    VDIiwieCI6Imw4dEZyaHgtMzR0VjNoUklDUkRZOXpDa0RscEJoRjQyVVFVZldWQVdCR\\\n    nMiLCJ5IjoiOVZFNGpmX09rX282NHpiVFRsY3VOSmFqSG10NnY5VERWclUwQ2R2R1JE\\\n    QSIsImNydiI6IlAtMjU2In19.eyJqdGkiOiItQndDM0VTYzZhY2MybFRjIiwiaHRtIj\\\n    oiUE9TVCIsImh0dSI6Imh0dHBzOi8vc2VydmVyLmV4YW1wbGUuY29tL3Rva2VuIiwia\\\n    WF0IjoxNTYyMjYyNjE2fQ.2-GxA6T8lP4vfrg8v-FdWP0A0zdrj8igiMLvqRMUvwnQg\\\n    4PtFLbdLXiOSsX0x7NVY-FNyJK70nfbV37xRZT3Lg\n\n                       Figure 2: Example DPoP Header\n\n   Note that per [RFC9110], header field names are case insensitive;\n   thus, DPoP, DPOP, dpop, etc., are all valid and equivalent header\n   field names.  However, case is significant in the header field value.\n\n   The DPoP HTTP header field value uses the token68 syntax defined in\n   Section 11.2 of [RFC9110] and is repeated below in Figure 3 for ease\n   of reference.\n\n   DPoP       = token68\n   token68    = 1*( ALPHA / DIGIT /\n                    \"-\" / \".\" / \"_\" / \"~\" / \"+\" / \"/\" ) *\"=\"\n\n                      Figure 3: DPoP Header Field ABNF\n\n4.2.  DPoP Proof JWT Syntax\n\n   A DPoP proof is a JWT [RFC7519] that is signed (using JSON Web\n   Signature (JWS) [RFC7515]) with a private key chosen by the client\n   (see below).  The JOSE Header of a DPoP JWT MUST contain at least the\n   following parameters:\n\n   typ:  A field with the value dpop+jwt, which explicitly types the\n      DPoP proof JWT as recommended in Section 3.11 of [RFC8725].\n\n   alg:  An identifier for a JWS asymmetric digital signature algorithm\n      from [IANA.JOSE.ALGS].  It MUST NOT be none or an identifier for a\n      symmetric algorithm (Message Authentication Code (MAC)).\n\n   jwk:  Represents the public key chosen by the client in JSON Web Key\n      (JWK) [RFC7517] format as defined in Section 4.1.3 of [RFC7515].\n      It MUST NOT contain a private key.\n\n   The payload of a DPoP proof MUST contain at least the following\n   claims:\n\n   jti:  Unique identifier for the DPoP proof JWT.  The value MUST be\n      assigned such that there is a negligible probability that the same\n      value will be assigned to any other DPoP proof used in the same\n      context during the time window of validity.  Such uniqueness can\n      be accomplished by encoding (base64url or any other suitable\n      encoding) at least 96 bits of pseudorandom data or by using a\n      version 4 Universally Unique Identifier (UUID) string according to\n      [RFC4122].  The jti can be used by the server for replay detection\n      and prevention; see Section 11.1.\n\n   htm:  The value of the HTTP method (Section 9.1 of [RFC9110]) of the\n      request to which the JWT is attached.\n\n   htu:  The HTTP target URI (Section 7.1 of [RFC9110]) of the request\n      to which the JWT is attached, without query and fragment parts.\n\n   iat:  Creation timestamp of the JWT (Section 4.1.6 of [RFC7519]).\n\n   When the DPoP proof is used in conjunction with the presentation of\n   an access token in protected resource access (see Section 7), the\n   DPoP proof MUST also contain the following claim:\n\n   ath:  Hash of the access token.  The value MUST be the result of a\n      base64url encoding (as defined in Section 2 of [RFC7515]) the\n      SHA-256 [SHS] hash of the ASCII encoding of the associated access\n      token's value.\n\n   When the authentication server or resource server provides a DPoP-\n   Nonce HTTP header in a response (see Sections 8 and 9), the DPoP\n   proof MUST also contain the following claim:\n\n   nonce:  A recent nonce provided via the DPoP-Nonce HTTP header.\n\n   A DPoP proof MAY contain other JOSE Header Parameters or claims as\n   defined by extension, profile, or deployment-specific requirements.\n\n   Figure 4 is a conceptual example showing the decoded content of the\n   DPoP proof in Figure 2.  The JSON of the JWT header and payload are\n   shown, but the signature part is omitted.  As usual, line breaks and\n   extra spaces are included for formatting and readability.\n\n   {\n     \"typ\":\"dpop+jwt\",\n     \"alg\":\"ES256\",\n     \"jwk\": {\n       \"kty\":\"EC\",\n       \"x\":\"l8tFrhx-34tV3hRICRDY9zCkDlpBhF42UQUfWVAWBFs\",\n       \"y\":\"9VE4jf_Ok_o64zbTTlcuNJajHmt6v9TDVrU0CdvGRDA\",\n       \"crv\":\"P-256\"\n     }\n   }\n   .\n   {\n     \"jti\":\"-BwC3ESc6acc2lTc\",\n     \"htm\":\"POST\",\n     \"htu\":\"https://server.example.com/token\",\n     \"iat\":1562262616\n   }\n\n               Figure 4: Example JWT Content of a DPoP Proof\n\n   Of the HTTP request, only the HTTP method and URI are included in the\n   DPoP JWT; therefore, only these two message parts are covered by the\n   DPoP proof.  The idea is to sign just enough of the HTTP data to\n   provide reasonable proof of possession with respect to the HTTP\n   request.  This design approach of using only a minimal subset of the\n   HTTP header data is to avoid the substantial difficulties inherent in\n   attempting to normalize HTTP messages.  Nonetheless, DPoP proofs can\n   be extended to contain other information of the HTTP request (see\n   also Section 11.7).\n\n4.3.  Checking DPoP Proofs\n\n   To validate a DPoP proof, the receiving server MUST ensure the\n   following:\n\n   1.   There is not more than one DPoP HTTP request header field.\n   2.   The DPoP HTTP request header field value is a single and well-\n        formed JWT.\n   3.   All required claims per Section 4.2 are contained in the JWT.\n   4.   The typ JOSE Header Parameter has the value dpop+jwt.\n   5.   The alg JOSE Header Parameter indicates a registered asymmetric\n        digital signature algorithm [IANA.JOSE.ALGS], is not none, is\n        supported by the application, and is acceptable per local\n        policy.\n   6.   The JWT signature verifies with the public key contained in the\n        jwk JOSE Header Parameter.\n   7.   The jwk JOSE Header Parameter does not contain a private key.\n   8.   The htm claim matches the HTTP method of the current request.\n   9.   The htu claim matches the HTTP URI value for the HTTP request in\n        which the JWT was received, ignoring any query and fragment\n        parts.\n   10.  If the server provided a nonce value to the client, the nonce\n        claim matches the server-provided nonce value.\n   11.  The creation time of the JWT, as determined by either the iat\n        claim or a server managed timestamp via the nonce claim, is\n        within an acceptable window (see Section 11.1).\n   12.  If presented to a protected resource in conjunction with an\n        access token,\n        *  ensure that the value of the ath claim equals the hash of\n           that access token, and\n        *  confirm that the public key to which the access token is\n           bound matches the public key from the DPoP proof.\n\n   To reduce the likelihood of false negatives, servers SHOULD employ\n   syntax-based normalization (Section 6.2.2 of [RFC3986]) and scheme-\n   based normalization (Section 6.2.3 of [RFC3986]) before comparing the\n   htu claim.\n\n   These checks may be performed in any order.\n\n5.  DPoP Access Token Request\n\n   To request an access token that is bound to a public key using DPoP,\n   the client MUST provide a valid DPoP proof JWT in a DPoP header when\n   making an access token request to the authorization server's token\n   endpoint.  This is applicable for all access token requests\n   regardless of grant type (e.g., the common authorization_code and\n   refresh_token grant types and extension grants such as the JWT\n   authorization grant [RFC7523]).  The HTTP request shown in Figure 5\n   illustrates such an access token request using an authorization code\n   grant with a DPoP proof JWT in the DPoP header.  Figure 5 uses \"\\\"\n   line wrapping per [RFC8792].\n\n   POST /token HTTP/1.1\n   Host: server.example.com\n   Content-Type: application/x-www-form-urlencoded\n   DPoP: eyJ0eXAiOiJkcG9wK2p3dCIsImFsZyI6IkVTMjU2IiwiandrIjp7Imt0eSI6Ik\\\n    VDIiwieCI6Imw4dEZyaHgtMzR0VjNoUklDUkRZOXpDa0RscEJoRjQyVVFVZldWQVdCR\\\n    nMiLCJ5IjoiOVZFNGpmX09rX282NHpiVFRsY3VOSmFqSG10NnY5VERWclUwQ2R2R1JE\\\n    QSIsImNydiI6IlAtMjU2In19.eyJqdGkiOiItQndDM0VTYzZhY2MybFRjIiwiaHRtIj\\\n    oiUE9TVCIsImh0dSI6Imh0dHBzOi8vc2VydmVyLmV4YW1wbGUuY29tL3Rva2VuIiwia\\\n    WF0IjoxNTYyMjYyNjE2fQ.2-GxA6T8lP4vfrg8v-FdWP0A0zdrj8igiMLvqRMUvwnQg\\\n    4PtFLbdLXiOSsX0x7NVY-FNyJK70nfbV37xRZT3Lg\n\n   grant_type=authorization_code\\\n   &amp;client_id=s6BhdRkqt\\\n   &amp;code=SplxlOBeZQQYbYS6WxSbIA\n   &amp;redirect_uri=https%3A%2F%2Fclient%2Eexample%2Ecom%2Fcb\\\n   &amp;code_verifier=bEaL42izcC-o-xBk0K2vuJ6U-y1p9r_wW2dFWIWgjz-\n\n    Figure 5: Token Request for a DPoP Sender-Constrained Token Using an\n                             Authorization Code\n\n   The DPoP HTTP header field MUST contain a valid DPoP proof JWT.  If\n   the DPoP proof is invalid, the authorization server issues an error\n   response per Section 5.2 of [RFC6749] with invalid_dpop_proof as the\n   value of the error parameter.\n\n   To sender-constrain the access token after checking the validity of\n   the DPoP proof, the authorization server associates the issued access\n   token with the public key from the DPoP proof, which can be\n   accomplished as described in Section 6.  A token_type of DPoP MUST be\n   included in the access token response to signal to the client that\n   the access token was bound to its DPoP key and can be used as\n   described in Section 7.1.  The example response shown in Figure 6\n   illustrates such a response.\n\n   HTTP/1.1 200 OK\n   Content-Type: application/json\n   Cache-Control: no-store\n\n   {\n    \"access_token\": \"Kz~8mXK1EalYznwH-LC-1fBAo.4Ljp~zsPE_NeO.gxU\",\n    \"token_type\": \"DPoP\",\n    \"expires_in\": 2677,\n    \"refresh_token\": \"Q..Zkm29lexi8VnWg2zPW1x-tgGad0Ibc3s3EwM_Ni4-g\"\n   }\n\n                      Figure 6: Access Token Response\n\n   The example response in Figure 6 includes a refresh token that the\n   client can use to obtain a new access token when the previous one\n   expires.  Refreshing an access token is a token request using the\n   refresh_token grant type made to the authorization server's token\n   endpoint.  As with all access token requests, the client makes it a\n   DPoP request by including a DPoP proof, as shown in Figure 7.\n   Figure 7 uses \"\\\" line wrapping per [RFC8792].\n\n   POST /token HTTP/1.1\n   Host: server.example.com\n   Content-Type: application/x-www-form-urlencoded\n   DPoP: eyJ0eXAiOiJkcG9wK2p3dCIsImFsZyI6IkVTMjU2IiwiandrIjp7Imt0eSI6Ik\\\n    VDIiwieCI6Imw4dEZyaHgtMzR0VjNoUklDUkRZOXpDa0RscEJoRjQyVVFVZldWQVdCR\\\n    nMiLCJ5IjoiOVZFNGpmX09rX282NHpiVFRsY3VOSmFqSG10NnY5VERWclUwQ2R2R1JE\\\n    QSIsImNydiI6IlAtMjU2In19.eyJqdGkiOiItQndDM0VTYzZhY2MybFRjIiwiaHRtIj\\\n    oiUE9TVCIsImh0dSI6Imh0dHBzOi8vc2VydmVyLmV4YW1wbGUuY29tL3Rva2VuIiwia\\\n    WF0IjoxNTYyMjY1Mjk2fQ.pAqut2IRDm_De6PR93SYmGBPXpwrAk90e8cP2hjiaG5Qs\\\n    GSuKDYW7_X620BxqhvYC8ynrrvZLTk41mSRroapUA\n\n   grant_type=refresh_token\\\n   &amp;client_id=s6BhdRkqt\\\n   &amp;refresh_token=Q..Zkm29lexi8VnWg2zPW1x-tgGad0Ibc3s3EwM_Ni4-g\n\n    Figure 7: Token Request for a DPoP-Bound Token Using a Refresh Token\n\n   When an authorization server supporting DPoP issues a refresh token\n   to a public client that presents a valid DPoP proof at the token\n   endpoint, the refresh token MUST be bound to the respective public\n   key.  The binding MUST be validated when the refresh token is later\n   presented to get new access tokens.  As a result, such a client MUST\n   present a DPoP proof for the same key that was used to obtain the\n   refresh token each time that refresh token is used to obtain a new\n   access token.  The implementation details of the binding of the\n   refresh token are at the discretion of the authorization server.\n   Since the authorization server both produces and validates its\n   refresh tokens, there is no interoperability consideration in the\n   specific details of the binding.\n\n   An authorization server MAY elect to issue access tokens that are not\n   DPoP bound, which is signaled to the client with a value of Bearer in\n   the token_type parameter of the access token response per [RFC6750].\n   For a public client that is also issued a refresh token, this has the\n   effect of DPoP-binding the refresh token alone, which can improve the\n   security posture even when protected resources are not updated to\n   support DPoP.\n\n   If the access token response contains a different token_type value\n   than DPoP, the access token protection provided by DPoP is not given.\n   The client MUST discard the response in this case if this protection\n   is deemed important for the security of the application; otherwise,\n   the client may continue as in a regular OAuth interaction.\n\n   Refresh tokens issued to confidential clients (those having\n   established authentication credentials with the authorization server)\n   are not bound to the DPoP proof public key because they are already\n   sender-constrained with a different existing mechanism.  The OAuth\n   2.0 Authorization Framework [RFC6749] already requires that an\n   authorization server bind refresh tokens to the client to which they\n   were issued and that confidential clients authenticate to the\n   authorization server when presenting a refresh token.  As a result,\n   such refresh tokens are sender-constrained by way of the client\n   identifier and the associated authentication requirement.  This\n   existing sender-constraining mechanism is more flexible (e.g., it\n   allows credential rotation for the client without invalidating\n   refresh tokens) than binding directly to a particular public key.\n\n5.1.  Authorization Server Metadata\n\n   This document introduces the following authorization server metadata\n   [RFC8414] parameter to signal support for DPoP in general and the\n   specific JWS alg values the authorization server supports for DPoP\n   proof JWTs.\n\n   dpop_signing_alg_values_supported:  A JSON array containing a list of\n      the JWS alg values (from the [IANA.JOSE.ALGS] registry) supported\n      by the authorization server for DPoP proof JWTs.\n\n5.2.  Client Registration Metadata\n\n   The Dynamic Client Registration Protocol [RFC7591] defines an API for\n   dynamically registering OAuth 2.0 client metadata with authorization\n   servers.  The metadata defined by [RFC7591], and registered\n   extensions to it, also imply a general data model for clients that is\n   useful for authorization server implementations even when the Dynamic\n   Client Registration Protocol isn't in play.  Such implementations\n   will typically have some sort of user interface available for\n   managing client configuration.\n\n   This document introduces the following client registration metadata\n   [RFC7591] parameter to indicate that the client always uses DPoP when\n   requesting tokens from the authorization server.\n\n   dpop_bound_access_tokens:  A boolean value specifying whether the\n      client always uses DPoP for token requests.  If omitted, the\n      default value is false.\n\n   If the value is true, the authorization server MUST reject token\n   requests from the client that do not contain the DPoP header.\n\n6.  Public Key Confirmation\n\n   Resource servers MUST be able to reliably identify whether an access\n   token is DPoP-bound and ascertain sufficient information to verify\n   the binding to the public key of the DPoP proof (see Section 7.1).\n   Such a binding is accomplished by associating the public key with the\n   token in a way that can be accessed by the protected resource, such\n   as embedding the JWK hash in the issued access token directly, using\n   the syntax described in Section 6.1, or through token introspection\n   as described in Section 6.2.  Other methods of associating a public\n   key with an access token are possible per an agreement by the\n   authorization server and the protected resource; however, they are\n   beyond the scope of this specification.\n\n   Resource servers supporting DPoP MUST ensure that the public key from\n   the DPoP proof matches the one bound to the access token.\n\n6.1.  JWK Thumbprint Confirmation Method\n\n   When access tokens are represented as JWTs [RFC7519], the public key\n   information is represented using the jkt confirmation method member\n   defined herein.  To convey the hash of a public key in a JWT, this\n   specification introduces the following JWT Confirmation Method\n   [RFC7800] member for use under the cnf claim.\n\n   jkt:  JWK SHA-256 Thumbprint confirmation method.  The value of the\n      jkt member MUST be the base64url encoding (as defined in\n      [RFC7515]) of the JWK SHA-256 Thumbprint (according to [RFC7638])\n      of the DPoP public key (in JWK format) to which the access token\n      is bound.\n\n   The following example JWT in Figure 8 with a decoded JWT payload\n   shown in Figure 9 contains a cnf claim with the jkt JWK Thumbprint\n   confirmation method member.  The jkt value in these examples is the\n   hash of the public key from the DPoP proofs in the examples shown in\n   Section 5.  The example uses \"\\\" line wrapping per [RFC8792].\n\n   eyJhbGciOiJFUzI1NiIsImtpZCI6IkJlQUxrYiJ9.eyJzdWIiOiJzb21lb25lQGV4YW1\\\n   wbGUuY29tIiwiaXNzIjoiaHR0cHM6Ly9zZXJ2ZXIuZXhhbXBsZS5jb20iLCJuYmYiOjE\\\n   1NjIyNjI2MTEsImV4cCI6MTU2MjI2NjIxNiwiY25mIjp7ImprdCI6IjBaY09DT1JaTll\\\n   5LURXcHFxMzBqWnlKR0hUTjBkMkhnbEJWM3VpZ3VBNEkifX0.3Tyo8VTcn6u_PboUmAO\\\n   YUY1kfAavomW_YwYMkmRNizLJoQzWy2fCo79Zi5yObpIzjWb5xW4OGld7ESZrh0fsrA\n\n       Figure 8: JWT Containing a JWK SHA-256 Thumbprint Confirmation\n\n   {\n     \"sub\":\"someone@example.com\",\n     \"iss\":\"https://server.example.com\",\n     \"nbf\":1562262611,\n     \"exp\":1562266216,\n     \"cnf\":\n     {\n       \"jkt\":\"0ZcOCORZNYy-DWpqq30jZyJGHTN0d2HglBV3uiguA4I\"\n     }\n   }\n\n    Figure 9: JWT Claims Set with a JWK SHA-256 Thumbprint Confirmation\n\n6.2.  JWK Thumbprint Confirmation Method in Token Introspection\n\n   \"OAuth 2.0 Token Introspection\" [RFC7662] defines a method for a\n   protected resource to query an authorization server about the active\n   state of an access token.  The protected resource also determines\n   metainformation about the token.\n\n   For a DPoP-bound access token, the hash of the public key to which\n   the token is bound is conveyed to the protected resource as\n   metainformation in a token introspection response.  The hash is\n   conveyed using the same cnf content with jkt member structure as the\n   JWK Thumbprint confirmation method, described in Section 6.1, as a\n   top-level member of the introspection response JSON.  Note that the\n   resource server does not send a DPoP proof with the introspection\n   request, and the authorization server does not validate an access\n   token's DPoP binding at the introspection endpoint.  Rather, the\n   resource server uses the data of the introspection response to\n   validate the access token binding itself locally.\n\n   If the token_type member is included in the introspection response,\n   it MUST contain the value DPoP.\n\n   The example introspection request in Figure 10 and corresponding\n   response in Figure 11 illustrate an introspection exchange for the\n   example DPoP-bound access token that was issued in Figure 6.\n\n   POST /as/introspect.oauth2 HTTP/1.1\n   Host: server.example.com\n   Content-Type: application/x-www-form-urlencoded\n   Authorization: Basic cnM6cnM6TWt1LTZnX2xDektJZHo0ZnNON2tZY3lhK1Rp\n\n   token=Kz~8mXK1EalYznwH-LC-1fBAo.4Ljp~zsPE_NeO.gxU\n\n                  Figure 10: Example Introspection Request\n\n   HTTP/1.1 200 OK\n   Content-Type: application/json\n   Cache-Control: no-store\n\n   {\n     \"active\": true,\n     \"sub\": \"someone@example.com\",\n     \"iss\": \"https://server.example.com\",\n     \"nbf\": 1562262611,\n     \"exp\": 1562266216,\n     \"cnf\":\n     {\n       \"jkt\": \"0ZcOCORZNYy-DWpqq30jZyJGHTN0d2HglBV3uiguA4I\"\n     }\n   }\n\n     Figure 11: Example Introspection Response for a DPoP-Bound Access\n                                   Token\n\n7.  Protected Resource Access\n\n   Requests to DPoP-protected resources MUST include both a DPoP proof\n   as per Section 4 and the access token as described in Section 7.1.\n   The DPoP proof MUST include the ath claim with a valid hash of the\n   associated access token.\n\n   Binding the token value to the proof in this way prevents a proof to\n   be used with multiple different access token values across different\n   requests.  For example, if a client holds tokens bound to two\n   different resource owners, AT1 and AT2, and uses the same key when\n   talking to the authorization server, it's possible that these tokens\n   could be swapped.  Without the ath field to bind it, a captured\n   signature applied to AT1 could be replayed with AT2 instead, changing\n   the rights and access of the intended request.  This same\n   substitution prevention remains for rotated access tokens within the\n   same combination of client and resource owner -- a rotated token\n   value would require the calculation of a new proof.  This binding\n   additionally ensures that a proof intended for use with the access\n   token is not usable without an access token, or vice-versa.\n\n   The resource server is required to calculate the hash of the token\n   value presented and verify that it is the same as the hash value in\n   the ath field as described in Section 4.3.  Since the ath field value\n   is covered by the DPoP proof's signature, its inclusion binds the\n   access token value to the holder of the key used to generate the\n   signature.\n\n   Note that the ath field alone does not prevent replay of the DPoP\n   proof or provide binding to the request in which the proof is\n   presented, and it is still important to check the time window of the\n   proof as well as the included message parameters, such as htm and\n   htu.\n\n7.1.  The DPoP Authentication Scheme\n\n   A DPoP-bound access token is sent using the Authorization request\n   header field per Section 11.6.2 of [RFC9110] with an authentication\n   scheme of DPoP.  The syntax of the Authorization header field for the\n   DPoP scheme uses the token68 syntax defined in Section 11.2 of\n   [RFC9110] for credentials and is repeated below for ease of\n   reference.  The ABNF notation syntax for DPoP authentication scheme\n   credentials is as follows:\n\n   token68    = 1*( ALPHA / DIGIT /\n                    \"-\" / \".\" / \"_\" / \"~\" / \"+\" / \"/\" ) *\"=\"\n\n   credentials = \"DPoP\" 1*SP token68\n\n                 Figure 12: DPoP Authentication Scheme ABNF\n\n   For such an access token, a resource server MUST check that a DPoP\n   proof was also received in the DPoP header field of the HTTP request,\n   check the DPoP proof according to the rules in Section 4.3, and check\n   that the public key of the DPoP proof matches the public key to which\n   the access token is bound per Section 6.\n\n   The resource server MUST NOT grant access to the resource unless all\n   checks are successful.\n\n   Figure 13 shows an example request to a protected resource with a\n   DPoP-bound access token in the Authorization header and the DPoP\n   proof in the DPoP header.  The example uses \"\\\" line wrapping per\n   [RFC8792].  Figure 14 shows the decoded content of that DPoP proof.\n   The JSON of the JWT header and payload are shown, but the signature\n   part is omitted.  As usual, line breaks and indentation are included\n   for formatting and readability.\n\n   GET /protectedresource HTTP/1.1\n   Host: resource.example.org\n   Authorization: DPoP Kz~8mXK1EalYznwH-LC-1fBAo.4Ljp~zsPE_NeO.gxU\n   DPoP: eyJ0eXAiOiJkcG9wK2p3dCIsImFsZyI6IkVTMjU2IiwiandrIjp7Imt0eSI6Ik\\\n    VDIiwieCI6Imw4dEZyaHgtMzR0VjNoUklDUkRZOXpDa0RscEJoRjQyVVFVZldWQVdCR\\\n    nMiLCJ5IjoiOVZFNGpmX09rX282NHpiVFRsY3VOSmFqSG10NnY5VERWclUwQ2R2R1JE\\\n    QSIsImNydiI6IlAtMjU2In19.eyJqdGkiOiJlMWozVl9iS2ljOC1MQUVCIiwiaHRtIj\\\n    oiR0VUIiwiaHR1IjoiaHR0cHM6Ly9yZXNvdXJjZS5leGFtcGxlLm9yZy9wcm90ZWN0Z\\\n    WRyZXNvdXJjZSIsImlhdCI6MTU2MjI2MjYxOCwiYXRoIjoiZlVIeU8ycjJaM0RaNTNF\\\n    c05yV0JiMHhXWG9hTnk1OUlpS0NBcWtzbVFFbyJ9.2oW9RP35yRqzhrtNP86L-Ey71E\\\n    OptxRimPPToA1plemAgR6pxHF8y6-yqyVnmcw6Fy1dqd-jfxSYoMxhAJpLjA\n\n                 Figure 13: DPoP-Protected Resource Request\n\n   {\n     \"typ\":\"dpop+jwt\",\n     \"alg\":\"ES256\",\n     \"jwk\": {\n       \"kty\":\"EC\",\n       \"x\":\"l8tFrhx-34tV3hRICRDY9zCkDlpBhF42UQUfWVAWBFs\",\n       \"y\":\"9VE4jf_Ok_o64zbTTlcuNJajHmt6v9TDVrU0CdvGRDA\",\n       \"crv\":\"P-256\"\n     }\n   }\n   .\n   {\n     \"jti\":\"e1j3V_bKic8-LAEB\",\n     \"htm\":\"GET\",\n     \"htu\":\"https://resource.example.org/protectedresource\",\n     \"iat\":1562262618,\n     \"ath\":\"fUHyO2r2Z3DZ53EsNrWBb0xWXoaNy59IiKCAqksmQEo\"\n   }\n\n       Figure 14: Decoded Content of the DPoP Proof JWT in Figure 13\n\n   Upon receipt of a request to a protected resource within the\n   protection space requiring DPoP authentication, the server can\n   respond with a challenge to the client to provide DPoP authentication\n   information if the request does not include valid credentials or does\n   not contain an access token sufficient for access.  Such a challenge\n   is made using the 401 (Unauthorized) response status code ([RFC9110],\n   Section 15.5.2) and the WWW-Authenticate header field ([RFC9110],\n   Section 11.6.1).  The server MAY include the WWW-Authenticate header\n   in response to other conditions as well.\n\n   In such challenges:\n\n   *  The scheme name is DPoP.\n   *  The authentication parameter realm MAY be included to indicate the\n      scope of protection in the manner described in [RFC9110],\n      Section 11.5.\n   *  A scope authentication parameter MAY be included as defined in\n      [RFC6750], Section 3.\n   *  An error parameter ([RFC6750], Section 3) SHOULD be included to\n      indicate the reason why the request was declined, if the request\n      included an access token but failed authentication.  The error\n      parameter values described in [RFC6750], Section 3.1 are suitable,\n      as are any appropriate values defined by extension.  The value\n      use_dpop_nonce can be used as described in Section 9 to signal\n      that a nonce is needed in the DPoP proof of a subsequent\n      request(s).  Additionally, invalid_dpop_proof is used to indicate\n      that the DPoP proof itself was deemed invalid based on the\n      criteria of Section 4.3.\n   *  An error_description parameter ([RFC6750], Section 3) MAY be\n      included along with the error parameter to provide developers a\n      human-readable explanation that is not meant to be displayed to\n      end-users.\n   *  An algs parameter SHOULD be included to signal to the client the\n      JWS algorithms that are acceptable for the DPoP proof JWT.  The\n      value of the parameter is a space-delimited list of JWS alg\n      (Algorithm) header values ([RFC7515], Section 4.1.1).\n   *  Additional authentication parameters MAY be used, and unknown\n      parameters MUST be ignored by recipients.\n\n   Figure 15 shows a response to a protected resource request without\n   authentication.\n\n    HTTP/1.1 401 Unauthorized\n    WWW-Authenticate: DPoP algs=\"ES256 PS256\"\n\n    Figure 15: HTTP 401 Response to a Protected Resource Request without\n                               Authentication\n\n   Figure 16 shows a response to a protected resource request that was\n   rejected due to the failed confirmation of the DPoP binding in the\n   access token.  Figure 16 uses \"\\\" line wrapping per [RFC8792].\n\n   HTTP/1.1 401 Unauthorized\n   WWW-Authenticate: DPoP error=\"invalid_token\", \\\n      error_description=\"Invalid DPoP key binding\", algs=\"ES256\"\n\n     Figure 16: HTTP 401 Response to a Protected Resource Request with\n                              an Invalid Token\n\n   Note that browser-based client applications using Cross-Origin\n   Resource Sharing (CORS) [WHATWG.Fetch] only have access to CORS-\n   safelisted response HTTP headers by default.  In order for the\n   application to obtain and use the WWW-Authenticate HTTP response\n   header value, the server needs to make it available to the\n   application by including WWW-Authenticate in the Access-Control-\n   Expose-Headers response header list value.\n\n   This authentication scheme is for origin-server authentication only.\n   Therefore, this authentication scheme MUST NOT be used with the\n   Proxy-Authenticate or Proxy-Authorization header fields.\n\n   Note that the syntax of the Authorization header field for this\n   authentication scheme follows the usage of the Bearer scheme defined\n   in Section 2.1 of [RFC6750].  While it is not the preferred\n   credential syntax of [RFC9110], it is compatible with the general\n   authentication framework therein and is used for consistency and\n   familiarity with the Bearer scheme.\n\n7.2.  Compatibility with the Bearer Authentication Scheme\n\n   Protected resources simultaneously supporting both the DPoP and\n   Bearer schemes need to update how the evaluation process is performed\n   for bearer tokens to prevent downgraded usage of a DPoP-bound access\n   token.  Specifically, such a protected resource MUST reject a DPoP-\n   bound access token received as a bearer token per [RFC6750].\n\n   Section 11.6.1 of [RFC9110] allows a protected resource to indicate\n   support for multiple authentication schemes (i.e., Bearer and DPoP)\n   with the WWW-Authenticate header field of a 401 (Unauthorized)\n   response.\n\n   A protected resource that supports only [RFC6750] and is unaware of\n   DPoP would most presumably accept a DPoP-bound access token as a\n   bearer token (JWT [RFC7519] says to ignore unrecognized claims,\n   Introspection [RFC7662] says that other parameters might be present\n   while placing no functional requirements on their presence, and\n   [RFC6750] is effectively silent on the content of the access token\n   since it relates to validity).  As such, a client can send a DPoP-\n   bound access token using the Bearer scheme upon receipt of a WWW-\n   Authenticate: Bearer challenge from a protected resource (or it can\n   send a DPoP-bound access token if it has prior knowledge of the\n   capabilities of the protected resource).  The effect of this likely\n   simplifies the logistics of phased upgrades to protected resources in\n   their support DPoP or prolonged deployments of protected resources\n   with mixed token type support.\n\n   If a protected resource supporting both Bearer and DPoP schemes\n   elects to respond with multiple WWW-Authenticate challenges,\n   attention should be paid to which challenge(s) should deliver the\n   actual error information.  It is RECOMMENDED that the following rules\n   be adhered to:\n\n   *  If no authentication information has been included with the\n      request, then the challenges SHOULD NOT include an error code or\n      other error information, as per Section 3.1 of [RFC6750]\n      (Figure 17).\n\n   *  If the mechanism used to attempt authentication could be\n      established unambiguously, then the corresponding challenge SHOULD\n      be used to deliver error information (Figure 18).\n\n   *  Otherwise, both Bearer and DPoP challenges MAY be used to deliver\n      error information (Figure 19).\n\n   The following examples use \"\\\" line wrapping per [RFC8792].\n\n   GET /protectedresource HTTP/1.1\n   Host: resource.example.org\n\n   HTTP/1.1 401 Unauthorized\n   WWW-Authenticate: Bearer, DPoP algs=\"ES256 PS256\"\n\n    Figure 17: HTTP 401 Response to a Protected Resource Request without\n                               Authentication\n\n   GET /protectedresource HTTP/1.1\n   Host: resource.example.org\n   Authorization: Bearer INVALID_TOKEN\n\n   HTTP/1.1 401 Unauthorized\n   WWW-Authenticate: Bearer error=\"invalid_token\", \\\n       error_description=\"Invalid token\", DPoP algs=\"ES256 PS256\"\n\n     Figure 18: HTTP 401 Response to a Protected Resource Request with\n                           Invalid Authentication\n\n   GET /protectedresource HTTP/1.1\n   Host: resource.example.org\n   Authorization: Bearer Kz~8mXK1EalYznwH-LC-1fBAo.4Ljp~zsPE_NeO.gxU\n   Authorization: DPoP Kz~8mXK1EalYznwH-LC-1fBAo.4Ljp~zsPE_NeO.gxU\n\n   HTTP/1.1 400 Bad Request\n   WWW-Authenticate: Bearer error=\"invalid_request\", \\\n    error_description=\"Multiple methods used to include access token\", \\\n    DPoP algs=\"ES256 PS256\", error=\"invalid_request\", \\\n    error_description=\"Multiple methods used to include access token\"\n\n     Figure 19: HTTP 400 Response to a Protected Resource Request with\n                          Ambiguous Authentication\n\n7.3.  Client Considerations\n\n   Authorization including a DPoP proof may not be idempotent (depending\n   on server enforcement of jti, iat, and nonce claims).  Consequently,\n   all previously idempotent requests for protected resources that were\n   previously idempotent may no longer be idempotent.  It is RECOMMENDED\n   that clients generate a unique DPoP proof, even when retrying\n   idempotent requests in response to HTTP errors generally understood\n   as transient.\n\n   Clients that encounter frequent network errors may experience\n   additional challenges when interacting with servers with stricter\n   nonce validation implementations.\n\n8.  Authorization Server-Provided Nonce\n\n   This section specifies a mechanism using opaque nonces provided by\n   the server that can be used to limit the lifetime of DPoP proofs.\n   Without employing such a mechanism, a malicious party controlling the\n   client (potentially including the end-user) can create DPoP proofs\n   for use arbitrarily far in the future.\n\n   Including a nonce value contributed by the authorization server in\n   the DPoP proof MAY be used by authorization servers to limit the\n   lifetime of DPoP proofs.  The server determines when to issue a new\n   DPoP nonce challenge and if it is needed, thereby requiring the use\n   of the nonce value in subsequent DPoP proofs.  The logic through\n   which the server makes that determination is out of scope of this\n   document.\n\n   An authorization server MAY supply a nonce value to be included by\n   the client in DPoP proofs sent.  In this case, the authorization\n   server responds to requests that do not include a nonce with an HTTP\n   400 (Bad Request) error response per Section 5.2 of [RFC6749] using\n   use_dpop_nonce as the error code value.  The authorization server\n   includes a DPoP-Nonce HTTP header in the response supplying a nonce\n   value to be used when sending the subsequent request.  Nonce values\n   MUST be unpredictable.  This same error code is used when supplying a\n   new nonce value when there was a nonce mismatch.  The client will\n   typically retry the request with the new nonce value supplied upon\n   receiving a use_dpop_nonce error with an accompanying nonce value.\n\n   For example, in response to a token request without a nonce when the\n   authorization server requires one, the authorization server can\n   respond with a DPoP-Nonce value such as the following to provide a\n   nonce value to include in the DPoP proof:\n\n    HTTP/1.1 400 Bad Request\n    DPoP-Nonce: eyJ7S_zG.eyJH0-Z.HX4w-7v\n\n    {\n     \"error\": \"use_dpop_nonce\",\n     \"error_description\":\n       \"Authorization server requires nonce in DPoP proof\"\n    }\n\n      Figure 20: HTTP 400 Response to a Token Request without a Nonce\n\n   Other HTTP headers and JSON fields MAY also be included in the error\n   response, but there MUST NOT be more than one DPoP-Nonce header.\n\n   Upon receiving the nonce, the client is expected to retry its token\n   request using a DPoP proof including the supplied nonce value in the\n   nonce claim of the DPoP proof.  An example unencoded JWT payload of\n   such a DPoP proof including a nonce is shown below.\n\n    {\n     \"jti\": \"-BwC3ESc6acc2lTc\",\n     \"htm\": \"POST\",\n     \"htu\": \"https://server.example.com/token\",\n     \"iat\": 1562262616,\n     \"nonce\": \"eyJ7S_zG.eyJH0-Z.HX4w-7v\"\n    }\n\n           Figure 21: DPoP Proof Payload including a Nonce Value\n\n   The nonce is opaque to the client.\n\n   If the nonce claim in the DPoP proof does not exactly match a nonce\n   recently supplied by the authorization server to the client, the\n   authorization server MUST reject the request.  The rejection response\n   MAY include a DPoP-Nonce HTTP header providing a new nonce value to\n   use for subsequent requests.\n\n   The intent is that clients need to keep only one nonce value and\n   servers need to keep a window of recent nonces.  That said, transient\n   circumstances may arise in which the stored nonce values for the\n   server and the client differ.  However, this situation is self-\n   correcting.  With any rejection message, the server can send the\n   client the nonce value it wants to use to the client, and the client\n   can store that nonce value and retry the request with it.  Even if\n   the client and/or server discard their stored nonce values, that\n   situation is also self-correcting because new nonce values can be\n   communicated when responding to or retrying failed requests.\n\n   Note that browser-based client applications using CORS [WHATWG.Fetch]\n   only have access to CORS-safelisted response HTTP headers by default.\n   In order for the application to obtain and use the DPoP-Nonce HTTP\n   response header value, the server needs to make it available to the\n   application by including DPoP-Nonce in the Access-Control-Expose-\n   Headers response header list value.\n\n8.1.  Nonce Syntax\n\n   The nonce syntax in ABNF as used by [RFC6749] (which is the same as\n   the scope-token syntax) is shown below.\n\n   nonce = 1*NQCHAR\n\n                           Figure 22: Nonce ABNF\n\n8.2.  Providing a New Nonce Value\n\n   It is up to the authorization server when to supply a new nonce value\n   for the client to use.  The client is expected to use the existing\n   supplied nonce in DPoP proofs until the server supplies a new nonce\n   value.\n\n   The authorization server MAY supply the new nonce in the same way\n   that the initial one was supplied: by using a DPoP-Nonce HTTP header\n   in the response.  The DPoP-Nonce HTTP header field uses the nonce\n   syntax defined in Section 8.1.  Each time this happens, it requires\n   an extra protocol round trip.\n\n   A more efficient manner of supplying a new nonce value is also\n   defined by including a DPoP-Nonce HTTP header in the HTTP 200 (OK)\n   response from the previous request.  The client MUST use the new\n   nonce value supplied for the next token request and for all\n   subsequent token requests until the authorization server supplies a\n   new nonce.\n\n   Responses that include the DPoP-Nonce HTTP header should be\n   uncacheable (e.g., using Cache-Control: no-store in response to a GET\n   request) to prevent the response from being used to serve a\n   subsequent request and a stale nonce value from being used as a\n   result.\n\n   An example 200 OK response providing a new nonce value is shown\n   below.\n\n    HTTP/1.1 200 OK\n    Cache-Control: no-store\n    DPoP-Nonce: eyJ7S_zG.eyJbYu3.xQmBj-1\n\n        Figure 23: HTTP 200 Response Providing the Next Nonce Value\n\n9.  Resource Server-Provided Nonce\n\n   Resource servers can also choose to provide a nonce value to be\n   included in DPoP proofs sent to them.  They provide the nonce using\n   the DPoP-Nonce header in the same way that authorization servers do\n   as described in Sections 8 and 8.2.  The error signaling is performed\n   as described in Section 7.1.  Resource servers use an HTTP 401\n   (Unauthorized) error code with an accompanying WWW-Authenticate: DPoP\n   value and DPoP-Nonce value to accomplish this.\n\n   For example, in response to a resource request without a nonce when\n   the resource server requires one, the resource server can respond\n   with a DPoP-Nonce value such as the following to provide a nonce\n   value to include in the DPoP proof.  The example below uses \"\\\" line\n   wrapping per [RFC8792].\n\n    HTTP/1.1 401 Unauthorized\n    WWW-Authenticate: DPoP error=\"use_dpop_nonce\", \\\n      error_description=\"Resource server requires nonce in DPoP proof\"\n    DPoP-Nonce: eyJ7S_zG.eyJH0-Z.HX4w-7v\n\n     Figure 24: HTTP 401 Response to a Resource Request without a Nonce\n\n   Note that the nonces provided by an authorization server and a\n   resource server are different and should not be confused with one\n   another since nonces will be only accepted by the server that issued\n   them.  Likewise, should a client use multiple authorization servers\n   and/or resource servers, a nonce issued by any of them should be used\n   only at the issuing server.  Developers should also be careful to not\n   confuse DPoP nonces with the OpenID Connect [OpenID.Core] ID Token\n   nonce.\n\n10.  Authorization Code Binding to a DPoP Key\n\n   Binding the authorization code issued to the client's proof-of-\n   possession key can enable end-to-end binding of the entire\n   authorization flow.  This specification defines the dpop_jkt\n   authorization request parameter for this purpose.  The value of the\n   dpop_jkt authorization request parameter is the JWK Thumbprint\n   [RFC7638] of the proof-of-possession public key using the SHA-256\n   hash function, which is the same value as used for the jkt\n   confirmation method defined in Section 6.1.\n\n   When a token request is received, the authorization server computes\n   the JWK Thumbprint of the proof-of-possession public key in the DPoP\n   proof and verifies that it matches the dpop_jkt parameter value in\n   the authorization request.  If they do not match, it MUST reject the\n   request.\n\n   An example authorization request using the dpop_jkt authorization\n   request parameter is shown below and uses \"\\\" line wrapping per\n   [RFC8792].\n\n   GET /authorize?response_type=code&amp;client_id=s6BhdRkqt3&amp;state=xyz\\\n       &amp;redirect_uri=https%3A%2F%2Fclient%2Eexample%2Ecom%2Fcb\\\n       &amp;code_challenge=E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM\\\n       &amp;code_challenge_method=S256\\\n       &amp;dpop_jkt=NzbLsXh8uDCcd-6MNwXF4W_7noWXFZAfHkxZsRGC9Xs HTTP/1.1\n   Host: server.example.com\n\n       Figure 25: Authorization Request Using the dpop_jkt Parameter\n\n   Use of the dpop_jkt authorization request parameter is OPTIONAL.\n   Note that the dpop_jkt authorization request parameter MAY also be\n   used in combination with Proof Key for Code Exchange (PKCE)\n   [RFC7636], which is recommended by [SECURITY-TOPICS] as a\n   countermeasure to authorization code injection.  The dpop_jkt\n   authorization request parameter only provides similar protections\n   when a unique DPoP key is used for each authorization request.\n\n10.1.  DPoP with Pushed Authorization Requests\n\n   When Pushed Authorization Requests (PARs) [RFC9126] are used in\n   conjunction with DPoP, there are two ways in which the DPoP key can\n   be communicated in the PAR request:\n\n   *  The dpop_jkt parameter can be used as described in Section 10 to\n      bind the issued authorization code to a specific key.  In this\n      case, dpop_jkt MUST be included alongside other authorization\n      request parameters in the POST body of the PAR request.\n   *  Alternatively, the DPoP header can be added to the PAR request.\n      In this case, the authorization server MUST check the provided\n      DPoP proof JWT as defined in Section 4.3.  It MUST further behave\n      as if the contained public key's thumbprint was provided using\n      dpop_jkt, i.e., reject the subsequent token request unless a DPoP\n      proof for the same key is provided.  This can help to simplify the\n      implementation of the client, as it can \"blindly\" attach the DPoP\n      header to all requests to the authorization server regardless of\n      the type of request.  Additionally, it provides a stronger\n      binding, as the DPoP header contains a proof of possession of the\n      private key.\n\n   Both mechanisms MUST be supported by an authorization server that\n   supports PAR and DPoP.  If both mechanisms are used at the same time,\n   the authorization server MUST reject the request if the JWK\n   Thumbprint in dpop_jkt does not match the public key in the DPoP\n   header.\n\n   Allowing both mechanisms ensures that clients using dpop_jkt do not\n   need to distinguish between front-channel and pushed authorization\n   requests, and at the same time, clients that only have one code path\n   for protecting all calls to authorization server endpoints do not\n   need to distinguish between requests to the PAR endpoint and the\n   token endpoint.\n\n11.  Security Considerations\n\n   In DPoP, the prevention of token replay at a different endpoint (see\n   Section 2) is achieved through authentication of the server per\n   [RFC6125] and the binding of the DPoP proof to a certain URI and HTTP\n   method.  However, DPoP has a somewhat different nature of protection\n   than TLS-based methods such as OAuth Mutual TLS [RFC8705] or OAuth\n   Token Binding [TOKEN-BINDING] (see also Sections 11.1 and 11.7).\n   TLS-based mechanisms can leverage a tight integration between the TLS\n   layer and the application layer to achieve strong message integrity,\n   authenticity, and replay protection.\n\n11.1.  DPoP Proof Replay\n\n   If an adversary is able to get hold of a DPoP proof JWT, the\n   adversary could replay that token at the same endpoint (the HTTP\n   endpoint and method are enforced via the respective claims in the\n   JWTs).  To limit this, servers MUST only accept DPoP proofs for a\n   limited time after their creation (preferably only for a relatively\n   brief period on the order of seconds or minutes).\n\n   In the context of the target URI, servers can store the jti value of\n   each DPoP proof for the time window in which the respective DPoP\n   proof JWT would be accepted to prevent multiple uses of the same DPoP\n   proof.  HTTP requests to the same URI for which the jti value has\n   been seen before would be declined.  When strictly enforced, such a\n   single-use check provides a very strong protection against DPoP proof\n   replay, but it may not always be feasible in practice, e.g., when\n   multiple servers behind a single endpoint have no shared state.\n\n   In order to guard against memory exhaustion attacks, a server that is\n   tracking jti values should reject DPoP proof JWTs with unnecessarily\n   large jti values or store only a hash thereof.\n\n   Note: To accommodate for clock offsets, the server MAY accept DPoP\n   proofs that carry an iat time in the reasonably near future (on the\n   order of seconds or minutes).  Because clock skews between servers\n   and clients may be large, servers MAY limit DPoP proof lifetimes by\n   using server-provided nonce values containing the time at the server\n   rather than comparing the client-supplied iat time to the time at the\n   server.  Nonces created in this way yield the same result even in the\n   face of arbitrarily large clock skews.\n\n   Server-provided nonces are an effective means for further reducing\n   the chances for successful DPoP proof replay.  Unlike cryptographic\n   nonces, it is acceptable for clients to use the same nonce multiple\n   times and for the server to accept the same nonce multiple times.  As\n   long as the jti value is tracked and duplicates are rejected for the\n   lifetime of the nonce, there is no additional risk of token replay.\n\n11.2.  DPoP Proof Pre-generation\n\n   An attacker in control of the client can pre-generate DPoP proofs for\n   specific endpoints arbitrarily far into the future by choosing the\n   iat value in the DPoP proof to be signed by the proof-of-possession\n   key.  Note that one such attacker is the person who is the legitimate\n   user of the client.  The user may pre-generate DPoP proofs to\n   exfiltrate from the machine possessing the proof-of-possession key\n   upon which they were generated and copy them to another machine that\n   does not possess the key.  For instance, a bank employee might pre-\n   generate DPoP proofs on a bank computer and then copy them to another\n   machine for use in the future, thereby bypassing bank audit controls.\n   When DPoP proofs can be pre-generated and exfiltrated, all that is\n   actually being proved in DPoP protocol interactions is possession of\n   a DPoP proof -- not of the proof-of-possession key.\n\n   Use of server-provided nonce values that are not predictable by\n   attackers can prevent this attack.  By providing new nonce values at\n   times of its choosing, the server can limit the lifetime of DPoP\n   proofs, preventing pre-generated DPoP proofs from being used.  When\n   server-provided nonces are used, possession of the proof-of-\n   possession key is being demonstrated -- not just possession of a DPoP\n   proof.\n\n   The ath claim limits the use of pre-generated DPoP proofs to the\n   lifetime of the access token.  Deployments that do not utilize the\n   nonce mechanism SHOULD NOT issue long-lived DPoP constrained access\n   tokens, preferring instead to use short-lived access tokens and\n   refresh tokens.  Whilst an attacker could pre-generate DPoP proofs to\n   use the refresh token to obtain a new access token, they would be\n   unable to realistically pre-generate DPoP proofs to use a newly\n   issued access token.\n\n11.3.  DPoP Nonce Downgrade\n\n   A server MUST NOT accept any DPoP proofs without the nonce claim when\n   a DPoP nonce has been provided to the client.\n\n11.4.  Untrusted Code in the Client Context\n\n   If an adversary is able to run code in the client's execution\n   context, the security of DPoP is no longer guaranteed.  Common issues\n   in web applications leading to the execution of untrusted code are\n   XSS and remote code inclusion attacks.\n\n   If the private key used for DPoP is stored in such a way that it\n   cannot be exported, e.g., in a hardware or software security module,\n   the adversary cannot exfiltrate the key and use it to create\n   arbitrary DPoP proofs.  The adversary can, however, create new DPoP\n   proofs as long as the client is online and uses these proofs\n   (together with the respective tokens) either on the victim's device\n   or on a device under the attacker's control to send arbitrary\n   requests that will be accepted by servers.\n\n   To send requests even when the client is offline, an adversary can\n   try to pre-compute DPoP proofs using timestamps in the future and\n   exfiltrate these together with the access or refresh token.\n\n   An adversary might further try to associate tokens issued from the\n   token endpoint with a key pair under the adversary's control.  One\n   way to achieve this is to modify existing code, e.g., by replacing\n   cryptographic APIs.  Another way is to launch a new authorization\n   grant between the client and the authorization server in an iframe.\n   This grant needs to be \"silent\", i.e., not require interaction with\n   the user.  With code running in the client's origin, the adversary\n   has access to the resulting authorization code and can use it to\n   associate their own DPoP keys with the tokens returned from the token\n   endpoint.  The adversary is then able to use the resulting tokens on\n   their own device even if the client is offline.\n\n   Therefore, protecting clients against the execution of untrusted code\n   is extremely important even if DPoP is used.  Besides secure coding\n   practices, Content Security Policy [W3C.CSP] can be used as a second\n   layer of defense against XSS.\n\n11.5.  Signed JWT Swapping\n\n   Servers accepting signed DPoP proof JWTs MUST verify that the typ\n   field is dpop+jwt in the headers of the JWTs to ensure that\n   adversaries cannot use JWTs created for other purposes.\n\n11.6.  Signature Algorithms\n\n   Implementers MUST ensure that only asymmetric digital signature\n   algorithms (such as ES256) that are deemed secure can be used for\n   signing DPoP proofs.  In particular, the algorithm none MUST NOT be\n   allowed.\n\n11.7.  Request Integrity\n\n   DPoP does not ensure the integrity of the payload or headers of\n   requests.  The DPoP proof only contains claims for the HTTP URI and\n   method, but not the message body or general request headers, for\n   example.\n\n   This is an intentional design decision intended to keep DPoP simple\n   to use, but as described, it makes DPoP potentially susceptible to\n   replay attacks where an attacker is able to modify message contents\n   and headers.  In many setups, the message integrity and\n   confidentiality provided by TLS is sufficient to provide a good level\n   of protection.\n\n   Note: While signatures covering other parts of requests are out of\n   the scope of this specification, additional information to be signed\n   can be added into DPoP proofs.\n\n11.8.  Access Token and Public Key Binding\n\n   The binding of the access token to the DPoP public key, as specified\n   in Section 6, uses a cryptographic hash of the JWK representation of\n   the public key.  It relies on the hash function having sufficient\n   second-preimage resistance so as to make it computationally\n   infeasible to find or create another key that produces to the same\n   hash output value.  The SHA-256 hash function was used because it\n   meets the aforementioned requirement while being widely available.\n\n   Similarly, the binding of the DPoP proof to the access token uses a\n   hash of that access token as the value of the ath claim in the DPoP\n   proof (see Section 4.2).  This relies on the value of the hash being\n   sufficiently unique so as to reliably identify the access token.  The\n   collision resistance of SHA-256 meets that requirement.\n\n11.9.  Authorization Code and Public Key Binding\n\n   Cryptographic binding of the authorization code to the DPoP public\n   key is specified in Section 10.  This binding prevents attacks in\n   which the attacker captures the authorization code and creates a DPoP\n   proof using a proof-of-possession key other than the one held by the\n   client and redeems the authorization code using that DPoP proof.  By\n   ensuring end to end that only the client's DPoP key can be used, this\n   prevents captured authorization codes from being exfiltrated and used\n   at locations other than the one to which the authorization code was\n   issued.\n\n   Authorization codes can, for instance, be harvested by attackers from\n   places where the HTTP messages containing them are logged.  Even when\n   efforts are made to make authorization codes one-time-use, in\n   practice, there is often a time window during which attackers can\n   replay them.  For instance, when authorization servers are\n   implemented as scalable replicated services, some replicas may\n   temporarily not yet have the information needed to prevent replay.\n   DPoP binding of the authorization code solves these problems.\n\n   If an authorization server does not (or cannot) strictly enforce the\n   single-use limitation for authorization codes and an attacker can\n   access the authorization code (and if PKCE is used, the\n   code_verifier), the attacker can create a forged token request,\n   binding the resulting token to an attacker-controlled key.  For\n   example, using XSS, attackers might obtain access to the\n   authorization code and PKCE parameters.  Use of the dpop_jkt\n   parameter prevents this attack.\n\n   The binding of the authorization code to the DPoP public key uses a\n   JWK Thumbprint of the public key, just as the access token binding\n   does.  The same JWK Thumbprint considerations apply.\n\n11.10.  Hash Algorithm Agility\n\n   The jkt confirmation method member, the ath JWT claim, and the\n   dpop_jkt authorization request parameter defined herein all use the\n   output of the SHA-256 hash function as their value.  The use of a\n   single hash function by this specification was intentional and aimed\n   at simplicity and avoidance of potential security and\n   interoperability issues arising from common mistakes implementing and\n   deploying parameterized algorithm agility schemes.  However, the use\n   of a different hash function is not precluded if future circumstances\n   change and make SHA-256 insufficient for the requirements of this\n   specification.  Should that need arise, it is expected that a short\n   specification will be produced that updates this one.  Using the\n   output of an appropriate hash function as the value, that\n   specification will likely define a new confirmation method member, a\n   new JWT claim, and a new authorization request parameter.  These\n   items will be used in place of, or alongside, their respective\n   counterparts in the same message structures and flows of the larger\n   protocol defined by this specification.\n\n11.11.  Binding to Client Identity\n\n   In cases where DPoP is used with client authentication, it is only\n   bound to authentication by being coincident in the same TLS tunnel.\n   Since the DPoP proof is not directly bound to the authentication\n   cryptographically, it's possible that the authentication or the DPoP\n   messages were copied into the tunnel.  While including the URI in the\n   DPoP can partially mitigate some of this risk, modifying the\n   authentication mechanism to provide cryptographic binding between\n   authentication and DPoP could provide better protection.  However,\n   providing additional binding with authentication through the\n   modification of authentication mechanisms or other means is beyond\n   the scope of this specification.\n\n12.  IANA Considerations\n\n12.1.  OAuth Access Token Types Registration\n\n   IANA has registered the following access token type in the \"OAuth\n   Access Token Types\" registry [IANA.OAuth.Params] established by\n   [RFC6749].\n\n   Name:  DPoP\n\n   Additional Token Endpoint Response Parameters:  (none)\n\n   HTTP Authentication Scheme(s):  DPoP\n\n   Change Controller:  IETF\n\n   Reference:  RFC 9449\n\n12.2.  OAuth Extensions Error Registration\n\n   IANA has registered the following error values in the \"OAuth\n   Extensions Error\" registry [IANA.OAuth.Params] established by\n   [RFC6749].\n\n   Invalid DPoP proof:\n\n      Name:  invalid_dpop_proof\n\n      Usage Location:  token error response, resource access error\n         response\n\n      Protocol Extension:  Demonstrating Proof of Possession (DPoP)\n\n      Change Controller:  IETF\n\n      Reference:  RFC 9449\n\n   Use DPoP nonce:\n\n      Name:  use_dpop_nonce\n\n      Usage Location:  token error response, resource access error\n         response\n\n      Protocol Extension:  Demonstrating Proof of Possession (DPoP)\n\n      Change Controller:  IETF\n\n      Reference:  RFC 9449\n\n12.3.  OAuth Parameters Registration\n\n   IANA has registered the following authorization request parameter in\n   the \"OAuth Parameters\" registry [IANA.OAuth.Params] established by\n   [RFC6749].\n\n   Name:  dpop_jkt\n\n   Parameter Usage Location:  authorization request\n\n   Change Controller:  IETF\n\n   Reference:  Section 10 of RFC 9449\n\n12.4.  HTTP Authentication Schemes Registration\n\n   IANA has registered the following scheme in the \"HTTP Authentication\n   Schemes\" registry [IANA.HTTP.AuthSchemes] established by [RFC9110],\n   Section 16.4.1.\n\n   Authentication Scheme Name:  DPoP\n\n   Reference:  Section 7.1 of RFC 9449\n\n12.5.  Media Type Registration\n\n   IANA has registered the application/dpop+jwt media type [RFC2046] in\n   the \"Media Types\" registry [IANA.MediaTypes] in the manner described\n   in [RFC6838], which is used to indicate that the content is a DPoP\n   JWT.\n\n   Type name:  application\n\n   Subtype name:  dpop+jwt\n\n   Required parameters:  n/a\n\n   Optional parameters:  n/a\n\n   Encoding considerations:  binary.  A DPoP JWT is a JWT; JWT values\n      are encoded as a series of base64url-encoded values (some of which\n      may be the empty string) separated by period ('.') characters.\n\n   Security considerations:  See Section 11 of RFC 9449\n\n   Interoperability considerations:  n/a\n\n   Published specification:  RFC 9449\n\n   Applications that use this media type:  Applications using RFC 9449\n      for application-level proof of possession\n\n   Fragment identifier considerations:  n/a\n\n   Additional information:\n\n      File extension(s):  n/a\n      Macintosh file type code(s):  n/a\n\n   Person &amp; email address to contact for further information:  Michael\n      B. Jones, michael_b_jones@hotmail.com\n\n   Intended usage:  COMMON\n\n   Restrictions on usage:  none\n\n   Author:  Michael B. Jones, michael_b_jones@hotmail.com\n\n   Change controller:  IETF\n\n12.6.  JWT Confirmation Methods Registration\n\n   IANA has registered the following JWT cnf member value in the \"JWT\n   Confirmation Methods\" registry [IANA.JWT] established by [RFC7800].\n\n   Confirmation Method Value:  jkt\n\n   Confirmation Method Description:  JWK SHA-256 Thumbprint\n\n   Change Controller:  IETF\n\n   Reference:  Section 6 of RFC 9449\n\n12.7.  JSON Web Token Claims Registration\n\n   IANA has registered the following Claims in the \"JSON Web Token\n   Claims\" registry [IANA.JWT] established by [RFC7519].\n\n   HTTP method:\n\n      Claim Name:  htm\n\n      Claim Description:  The HTTP method of the request\n\n      Change Controller:  IETF\n\n      Reference:  Section 4.2 of RFC 9449\n\n   HTTP URI:\n\n      Claim Name:  htu\n\n      Claim Description:  The HTTP URI of the request (without query and\n         fragment parts)\n\n      Change Controller:  IETF\n\n      Reference:  Section 4.2 of RFC 9449\n\n   Access token hash:\n\n      Claim Name:  ath\n\n      Claim Description:  The base64url-encoded SHA-256 hash of the\n         ASCII encoding of the associated access token's value\n\n      Change Controller:  IETF\n\n      Reference:  Section 4.2 of RFC 9449\n\n12.7.1.  \"nonce\" Registration Update\n\n   The Internet Security Glossary [RFC4949] provides a useful definition\n   of nonce as a random or non-repeating value that is included in data\n   exchanged by a protocol, usually for the purpose of guaranteeing\n   liveness and thus detecting and protecting against replay attacks.\n\n   However, the initial registration of the nonce claim by [OpenID.Core]\n   used language that was contextually specific to that application,\n   which was potentially limiting to its general applicability.\n\n   Therefore, IANA has updated the entry for nonce in the \"JSON Web\n   Token Claims\" registry [IANA.JWT] with an expanded definition to\n   reflect that the claim can be used appropriately in other contexts\n   and with the addition of this document as a reference, as follows.\n\n   Claim Name:  nonce\n\n   Claim Description:  Value used to associate a Client session with an\n      ID Token (MAY also be used for nonce values in other applications\n      of JWTs)\n\n   Change Controller:  OpenID Foundation Artifact Binding Working Group,\n      openid-specs-ab@lists.openid.net\n\n   Specification Document(s):  Section 2 of [OpenID.Core] and RFC 9449\n\n12.8.  Hypertext Transfer Protocol (HTTP) Field Name Registration\n\n   IANA has registered the following HTTP header fields, as specified by\n   this document, in the \"Hypertext Transfer Protocol (HTTP) Field Name\n   Registry\" [IANA.HTTP.Fields] established by [RFC9110]:\n\n   DPoP:\n\n      Field Name:  DPoP\n\n      Status:  permanent\n\n      Reference:  RFC 9449\n\n   DPoP-Nonce:\n\n      Field Name:  DPoP-Nonce\n\n      Status:  permanent\n\n      Reference:  RFC 9449\n\n12.9.  OAuth Authorization Server Metadata Registration\n\n   IANA has registered the following value in the \"OAuth Authorization\n   Server Metadata\" registry [IANA.OAuth.Params] established by\n   [RFC8414].\n\n   Metadata Name:  dpop_signing_alg_values_supported\n\n   Metadata Description:  JSON array containing a list of the JWS\n      algorithms supported for DPoP proof JWTs\n\n   Change Controller:  IETF\n\n   Reference:  Section 5.1 of RFC 9449\n\n12.10.  OAuth Dynamic Client Registration Metadata\n\n   IANA has registered the following value in the IANA \"OAuth Dynamic\n   Client Registration Metadata\" registry [IANA.OAuth.Params]\n   established by [RFC7591].\n\n   Client Metadata Name:  dpop_bound_access_tokens\n\n   Client Metadata Description:  Boolean value specifying whether the\n      client always uses DPoP for token requests\n\n   Change Controller:  IETF\n\n   Reference:  Section 5.2 of RFC 9449\n\n13.  References\n\n13.1.  Normative References\n\n   [RFC2119]  Bradner, S., \"Key words for use in RFCs to Indicate\n              Requirement Levels\", BCP 14, RFC 2119,\n              DOI 10.17487/RFC2119, March 1997,\n              .\n\n   [RFC3986]  Berners-Lee, T., Fielding, R., and L. Masinter, \"Uniform\n              Resource Identifier (URI): Generic Syntax\", STD 66,\n              RFC 3986, DOI 10.17487/RFC3986, January 2005,\n              .\n\n   [RFC5234]  Crocker, D., Ed. and P. Overell, \"Augmented BNF for Syntax\n              Specifications: ABNF\", STD 68, RFC 5234,\n              DOI 10.17487/RFC5234, January 2008,\n              .\n\n   [RFC6125]  Saint-Andre, P. and J. Hodges, \"Representation and\n              Verification of Domain-Based Application Service Identity\n              within Internet Public Key Infrastructure Using X.509\n              (PKIX) Certificates in the Context of Transport Layer\n              Security (TLS)\", RFC 6125, DOI 10.17487/RFC6125, March\n              2011, .\n\n   [RFC6749]  Hardt, D., Ed., \"The OAuth 2.0 Authorization Framework\",\n              RFC 6749, DOI 10.17487/RFC6749, October 2012,\n              .\n\n   [RFC6750]  Jones, M. and D. Hardt, \"The OAuth 2.0 Authorization\n              Framework: Bearer Token Usage\", RFC 6750,\n              DOI 10.17487/RFC6750, October 2012,\n              .\n\n   [RFC7515]  Jones, M., Bradley, J., and N. Sakimura, \"JSON Web\n              Signature (JWS)\", RFC 7515, DOI 10.17487/RFC7515, May\n              2015, .\n\n   [RFC7517]  Jones, M., \"JSON Web Key (JWK)\", RFC 7517,\n              DOI 10.17487/RFC7517, May 2015,\n              .\n\n   [RFC7519]  Jones, M., Bradley, J., and N. Sakimura, \"JSON Web Token\n              (JWT)\", RFC 7519, DOI 10.17487/RFC7519, May 2015,\n              .\n\n   [RFC7638]  Jones, M. and N. Sakimura, \"JSON Web Key (JWK)\n              Thumbprint\", RFC 7638, DOI 10.17487/RFC7638, September\n              2015, .\n\n   [RFC7800]  Jones, M., Bradley, J., and H. Tschofenig, \"Proof-of-\n              Possession Key Semantics for JSON Web Tokens (JWTs)\",\n              RFC 7800, DOI 10.17487/RFC7800, April 2016,\n              .\n\n   [RFC8174]  Leiba, B., \"Ambiguity of Uppercase vs Lowercase in RFC\n              2119 Key Words\", BCP 14, RFC 8174, DOI 10.17487/RFC8174,\n              May 2017, .\n\n   [SHS]      National Institute of Standards and Technology, \"Secure\n              Hash Standard (SHS)\", FIPS PUB 180-4,\n              DOI 10.6028/NIST.FIPS.180-4, August 2015,\n              .\n\n13.2.  Informative References\n\n   [BREACH]   CVE, \"CVE-2013-3587\", .\n\n   [Cloudbleed]\n              Graham-Cumming, J., \"Incident report on memory leak caused\n              by Cloudflare parser bug\", February 2017,\n              .\n\n   [CRIME]    CVE, \"CVE-2012-4929\", .\n\n   [GitHub.Tokens]\n              Hanley, M., \"Security alert: Attack campaign involving\n              stolen OAuth user tokens issued to two third-party\n              integrators\", April 2022, .\n\n   [Heartbleed]\n              \"CVE-2014-0160\", .\n\n   [IANA.HTTP.AuthSchemes]\n              IANA, \"Hypertext Transfer Protocol (HTTP) Authentication\n              Scheme Registry\",\n              .\n\n   [IANA.HTTP.Fields]\n              IANA, \"Hypertext Transfer Protocol (HTTP) Field Name\n              Registry\",\n              .\n\n   [IANA.JOSE.ALGS]\n              IANA, \"JSON Web Signature and Encryption Algorithms\",\n              .\n\n   [IANA.JWT] IANA, \"JSON Web Token Claims\",\n              .\n\n   [IANA.MediaTypes]\n              IANA, \"Media Types\",\n              .\n\n   [IANA.OAuth.Params]\n              IANA, \"OAuth Parameters\",\n              .\n\n   [OpenID.Core]\n              Sakimura, N., Bradley, J., Jones, M., de Medeiros, B., and\n              C. Mortimore, \"OpenID Connect Core 1.0 incorporating\n              errata set 1\", November 2014,\n              .\n\n   [RFC2046]  Freed, N. and N. Borenstein, \"Multipurpose Internet Mail\n              Extensions (MIME) Part Two: Media Types\", RFC 2046,\n              DOI 10.17487/RFC2046, November 1996,\n              .\n\n   [RFC4122]  Leach, P., Mealling, M., and R. Salz, \"A Universally\n              Unique IDentifier (UUID) URN Namespace\", RFC 4122,\n              DOI 10.17487/RFC4122, July 2005,\n              .\n\n   [RFC4949]  Shirey, R., \"Internet Security Glossary, Version 2\",\n              FYI 36, RFC 4949, DOI 10.17487/RFC4949, August 2007,\n              .\n\n   [RFC6838]  Freed, N., Klensin, J., and T. Hansen, \"Media Type\n              Specifications and Registration Procedures\", BCP 13,\n              RFC 6838, DOI 10.17487/RFC6838, January 2013,\n              .\n\n   [RFC7523]  Jones, M., Campbell, B., and C. Mortimore, \"JSON Web Token\n              (JWT) Profile for OAuth 2.0 Client Authentication and\n              Authorization Grants\", RFC 7523, DOI 10.17487/RFC7523, May\n              2015, .\n\n   [RFC7591]  Richer, J., Ed., Jones, M., Bradley, J., Machulak, M., and\n              P. Hunt, \"OAuth 2.0 Dynamic Client Registration Protocol\",\n              RFC 7591, DOI 10.17487/RFC7591, July 2015,\n              .\n\n   [RFC7636]  Sakimura, N., Ed., Bradley, J., and N. Agarwal, \"Proof Key\n              for Code Exchange by OAuth Public Clients\", RFC 7636,\n              DOI 10.17487/RFC7636, September 2015,\n              .\n\n   [RFC7662]  Richer, J., Ed., \"OAuth 2.0 Token Introspection\",\n              RFC 7662, DOI 10.17487/RFC7662, October 2015,\n              .\n\n   [RFC8414]  Jones, M., Sakimura, N., and J. Bradley, \"OAuth 2.0\n              Authorization Server Metadata\", RFC 8414,\n              DOI 10.17487/RFC8414, June 2018,\n              .\n\n   [RFC8705]  Campbell, B., Bradley, J., Sakimura, N., and T.\n              Lodderstedt, \"OAuth 2.0 Mutual-TLS Client Authentication\n              and Certificate-Bound Access Tokens\", RFC 8705,\n              DOI 10.17487/RFC8705, February 2020,\n              .\n\n   [RFC8707]  Campbell, B., Bradley, J., and H. Tschofenig, \"Resource\n              Indicators for OAuth 2.0\", RFC 8707, DOI 10.17487/RFC8707,\n              February 2020, .\n\n   [RFC8725]  Sheffer, Y., Hardt, D., and M. Jones, \"JSON Web Token Best\n              Current Practices\", BCP 225, RFC 8725,\n              DOI 10.17487/RFC8725, February 2020,\n              .\n\n   [RFC8792]  Watsen, K., Auerswald, E., Farrel, A., and Q. Wu,\n              \"Handling Long Lines in Content of Internet-Drafts and\n              RFCs\", RFC 8792, DOI 10.17487/RFC8792, June 2020,\n              .\n\n   [RFC9110]  Fielding, R., Ed., Nottingham, M., Ed., and J. Reschke,\n              Ed., \"HTTP Semantics\", STD 97, RFC 9110,\n              DOI 10.17487/RFC9110, June 2022,\n              .\n\n   [RFC9126]  Lodderstedt, T., Campbell, B., Sakimura, N., Tonge, D.,\n              and F. Skokan, \"OAuth 2.0 Pushed Authorization Requests\",\n              RFC 9126, DOI 10.17487/RFC9126, September 2021,\n              .\n\n   [SECURITY-TOPICS]\n              Lodderstedt, T., Bradley, J., Labunets, A., and D. Fett,\n              \"OAuth 2.0 Security Best Current Practice\", Work in\n              Progress, Internet-Draft, draft-ietf-oauth-security-\n              topics-23, 5 June 2023,\n              .\n\n   [TOKEN-BINDING]\n              Jones, M., Campbell, B., Bradley, J., and W. Denniss,\n              \"OAuth 2.0 Token Binding\", Work in Progress, Internet-\n              Draft, draft-ietf-oauth-token-binding-08, 19 October 2018,\n              .\n\n   [W3C.CSP]  West, M., \"Content Security Policy Level 3\", W3C Working\n              Draft, July 2023, .\n\n   [W3C.WebCryptoAPI]\n              Watson, M., \"Web Cryptography API\", W3C Recommendation,\n              January 2017,\n              .\n\n   [WHATWG.Fetch]\n              WHATWG, \"Fetch Living Standard\", July 2023,\n              .\n\nAcknowledgements\n\n   We would like to thank Brock Allen, Annabelle Backman, Dominick\n   Baier, Spencer Balogh, Vittorio Bertocci, Jeff Corrigan, Domingos\n   Creado, Philippe De Ryck, Andrii Deinega, William Denniss, Vladimir\n   Dzhuvinov, Mike Engan, Nikos Fotiou, Mark Haine, Dick Hardt, Joseph\n   Heenan, Bjorn Hjelm, Jacob Ideskog, Jared Jennings, Benjamin Kaduk,\n   Pieter Kasselman, Neil Madden, Rohan Mahy, Karsten Meyer zu\n   Selhausen, Nicolas Mora, Steinar Noem, Mark Nottingham, Rob Otto,\n   Aaron Parecki, Michael Peck, Roberto Polli, Paul Querna, Justin\n   Richer, Joseph Salowey, Rifaat Shekh-Yusef, Filip Skokan, Dmitry\n   Telegin, Dave Tonge, Jim Willeke, and others for their valuable\n   input, feedback, and general support of this work.\n\n   This document originated from discussions at the 4th OAuth Security\n   Workshop in Stuttgart, Germany.  We thank the organizers of this\n   workshop (Ralf K\u00fcsters and Guido Schmitz).\n\nAuthors' Addresses\n\n   Daniel Fett\n   Authlete\n   Email: mail@danielfett.de\n\n\n   Brian Campbell\n   Ping Identity\n   Email: bcampbell@pingidentity.com\n\n\n   John Bradley\n   Yubico\n   Email: ve7jtb@ve7jtb.com\n\n\n   Torsten Lodderstedt\n   Tuconic\n   Email: torsten@lodderstedt.net\n\n\n   Michael Jones\n   Self-Issued Consulting\n   Email: michael_b_jones@hotmail.com\n   URI:   https://self-issued.info/\n\n\n   David Waite\n   Ping Identity\n   Email: david@alkaline-solutions.com\n", "creation_timestamp": "2026-10-07T04:34:50.000000Z"}