mod_http_oauth2/mod_http_oauth2.lua
changeset 5241 3354f943c1fa
parent 5240 ff8623e2f9d9
child 5243 8620a635106e
--- a/mod_http_oauth2/mod_http_oauth2.lua	Sat Mar 11 21:11:50 2023 +0100
+++ b/mod_http_oauth2/mod_http_oauth2.lua	Sat Mar 11 21:13:00 2023 +0100
@@ -552,7 +552,13 @@
 
 local registration_schema = {
 	type = "object";
-	required = { "client_name"; "redirect_uris" };
+	required = {
+		-- These are shown to users in the template
+		"client_name";
+		"client_uri";
+		-- We need at least one redirect URI for things to work
+		"redirect_uris";
+	};
 	properties = {
 		redirect_uris = { type = "array"; minLength = 1; items = { type = "string"; format = "uri" } };
 		token_endpoint_auth_method = { type = "string"; enum = { "none"; "client_secret_post"; "client_secret_basic" } };