mod_http_oauth2: Fix validation of informative URIs
authorKim Alvefur <zash@zash.se>
Sat, 11 Mar 2023 22:58:47 +0100
changeset 5248 fa7bd721a3f6
parent 5247 d5dc8edb2695
child 5249 e22cae58141d
mod_http_oauth2: Fix validation of informative URIs Iterating over wrong table
mod_http_oauth2/mod_http_oauth2.lua
--- a/mod_http_oauth2/mod_http_oauth2.lua	Sat Mar 11 22:46:27 2023 +0100
+++ b/mod_http_oauth2/mod_http_oauth2.lua	Sat Mar 11 22:58:47 2023 +0100
@@ -612,7 +612,7 @@
 		end
 	end
 
-	for field, prop_schema in pairs(registration_schema) do
+	for field, prop_schema in pairs(registration_schema.properties) do
 		if prop_schema.format == "uri" and client_metadata[field] then
 			local components = url.parse(client_metadata[field]);
 			if components.scheme ~= "https" then