Which alg values are acceptable for a DPoP proof?

alg is a registered asymmetric signature algorithm and not noneRFC 9449 §4.3MUSTRoles: authorization_server, resource_server

Requirement as recorded in the ProtocolSoup registry

The alg JOSE Header Parameter indicates a registered asymmetric digital signature algorithm, is not none, is supported by the application, and is acceptable per local policy.

Read §4.3 in RFC 9449

Self-test verdict

PassCommit 00bac3fEvaluated

This is ProtocolSoup's result against its own implementation at the commit shown. It is not a certification of ProtocolSoup or of any other product.

Captured from production

Captured Commit 00bac3f

Captured from the deployed ProtocolSoup at the commit shown. Every request and response is shown exactly as sent and received.

Passing exchange

Accepted, as requiredConformance client

The conformance client requests a client_credentials token from /oauth2/token with a DPoP proof signed with ES256, one of the algorithms the server lists in dpop_signing_alg_values_supported. The proof carries the nonce the token endpoint issued in an earlier use_dpop_nonce challenge.

Requests from ProtocolSoup’s conformance client, which sends malformed messages on purpose. The hosted wallet never sends these.

  1. 1.POST https://protocolsoup.com/oauth2/token200 OK

    TLS: TLS 1.3 · TLS_AES_128_GCM_SHA256 · h2

    Request

    POST /oauth2/token HTTP/2.0
    Authorization: Basic bWFjaGluZS1jbGllbnQ6TTdCa0JKX2lLOEdwNFJlRjFTdkdDcWx1eE1uMnlTcnU=
    Content-Length: 29
    Content-Type: application/x-www-form-urlencoded
    DPoP: eyJhbGciOiJFUzI1NiIsImp3ayI6eyJjcnYiOiJQLTI1NiIsImt0eSI6IkVDIiwieCI6InRpOEM4UGRjREVnMjZUNUdEWjk1MzZzdUlEZG45QVZMYi1YeUdnQW85dE0iLCJ5IjoidHhGNkNXZEh2UC1QdS1sbE93NVF4eDJ5WFdsSTN2dVBxT3JyWm5qWE95byJ9LCJ0eXAiOiJkcG9wK2p3dCJ9.eyJodG0iOiJQT1NUIiwiaHR1IjoiaHR0cHM6Ly9wcm90b2NvbHNvdXAuY29tL29hdXRoMi90b2tlbiIsImlhdCI6MTc5NjU2MzU4NCwianRpIjoiZDU1ZDUwMDgtNzUzNC00NWMwLTlhMjctZjM0NTgxYzhlMGI1Iiwibm9uY2UiOiItOTRWVmh5eWpTa2F3WC1hOFJrd04xdWlWZjdfWUNyVCJ9.NBjXsFKYMx1Jeah36PHNuz7ELRNfSFvFeO5YN0enTTUpeQ_PHlJsyXofijIS5FHYO7YWazYt9cIyXyip0KH0kg
    Host: protocolsoup.com
    User-Agent: ProtocolSoup-Conformance-Client/1
    
    grant_type=client_credentials

    Response

    HTTP/2.0 200 OK
    Cache-Control: no-store
    Cf-Cache-Status: DYNAMIC
    Cf-Ray: a65b9f47ddda3cdb-MSP
    Content-Type: application/json
    Date: Sun, 06 Dec 2026 13:26:25 GMT
    Fly-Request-Id: 01M95RHJ7PDZB16JV7P95X2EB4-ord
    Nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
    Pragma: no-cache
    Referrer-Policy: strict-origin-when-cross-origin
    Report-To: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=649Y9M69oOPEP2spBnoD8ZOZUZlbIhuCULUvhOwBVaxmyHGKhjRQdBqoyD1jdJgcN4z9j4pAxS9aqt1ZMJ6GplOWhQNdMfk9ven%2Fb%2Bt5aOPJKbYOXI3%2BucEjO6MJLkHK%2Bbc%3D"}]}
    Server: cloudflare
    Server-Timing: cfCacheStatus;desc="DYNAMIC"
    Server-Timing: cfEdge;dur=3,cfOrigin;dur=200
    Vary: Origin
    Vary: accept-encoding
    Via: 1.1 fly.io, 1.1 fly.io
    X-Content-Type-Options: nosniff
    X-Frame-Options: DENY
    X-Xss-Protection: 1; mode=block
    
    {"access_token":"eyJhbGciOiJSUzI1NiIsImtpZCI6InJzYS05YTJlNThlYzVjNjk3NGJmIiwidHlwIjoiYXQrand0In0.eyJhdWQiOiJodHRwczovL3Byb3RvY29sc291cC5jb20vb2F1dGgyL3Jlc291cmNlIiwiY2xpZW50X2lkIjoibWFjaGluZS1jbGllbnQiLCJjbGllbnRfbmFtZSI6Ik1hY2hpbmUtdG8tTWFjaGluZSBDbGllbnQiLCJjbmYiOnsiamt0IjoiczZDTTZHeXpnbVppNmdMdVJWTnV2X245bVZoNF9IY3BVdWJmN0xUZXEyUSJ9LCJleHAiOjE3OTY1NjcxODUsImlhdCI6MTc5NjU2MzU4NSwiaXNzIjoiaHR0cHM6Ly9wcm90b2NvbHNvdXAuY29tL29hdXRoMiIsImp0aSI6Imp0aS02MTJmZjEzZmYyYjNhZWZkIiwibmJmIjoxNzk2NTYzNTg1LCJzY29wZSI6ImFwaTpyZWFkIGFwaTp3cml0ZSIsInN1YiI6Im1hY2hpbmUtY2xpZW50In0.iuTM8HyZE2NcZkGJn-dBVsnEHE8LpH37fC4LyAX3xPDe8JJaEBgxnvhRF-zeRZg6nAMfMDR1mTr_T7dKwwddRGUbTTjJaLiM7ohpnR3Nh7-CbS8zbJtLJphgkKKncz05iezwTjLNwu_FGVAMNFkqVL7vYFSX63eKU0ZJFY4Bnb3RAvbyavjHJbuSLaYQRbNU5RGt98EWvL6ZCMgeNfLHLP9PhmEHpnEoaDAxq4tTdObr1WP0g8DLeSCPjLh7RITJVweDrZCDHYbR3Wr1gOajWQbp56lmr-b3GKbwPs7Gw2HQhlYp_-xw54Ba75GTskuJ3LP9lD0RdS3Uif-0izOM3w","token_type":"DPoP","expires_in":3600,"scope":"api:read api:write"}
    

