comparison mod_http_oauth2/mod_http_oauth2.lua @ 5190:1733f184e2bb

mod_http_oauth2: Fix to actually return OOB response
author Kim Alvefur <zash@zash.se>
date Fri, 03 Mar 2023 14:22:05 +0100
parents 4ee8eb1134a8
children f5a58cbe86e4
comparison
equal deleted inserted replaced
5189:4ee8eb1134a8 5190:1733f184e2bb
127 response = response; 127 response = response;
128 title = "Your authorization code"; 128 title = "Your authorization code";
129 message = "Here's your authorization code, copy and paste it into your app:"; 129 message = "Here's your authorization code, copy and paste it into your app:";
130 extra = code; 130 extra = code;
131 }) or ("Here's your authorization code:\n%s\n"):format(code); 131 }) or ("Here's your authorization code:\n%s\n"):format(code);
132 return response;
132 end 133 end
133 134
134 local redirect = url.parse(redirect_uri); 135 local redirect = url.parse(redirect_uri);
135 136
136 local query = http.formdecode(redirect.query or ""); 137 local query = http.formdecode(redirect.query or "");