# HG changeset patch # User Kim Alvefur # Date 1678565580 -3600 # Node ID 3354f943c1fa89ffdeb6122560417fa78fafa7ce # Parent ff8623e2f9d99648634f4cc577fe4fbcf3f1de54 mod_http_oauth2: Require URL to client informational page in registration Since it's used without fallback in the template, seems someone expected this to always be there, and we might as well. diff -r ff8623e2f9d9 -r 3354f943c1fa mod_http_oauth2/mod_http_oauth2.lua --- 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" } };