# HG changeset patch # User Kim Alvefur # Date 1682865690 -7200 # Node ID 4aedce4fb95d32f6a28b24938ada8b3ec5b3c39d # Parent f2363e6d9a64b06e82937a40fafa47bd1a54f5cb mod_http_oauth2: Fix accidental uppercase in invocation of hash function Thanks auto-complete! diff -r f2363e6d9a64 -r 4aedce4fb95d mod_http_oauth2/mod_http_oauth2.lua --- a/mod_http_oauth2/mod_http_oauth2.lua Sun Apr 30 16:13:40 2023 +0200 +++ b/mod_http_oauth2/mod_http_oauth2.lua Sun Apr 30 16:41:30 2023 +0200 @@ -401,7 +401,7 @@ function verifier_transforms.S256(code_verifier) -- code_challenge = BASE64URL-ENCODE(SHA256(ASCII(code_verifier))) - return code_verifier and b64url(hashes.SHA256(code_verifier)); + return code_verifier and b64url(hashes.sha256(code_verifier)); end -- Used to issue/verify short-lived tokens for the authorization process below