Comparison

mod_http_oauth2/mod_http_oauth2.lua @ 5476:575f52b15f5a

mod_http_oauth2: Return OAuth error for authz code store error
author Kim Alvefur <zash@zash.se>
date Thu, 18 May 2023 14:07:37 +0200
parent 5475:022733437fef
child 5477:5986e0edd7a3
comparison
equal deleted inserted replaced
5475:022733437fef 5476:575f52b15f5a
324 challenge = params.code_challenge; 324 challenge = params.code_challenge;
325 challenge_method = params.code_challenge_method; 325 challenge_method = params.code_challenge_method;
326 id_token = id_token; 326 id_token = id_token;
327 }); 327 });
328 if not ok then 328 if not ok then
329 return {status_code = 429}; 329 return oauth_error("temporarily_unavailable");
330 end 330 end
331 331
332 local redirect_uri = get_redirect_uri(client, params.redirect_uri); 332 local redirect_uri = get_redirect_uri(client, params.redirect_uri);
333 if redirect_uri == oob_uri then 333 if redirect_uri == oob_uri then
334 -- TODO some nicer template page 334 -- TODO some nicer template page