Software /
code /
prosody-modules
Changeset
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 | 5390:f2363e6d9a64 |
children | 5392:c0a6f39caf47 |
files | mod_http_oauth2/mod_http_oauth2.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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