Failing exchange

Rejected, as requiredConformance client

The conformance client sends three client_credentials token requests to /oauth2/token: one with an unsigned proof whose alg is none, one with a proof whose alg is HS256 and whose MAC uses a secret only the client holds, and one signed with ES384, a registered asymmetric algorithm the server does not list in dpop_signing_alg_values_supported.

Requests from ProtocolSoup’s conformance client, which sends malformed messages on purpose. The hosted wallet never sends these.

  1. 1.POST https://protocolsoup.com/oauth2/token400 Bad Request

    TLS: TLS 1.3 · TLS_AES_128_GCM_SHA256 · h2

    Request

    POST /oauth2/token HTTP/2.0
    Authorization: Basic bWFjaGluZS1jbGllbnQ6TTdCa0JKX2lLOEdwNFJlRjFTdkdDcWx1eE1uMnlTcnU=
    Content-Length: 29
    Content-Type: application/x-www-form-urlencoded
    DPoP: eyJhbGciOiJub25lIiwiandrIjp7ImNydiI6IlAtMjU2Iiwia3R5IjoiRUMiLCJ4IjoiOGhmQk8xeDJOSDlUY0J4clBUak1wczNtdFdvQ0dRTUd2Q3hGWTZMWDZ2QSIsInkiOiI5eXJRMUFvVHpsUU1wLXluc0twRUNWTkl3SkU0TzZPbkJlZWJYYUg1YkdrIn0sInR5cCI6ImRwb3Arand0In0.eyJodG0iOiJQT1NUIiwiaHR1IjoiaHR0cHM6Ly9wcm90b2NvbHNvdXAuY29tL29hdXRoMi90b2tlbiIsImlhdCI6MTc5NjU2MzU4OCwianRpIjoiODU1MjFmYjktNmIxNC00OGQ3LTk1OTQtNzhjNDE5ZjQ1OGFkIiwibm9uY2UiOiItOTRWVmh5eWpTa2F3WC1hOFJrd04xdWlWZjdfWUNyVCJ9.
    Host: protocolsoup.com
    User-Agent: ProtocolSoup-Conformance-Client/1
    
    grant_type=client_credentials

    Response

    HTTP/2.0 400 Bad Request
    Cache-Control: no-store
    Cf-Cache-Status: DYNAMIC
    Cf-Ray: a65b9f60d9f33cdb-MSP
    Content-Type: application/json
    Date: Sun, 06 Dec 2026 13:26:29 GMT
    Fly-Request-Id: 01M95RHP57TR4E2X9ANSDTDT3Q-ord
    Nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
    Pragma: no-cache
    Referrer-Policy: strict-origin-when-cross-origin
    Report-To: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=9ACD7NhRdzVeO8g%2F95NX9HsGnJ%2FU0EUw8qqD%2BNBnRZ1TnwdpHgy8zCC46qGWH%2BoDj%2BFYvfLbax9MFf%2F%2B5LSVux46HWIDWHKg3rarVuWUMeUGiCT7sMVUjxNAYvIsv0aOPNc%3D"}]}
    Server: cloudflare
    Server-Timing: cfCacheStatus;desc="DYNAMIC"
    Server-Timing: cfEdge;dur=21,cfOrigin;dur=209
    Vary: Origin
    Vary: accept-encoding
    Via: 1.1 fly.io, 1.1 fly.io
    X-Content-Type-Options: nosniff
    X-Frame-Options: DENY
    X-Xss-Protection: 1; mode=block
    
    {"error":"invalid_dpop_proof","error_description":"DPoP proof validation failed","error_uri":"https://datatracker.ietf.org/doc/html/rfc9449#section-5"}
    
  2. 2.POST https://protocolsoup.com/oauth2/token400 Bad Request

    TLS: TLS 1.3 · TLS_AES_128_GCM_SHA256 · h2

    Request

    POST /oauth2/token HTTP/2.0
    Authorization: Basic bWFjaGluZS1jbGllbnQ6TTdCa0JKX2lLOEdwNFJlRjFTdkdDcWx1eE1uMnlTcnU=
    Content-Length: 29
    Content-Type: application/x-www-form-urlencoded
    DPoP: eyJhbGciOiJIUzI1NiIsImp3ayI6eyJjcnYiOiJQLTI1NiIsImt0eSI6IkVDIiwieCI6IjhoZkJPMXgyTkg5VGNCeHJQVGpNcHMzbXRXb0NHUU1HdkN4Rlk2TFg2dkEiLCJ5IjoiOXlyUTFBb1R6bFFNcC15bnNLcEVDVk5Jd0pFNE82T25CZWViWGFINWJHayJ9LCJ0eXAiOiJkcG9wK2p3dCJ9.eyJodG0iOiJQT1NUIiwiaHR1IjoiaHR0cHM6Ly9wcm90b2NvbHNvdXAuY29tL29hdXRoMi90b2tlbiIsImlhdCI6MTc5NjU2MzU4OSwianRpIjoiNjNhY2EwOGQtMDg0ZC00NTg3LThjZGMtNDVkZDIwODIyOTAzIiwibm9uY2UiOiItOTRWVmh5eWpTa2F3WC1hOFJrd04xdWlWZjdfWUNyVCJ9.etm3-hkedcKxn2CdagrobREwrdOnoFFUGNSkKH3Iqzk
    Host: protocolsoup.com
    User-Agent: ProtocolSoup-Conformance-Client/1
    
    grant_type=client_credentials

    Response

    HTTP/2.0 400 Bad Request
    Cache-Control: no-store
    Cf-Cache-Status: DYNAMIC
    Cf-Ray: a65b9f671d623cdb-MSP
    Content-Type: application/json
    Date: Sun, 06 Dec 2026 13:26:30 GMT
    Fly-Request-Id: 01M95RHQ3XVRQR3CH38D494AFV-ord
    Nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
    Pragma: no-cache
    Referrer-Policy: strict-origin-when-cross-origin
    Report-To: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=AH1VK2EXijsY%2BdDe1ZkcWfUlqrlN9qXQLTleLEfagl0%2BJjr%2FIexE2IXBWuBXO9CZZ17imzEZX6YyyArdVKseNAdJYgEpeRUgjzOW2P8MH%2FNgTQY6K8BzVCPiJQClG2mMugo%3D"}]}
    Server: cloudflare
    Server-Timing: cfCacheStatus;desc="DYNAMIC"
    Server-Timing: cfEdge;dur=3,cfOrigin;dur=197
    Vary: Origin
    Vary: accept-encoding
    Via: 1.1 fly.io, 1.1 fly.io
    X-Content-Type-Options: nosniff
    X-Frame-Options: DENY
    X-Xss-Protection: 1; mode=block
    
    {"error":"invalid_dpop_proof","error_description":"DPoP proof validation failed","error_uri":"https://datatracker.ietf.org/doc/html/rfc9449#section-5"}
    
  3. 3.POST https://protocolsoup.com/oauth2/token400 Bad Request

    TLS: TLS 1.3 · TLS_AES_128_GCM_SHA256 · h2

    Request

    POST /oauth2/token HTTP/2.0
    Authorization: Basic bWFjaGluZS1jbGllbnQ6TTdCa0JKX2lLOEdwNFJlRjFTdkdDcWx1eE1uMnlTcnU=
    Content-Length: 29
    Content-Type: application/x-www-form-urlencoded
    DPoP: eyJhbGciOiJFUzM4NCIsImp3ayI6eyJjcnYiOiJQLTM4NCIsImt0eSI6IkVDIiwieCI6ImJySmcwU2JZWlkzVFJ2cWxKZVViRFJVZVNwdnR6cjlaZ1JzQTVtS2Q1ZmtSSFZCclM3UGR4UF9CODNTQzBqeXkiLCJ5IjoiSTJQSjhuTnAtZjhmZW40RkhodlUzdmNIOGJwdV9NRkJiWkY0UFN0WllxWWwtSVBmYlViYmpmUDdDODVtMnh3byJ9LCJ0eXAiOiJkcG9wK2p3dCJ9.eyJodG0iOiJQT1NUIiwiaHR1IjoiaHR0cHM6Ly9wcm90b2NvbHNvdXAuY29tL29hdXRoMi90b2tlbiIsImlhdCI6MTc5NjU2MzU5MCwianRpIjoiZDQwZThkNzgtNDZlMS00Y2ZjLWFiMDUtY2IyOTlmMTgzNjMzIiwibm9uY2UiOiItOTRWVmh5eWpTa2F3WC1hOFJrd04xdWlWZjdfWUNyVCJ9.P4K8OO3uYmmAqt5enaCWz76-_Gss7pqCN-zCfdwHvb-at9cbMjUvNFabCTpOkYw477T__RpMVkMhIZMFmoVZ8Js7zqVtegB-aW1g_3OwyTzhDBsqXrd4DHMJ1E2eX81M
    Host: protocolsoup.com
    User-Agent: ProtocolSoup-Conformance-Client/1
    
    grant_type=client_credentials

    Response

    HTTP/2.0 400 Bad Request
    Cache-Control: no-store
    Cf-Cache-Status: DYNAMIC
    Cf-Ray: a65b9f6d5b733cdb-MSP
    Content-Type: application/json
    Date: Sun, 06 Dec 2026 13:26:31 GMT
    Fly-Request-Id: 01M95RHR35FPB5SQEHKMBRDFES-ord
    Nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
    Pragma: no-cache
    Referrer-Policy: strict-origin-when-cross-origin
    Report-To: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=921xD6pHaAPCf0nwXGwjEnQGwCGwHGQ%2BRR6Eg0FYbQeGoqPj7tntuHvxqJ%2BBayX%2BClQso3NDs8uEcKjXcRv0kxF%2FRUnc22ioqUOFyjkgUlUluNttNexoOCFe1ThIffTuKK4%3D"}]}
    Server: cloudflare
    Server-Timing: cfCacheStatus;desc="DYNAMIC"
    Server-Timing: cfEdge;dur=3,cfOrigin;dur=296
    Vary: Origin
    Vary: accept-encoding
    Via: 1.1 fly.io, 1.1 fly.io
    X-Content-Type-Options: nosniff
    X-Frame-Options: DENY
    X-Xss-Protection: 1; mode=block
    
    {"error":"invalid_dpop_proof","error_description":"DPoP proof validation failed","error_uri":"https://datatracker.ietf.org/doc/html/rfc9449#section-5"}
    

