diff mod_http_oauth2/mod_http_oauth2.lua @ 5391:4aedce4fb95d

mod_http_oauth2: Fix accidental uppercase in invocation of hash function Thanks auto-complete!
author Kim Alvefur <zash@zash.se>
date Sun, 30 Apr 2023 16:41:30 +0200
parents f2363e6d9a64
children c0a6f39caf47
line wrap: on
line diff
--- 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