comparison mod_http_oauth2/mod_http_oauth2.lua @ 6233:9014c95c4549

mod_http_oauth2: Fix indentation
author Kim Alvefur <zash@zash.se>
date Sat, 31 May 2025 16:07:18 +0200
parents 2505542c6c50
children b63202d66238
comparison
equal deleted inserted replaced
6232:2505542c6c50 6233:9014c95c4549
397 -- via the token endpoint, so how did you get here? 397 -- via the token endpoint, so how did you get here?
398 return oauth_error("invalid_request"); 398 return oauth_error("invalid_request");
399 end 399 end
400 400
401 local function make_client_secret(client_id) --> client_secret 401 local function make_client_secret(client_id) --> client_secret
402 return hashes.hmac_sha256(verification_key, client_id, true); 402 return hashes.hmac_sha256(verification_key, client_id, true);
403 end 403 end
404 404
405 local function verify_client_secret(client_id, client_secret) 405 local function verify_client_secret(client_id, client_secret)
406 return hashes.equals(make_client_secret(client_id), client_secret); 406 return hashes.equals(make_client_secret(client_id), client_secret);
407 end 407 end
408 408
409 function grant_type_handlers.password(params, client) 409 function grant_type_handlers.password(params, client)
410 local request_username 410 local request_username
411 411