Run it live

Looking Glass runs the flow that sends the message this requirement governs, against the same server, and decodes each exchange as it happens.

Open the flow in Looking Glass

Tests

Implementation

Explainer

What this requires

This is check 5 of RFC 9449 Section 4.3. The alg header names an asymmetric digital signature algorithm registered with IANA, it is not none, and the server both implements it and is willing to accept it. Section 4.2 adds that alg "MUST NOT be none or an identifier for a symmetric algorithm (Message Authentication Code (MAC))".

All four conditions hold at once. An algorithm that is registered and asymmetric can still be refused because local policy does not allow it.

Why it exists

Section 11.6 states it directly: "Implementers MUST ensure that only asymmetric digital signature algorithms (such as ES256) that are deemed secure can be used for signing DPoP proofs. In particular, the algorithm none MUST NOT be allowed." A proof with alg set to none carries no signature, so it proves nothing. A MAC algorithm needs a shared secret, and the only key a DPoP proof carries is the public jwk in its own header, so anyone who can read the proof could produce one.

What non-compliance looks like

A verifier that trusts the header's alg and picks a verification routine from it accepts an unsigned proof when alg is none, or verifies an HS256 proof using key material taken from the proof itself. Either way, anyone can mint a proof for any key.

At a token endpoint the correct response is HTTP 400 with invalid_dpop_proof (RFC 9449 Section 5).

How ProtocolSoup tests it

dpop.ValidateProof checks alg against a fixed allowlist of RS256, ES256 and EdDSA, the same list both authorization servers publish as dpop_signing_alg_values_supported. Anything else is rejected before the key or signature is looked at. It then requires the jwk key type to fit the algorithm (RSA for RS256, EC P-256 for ES256, OKP Ed25519 for EdDSA), and the signature library is only handed the public key when its method matches the header alg.

TestValidateProofRejectsAlgNone builds an unsigned proof with alg set to none and a valid EC public jwk, and asserts that validation fails. TestValidateProofRejectsSymmetricAlg signs a proof with HS256 and a jwk of type oct, and asserts that validation fails. Both tests check only that an error is returned, not which check produced it.

Messages that carry it

Related requirements

All RFC 9449 requirements · OID4VCI protocol page