Which PKCE code challenge method must an authorization server support?
S256 is Mandatory To Implement on the serverRFC 7636 §4.2MUSTRoles: authorization_server
Requirement as recorded in the ProtocolSoup registry
If the client is capable of using "S256", it MUST use "S256", as "S256" is Mandatory To Implement (MTI) on the server.
Read §4.2 in RFC 7636Self-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 sends public-app's authorization request with the code_challenge of RFC 7636 Appendix B and code_challenge_method=S256, and redeems the code with the Appendix B code_verifier. The token endpoint verifies it with S256. The sign-in between the two requests is not recorded.
Requests from ProtocolSoup’s conformance client, which sends malformed messages on purpose. The hosted wallet never sends these.
1.GET https://protocolsoup.com/oauth2/authorize?client_id=public-app&code_challenge=E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM&code_challenge_method=S256&redirect_uri=https%3A%2F%2Fprotocolsoup.com%2Fcallback&response_type=code&scope=profile&state=DfoLDrJ4XQKU63Uef4L9vA200 OK
TLS: TLS 1.3 · TLS_AES_128_GCM_SHA256 · h2
Request
GET /oauth2/authorize?client_id=public-app&code_challenge=E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM&code_challenge_method=S256&redirect_uri=https%3A%2F%2Fprotocolsoup.com%2Fcallback&response_type=code&scope=profile&state=DfoLDrJ4XQKU63Uef4L9vA HTTP/2.0 Accept: text/html Host: protocolsoup.com User-Agent: ProtocolSoup-Conformance-Client/1
Response
HTTP/2.0 200 OK Cf-Cache-Status: DYNAMIC Cf-Ray: a65baff49d863cdb-MSP Content-Type: text/html Date: Sun, 06 Dec 2026 13:37:48 GMT Fly-Request-Id: 01M95S6D7DZVZAJPPH4N0W9S5M-ord Nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800} 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=kKe7Gq7TNfKzk7fi%2FwAu1It4HKD6SCLM5n%2BDNzZK2Pejn1B0vSMFDlf5GztAejP1PLHbCIr7GeB6lkQJ8YN40alYRMUSdKxvEH0c8HVkTPyUWBn3LnzCw00M4cNGZpHn244%3D"}]} Server: cloudflare Server-Timing: cfCacheStatus;desc="DYNAMIC" Server-Timing: cfEdge;dur=3,cfOrigin;dur=209 Speculation-Rules: "/cdn-cgi/speculation" 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 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> <title>Login - Protocol Showcase</title> <style> * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: 'Segoe UI', system-ui, sans-serif; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); min-height: 100vh; display: flex; align-items: center; justify-content: center; color: #e4e4e7; padding: 16px; } .container { background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px; padding: 28px; width: 100%; max-width: 420px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); } @media (min-width: 480px) { body { padding: 0; } .container { padding: 40px; } } .logo { text-align: center; margin-bottom: 30px; } .logo h1 { font-size: 24px; font-weight: 600; color: #fff; } .logo p { color: #a1a1aa; font-size: 14px; margin-top: 8px; } .client-info { background: rgba(99, 102, 241, 0.1); border: 1px solid rgba(99, 102, 241, 0.2); border-radius: 8px; padding: 16px; margin-bottom: 24px; text-align: center; } .client-info span { color: #a5b4fc; font-size: 14px; } .client-info strong { color: #fff; } .form-group { margin-bottom: 20px; } label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; color: #d4d4d8; } input[type="email"], input[type="password"], input[type="text"] { width: 100%; padding: 12px 16px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; background: rgba(0, 0, 0, 0.2); color: #fff; font-size: 16px; transition: all 0.2s; } input:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2); } button { width: 100%; padding: 14px; background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); border: none; border-radius: 8px; color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; } button:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -10px rgba(99, 102, 241, 0.5); } .error { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.2); color: #fca5a5; padding: 12px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; } .demo-users { margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1); } .demo-users h3 { font-size: 14px; color: #a1a1aa; margin-bottom: 12px; } .demo-user { background: rgba(0, 0, 0, 0.2); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 8px; padding: 12px; margin-bottom: 8px; cursor: pointer; transition: all 0.2s; } .demo-user:hover { background: rgba(99, 102, 241, 0.1); border-color: rgba(99, 102, 241, 0.2); } .demo-user .name { font-weight: 500; color: #fff; } .demo-user .email { font-size: 12px; color: #71717a; } .scopes { margin-top: 16px; font-size: 12px; color: #71717a; } .scopes span { display: inline-block; background: rgba(99, 102, 241, 0.1); padding: 4px 8px; border-radius: 4px; margin: 2px; } </style> </head> <body> <div class="container"> <div class="logo"> <h1>Protocol Showcase</h1> <p>OAuth 2.0 Authorization</p> </div> <div class="client-info"> <span>Signing in to <strong>Public Application (SPA)</strong></span> </div> <!-- ERROR --> <form method="POST" action="/oauth2/authorize"> <input type="hidden" name="login_request_id" value="EJhTl4QjT8KLWlolZX--nA"> <div class="form-group"> <label for="email">Email</label> <input type="email" id="email" name="email" placeholder="[email protected]" required> </div> <div class="form-group"> <label for="password">Password</label> <input type="password" id="password" name="password" placeholder="password" required> </div> <button type="submit">Sign In</button> </form> <div class="demo-users"><h3>Demo Users (click to autofill)</h3><div class="demo-user" data-email="[email protected]" data-password="4bbw3nqtTsR9az7s2albdeeu" onclick="fillCredentials(this.dataset.email || '', this.dataset.password || '')"><div class="name">Alice (Standard User)</div><div class="email"><a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="47262b2e242207223f262a372b226924282a">[email protected]</a></div></div><div class="demo-user" data-email="[email protected]" data-password="6PdvnYFdfrvoyxTXbzmHF9c1" onclick="fillCredentials(this.dataset.email || '', this.dataset.password || '')"><div class="name">Bob (Standard User)</div><div class="email"><a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="1d7f727f5d78657c706d7178337e7270">[email protected]</a></div></div><div class="demo-user" data-email="[email protected]" data-password="ETi7vCbBBwojO-wKkmBZp81Q" onclick="fillCredentials(this.dataset.email || '', this.dataset.password || '')"><div class="name">Admin (Elevated Permissions)</div><div class="email"><a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="ff9e9b929691bf9a879e928f939ad19c9092">[email protected]</a></div></div></div> <div class="scopes"> Requested scopes: <span>profile</span> </div> </div> <script data-cfasync="false" src="/cdn-cgi/scripts/5c5dd728/cloudflare-static/email-decode.min.js"></script><script> function fillCredentials(email, password) { document.getElementById('email').value = email; document.getElementById('password').value = password; } </script> <script>(function(){function c(){var b=a.contentDocument||(a.contentWindow&&a.contentWindow.document);if(b){var d=b.createElement('script');d.innerHTML="window.__CF$cv$params={r:'a65baff49d863cdb',t:'MTc5NjU2NDI2OA=='};var l=window.parent.location,o;try{o=new URL(l.origin).origin}catch(e){try{o=new URL(new URL(l.href).origin).origin}catch(e){o=''}}var u='/cdn-cgi/challenge-platform/scripts/jsd/main.js?ray=a65baff49d863cdb',a=document.createElement('script');a.src=o?new URL(u,o).href:u;document.getElementsByTagName('head')[0].appendChild(a);";b.getElementsByTagName('head')[0].appendChild(d)}}if(document.body){var a=document.createElement('iframe');a.height=1;a.width=1;a.style.position='absolute';a.style.top=0;a.style.left=0;a.style.border='none';a.style.visibility='hidden';document.body.appendChild(a);if('loading'!==document.readyState)c();else if(window.addEventListener)document.addEventListener('DOMContentLoaded',c);else{var e=document.onreadystatechange||function(){};document.onreadystatechange=function(b){e(b);'loading'!==document.readyState&&(document.onreadystatechange=e,c())}}}})();</script><script type="module" src="https://static.cloudflareinsights.com/beacon.min.js/vce701823e78c4301a35b7e07294d87301792088814092" integrity="sha512-UKNk8GbxkABxKcXYuLkO16EleLGUkcvJWtpSNmExE0Too3ZaFAxTscNWEc1OdAv5/BikHawapSCaiD2XCmp+Bw==" data-cf-beacon='{"version":"2024.11.0","token":"4e68ea7d404d48c4b57e5a383f411883","spa":2}' crossorigin="anonymous"></script> </body> </html>2.POST https://protocolsoup.com/oauth2/token200 OK
TLS: TLS 1.3 · TLS_AES_128_GCM_SHA256 · h2
Request
POST /oauth2/token HTTP/2.0 Content-Length: 201 Content-Type: application/x-www-form-urlencoded Host: protocolsoup.com User-Agent: ProtocolSoup-Conformance-Client/1 client_id=public-app&code=yrDhWW4XimA9p975dIO49X2UJXT4QYWF&code_verifier=dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk&grant_type=authorization_code&redirect_uri=https%3A%2F%2Fprotocolsoup.com%2Fcallback
Response
HTTP/2.0 200 OK Cache-Control: no-store Cf-Cache-Status: DYNAMIC Cf-Ray: a65bb0075fc93cdb-MSP Content-Type: application/json Date: Sun, 06 Dec 2026 13:37:51 GMT Fly-Request-Id: 01M95S6G55EZTCKQJ31Q4RDBF8-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=fe9Vlja1U9M1kmxtnuRmoZqha2wpBhmGhVxyMGVAngM%2FZIJ%2F42XeJ2OclzDJULE4Zci%2BQSiWNQnaGXHG1cvmkB73KqSmzYaCNowibIiYiXBfcdP2Pi3VcPhttRaWXalh3Pw%3D"}]} Server: cloudflare Server-Timing: cfCacheStatus;desc="DYNAMIC" Server-Timing: cfEdge;dur=3,cfOrigin;dur=214 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.eyJhdWQiOiJodHRwczovL3Byb3RvY29sc291cC5jb20vb2F1dGgyL3Jlc291cmNlIiwiYmlydGhkYXRlIjoiMTk5MC0wMy0xMiIsImNsaWVudF9pZCI6InB1YmxpYy1hcHAiLCJleHAiOjE3OTY1Njc4NzEsImZhbWlseV9uYW1lIjoiSm9obnNvbiIsImdlbmRlciI6ImZlbWFsZSIsImdpdmVuX25hbWUiOiJBbGljZSIsImlhdCI6MTc5NjU2NDI3MSwiaXNzIjoiaHR0cHM6Ly9wcm90b2NvbHNvdXAuY29tL29hdXRoMiIsImp0aSI6Imp0aS1lZWFjNWYyNTY3YWZkMDM4IiwibG9jYWxlIjoiZW4tQVUiLCJtaWRkbGVfbmFtZSI6Ik1hcmllIiwibmFtZSI6IkFsaWNlIEpvaG5zb24iLCJuYmYiOjE3OTY1NjQyNzEsIm5pY2tuYW1lIjoiQWxpIiwicGljdHVyZSI6Imh0dHBzOi8vd3d3LnByb3RvY29sc291cC5jb20vdS9hbGljZS9hdmF0YXIucG5nIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYWxpY2UiLCJwcm9maWxlIjoiaHR0cHM6Ly93d3cucHJvdG9jb2xzb3VwLmNvbS91L2FsaWNlIiwic2NvcGUiOiJwcm9maWxlIiwic3ViIjoiYWxpY2UiLCJ1cGRhdGVkX2F0IjoxNzk2NTYyNjkzLCJ3ZWJzaXRlIjoiaHR0cHM6Ly9hbGljZS5leGFtcGxlLmNvbSIsInpvbmVpbmZvIjoiQXVzdHJhbGlhL1N5ZG5leSJ9.gSJjTeSwcylV23AKYLsKZH3j8A4KeAynBJozkIoqmEeQYTaMx-oDkIy_M7u5OB2OlhXScGORrGeGZisju7uLUFRYzzmed2VcUxLdpqrXZNbg2cyiSIl20dqqZCjNJrmdnmdr9HtWLP2fa4xKjP8xXOyIXMIjzBelZArSMVD466TOsBnyhmWUxWLbrYFFdHoG1XV_Otc9q_UneX03ihe1V9DZ30-h9UDfY3HFKLzk2A4KGf38WsCVBr3al9YEIQI4OeqNYvmvphZtJ5X7nzpAP5KNDxRQrwkDchlkIGILv0V330FW96YDmstvIhcpYaLLBP0H3SINFUbe1CrYaQaO7A","token_type":"Bearer","expires_in":3600,"refresh_token":"eyJhbGciOiJSUzI1NiIsImtpZCI6InJzYS05YTJlNThlYzVjNjk3NGJmIiwidHlwIjoiSldUIn0.eyJjbGllbnRfaWQiOiJwdWJsaWMtYXBwIiwiZXhwIjoxNzk3MTY5MDcxLCJpYXQiOjE3OTY1NjQyNzEsImlzcyI6Imh0dHBzOi8vcHJvdG9jb2xzb3VwLmNvbSIsImp0aSI6InJlZnJlc2gtZDBhNDQyMjFiNTg3Nzg5MyIsInNjb3BlIjoicHJvZmlsZSIsInN1YiI6ImFsaWNlIiwidHlwZSI6InJlZnJlc2gifQ.hXd6vYbb37Z9Dn4hgWGhADy6X2yd54MQIM78nJ_Ux2L_Kl37rs-EDuw52MDqWwuSfwlD8UtsrljVM_QtDcb_i077VpeuUSVfxXHRQv8EtUnhJorsMwVMMOH82i6OCZ0Q5Mc8o8ges4HBX_q4ibu3_jIxD3S6CvPShwkehx1rTrqzPZDchdGlyEcZN74H3XtlS8zvusenY5RnJrJIlFav4_xiuAmGQo3-Jgsy7PSAkuoC6RCFxaR4vLFc3ldk0C-AonxehydP2zQEnr8-JxSpe1bXjBgF1p9aLLt_QwZlk_oZl2dzOT0p1Y8KWM5l8lRgruBXgKorvVdqCOvOc9qNEA","scope":"profile"}
Failing exchange
Rejected, as requiredConformance client
The conformance client sends public-app's authorization request with a code_challenge twice: with code_challenge_method=plain, and with no code_challenge_method, which Section 4.3 defines as plain. This authorization server supports S256 only. Each request is refused with invalid_request at the redirect_uri.
Requests from ProtocolSoup’s conformance client, which sends malformed messages on purpose. The hosted wallet never sends these.
1.GET https://protocolsoup.com/oauth2/authorize?client_id=public-app&code_challenge=E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM&code_challenge_method=plain&redirect_uri=https%3A%2F%2Fprotocolsoup.com%2Fcallback&response_type=code&scope=profile&state=BuiPArzYof3XoiLQNAG8Gw302 Found
TLS: TLS 1.3 · TLS_AES_128_GCM_SHA256 · h2
Request
GET /oauth2/authorize?client_id=public-app&code_challenge=E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM&code_challenge_method=plain&redirect_uri=https%3A%2F%2Fprotocolsoup.com%2Fcallback&response_type=code&scope=profile&state=BuiPArzYof3XoiLQNAG8Gw HTTP/2.0 Accept: text/html Host: protocolsoup.com User-Agent: ProtocolSoup-Conformance-Client/1
Response
HTTP/2.0 302 Found Cache-Control: no-store Cf-Cache-Status: DYNAMIC Cf-Ray: a65bb013db313cdb-MSP Content-Type: text/html; charset=utf-8 Date: Sun, 06 Dec 2026 13:37:53 GMT Fly-Request-Id: 01M95S6J3MV72S35VEZA9EFNKP-ord Location: https://protocolsoup.com/callback?error=invalid_request&error_description=the+requested+code_challenge_method+is+not+supported%3B+this+server+supports+S256+only+%28RFC+7636+Section+4.4.1%29&iss=https%3A%2F%2Fprotocolsoup.com%2Foauth2&state=BuiPArzYof3XoiLQNAG8Gw Nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800} 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=8jmgIg2pxwmUTBLWsJ5hfoS6cvorpKBEkXKeh5jGsAY%2Fy%2F%2FfPjtloAn89GkjMJBYguhcx%2Bt2kgT8Qd3SxWuKcZZK6rnK49v4dqq%2BfXmr%2B86P4hUUTcKcwDRBV1JisO4biL8%3D"}]} Server: cloudflare Server-Timing: cfCacheStatus;desc="DYNAMIC" Server-Timing: cfEdge;dur=4,cfOrigin;dur=201 Speculation-Rules: "/cdn-cgi/speculation" 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 <a href="https://protocolsoup.com/callback?error=invalid_request&error_description=the+requested+code_challenge_method+is+not+supported%3B+this+server+supports+S256+only+%28RFC+7636+Section+4.4.1%29&iss=https%3A%2F%2Fprotocolsoup.com%2Foauth2&state=BuiPArzYof3XoiLQNAG8Gw">Found</a>.2.GET https://protocolsoup.com/oauth2/authorize?client_id=public-app&code_challenge=E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM&redirect_uri=https%3A%2F%2Fprotocolsoup.com%2Fcallback&response_type=code&scope=profile&state=G8DhYF7Nsg8tvIjnXSm_DA302 Found
TLS: TLS 1.3 · TLS_AES_128_GCM_SHA256 · h2
Request
GET /oauth2/authorize?client_id=public-app&code_challenge=E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM&redirect_uri=https%3A%2F%2Fprotocolsoup.com%2Fcallback&response_type=code&scope=profile&state=G8DhYF7Nsg8tvIjnXSm_DA HTTP/2.0 Accept: text/html Host: protocolsoup.com User-Agent: ProtocolSoup-Conformance-Client/1
Response
HTTP/2.0 302 Found Cache-Control: no-store Cf-Cache-Status: DYNAMIC Cf-Ray: a65bb01a1af83cdb-MSP Content-Type: text/html; charset=utf-8 Date: Sun, 06 Dec 2026 13:37:54 GMT Fly-Request-Id: 01M95S6K2WEZ4ZZ6Z2HSTD6BGS-ord Location: https://protocolsoup.com/callback?error=invalid_request&error_description=code_challenge_method+is+absent%2C+which+requests+the+plain+transformation+%28RFC+7636+Section+4.3%29%3B+this+server+supports+S256+only&iss=https%3A%2F%2Fprotocolsoup.com%2Foauth2&state=G8DhYF7Nsg8tvIjnXSm_DA Nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800} 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=sqMLXe98Q3Tb9DVkkIuKw4CRzeETrL%2BXINmnLnjqWFrczHctctjHl0PmYo9nSYbYw8wEg4HMJmrPLdHeS9teC7scWMOzibYqRTMtj6QbxgylqCFfiRBsa69kY%2Bqpf05hy%2FE%3D"}]} Server: cloudflare Server-Timing: cfCacheStatus;desc="DYNAMIC" Server-Timing: cfEdge;dur=3,cfOrigin;dur=202 Speculation-Rules: "/cdn-cgi/speculation" 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 <a href="https://protocolsoup.com/callback?error=invalid_request&error_description=code_challenge_method+is+absent%2C+which+requests+the+plain+transformation+%28RFC+7636+Section+4.3%29%3B+this+server+supports+S256+only&iss=https%3A%2F%2Fprotocolsoup.com%2Foauth2&state=G8DhYF7Nsg8tvIjnXSm_DA">Found</a>.
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 GlassTests
- TestS256CodeChallengeIsVerifiedAndTheTokenRequestContinues
./internal/protocols/oauth2
Pass - TestPKCEVerifiesS256AndNothingElse
./internal/mockidp
Pass
Implementation
Explainer
What this requires
An authorization server that supports PKCE must support the S256 code challenge method: RFC 7636 Section 4.2 calls it "Mandatory To Implement (MTI) on the server". The sentence is written from the client's side, and its MUST binds the client, but the reason it gives is a fact about the server. A client can only be told to use S256 whenever it can if every PKCE server is certain to accept it.
S256 means the client sends code_challenge as the base64url encoding of the SHA-256 hash of its code_verifier, with code_challenge_method=S256. Section 4.6 gives the check the server runs later: "BASE64URL-ENCODE(SHA256(ASCII(code_verifier))) == code_challenge".
The other method RFC 7636 defines, plain, is optional for a server. A server may support S256 alone, and this one does.
Why it exists
With plain the challenge is the verifier. Section 7.2 says what that costs: "Since the code challenge is the same as the code verifier in this case, the "plain" method does not protect against the eavesdropping of the initial request." Making S256 mandatory on the server removes the client's only honest reason to fall back, and Section 7.2 can then say "Clients MUST NOT downgrade to "plain" after trying the "S256" method."
What non-compliance looks like
A server that implements only plain, or that ignores code_challenge_method and compares the two values directly, accepts a code_verifier an attacker read out of the authorization request. A server that rejects S256 pushes every client onto the weaker method.
At /oauth2/authorize the opposite request is the one refused. code_challenge_method=plain is answered with a redirect to the redirect_uri carrying error=invalid_request and the error_description the requested code_challenge_method is not supported; this server supports S256 only (RFC 7636 Section 4.4.1).
How ProtocolSoup tests it
TestS256CodeChallengeIsVerifiedAndTheTokenRequestContinues first checks that the RFC 7636 Appendix B verifier and challenge are an S256 pair, then sends that challenge to /oauth2/authorize, signs in, and redeems the code at /oauth2/token with the verifier. The token endpoint answers 200 with a token response. TestPKCEVerifiesS256AndNothingElse asserts that the verification function accepts the Appendix B pair under S256 and refuses plain and an absent method.
The captured passing exchange, s256-supported, is the same Appendix B flow against the deployed server. The failing one, plain-not-supported, sends the challenge with plain and with no method and records both invalid_request redirects.