mod_http_oauth2: Fix accidental uppercase in invocation of hash function
authorKim Alvefur <zash@zash.se>
Sun, 30 Apr 2023 16:41:30 +0200
changeset 5395 4aedce4fb95d
parent 5394 f2363e6d9a64
child 5396 c0a6f39caf47
mod_http_oauth2: Fix accidental uppercase in invocation of hash function Thanks auto-complete!
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