comparison mod_http_oauth2/mod_http_oauth2.lua @ 5799:c75328aeaba3

mod_http_oauth2: Reduce log level for error delivery via redirect This is supposed to be normal in OAuth2, not really deserving a warning log message.
author Kim Alvefur <zash@zash.se>
date Sat, 23 Dec 2023 00:06:35 +0100
parents fdf3056021dc
children b109773ce6fe
comparison
equal deleted inserted replaced
5798:fdf3056021dc 5799:c75328aeaba3
763 local redirect_query = url.parse(redirect_uri); 763 local redirect_query = url.parse(redirect_uri);
764 local sep = redirect_query.query and "&" or "?"; 764 local sep = redirect_query.query and "&" or "?";
765 redirect_uri = redirect_uri 765 redirect_uri = redirect_uri
766 .. sep .. http.formencode(err.extra.oauth2_response) 766 .. sep .. http.formencode(err.extra.oauth2_response)
767 .. "&" .. http.formencode({ state = q.state, iss = get_issuer() }); 767 .. "&" .. http.formencode({ state = q.state, iss = get_issuer() });
768 module:log("warn", "Sending error response to client via redirect to %s", redirect_uri); 768 module:log("debug", "Sending error response to client via redirect to %s", redirect_uri);
769 return { 769 return {
770 status_code = 303; 770 status_code = 303;
771 headers = { 771 headers = {
772 cache_control = "no-store"; 772 cache_control = "no-store";
773 pragma = "no-cache"; 773 pragma = "no-cache";