# HG changeset patch # User Kim Alvefur # Date 1682860805 -7200 # Node ID d872a1cd8c1db50259234f2a347bfd16ab3a3973 # Parent 832c515b1650cc43e2f680f9f93876529bfd68f5 mod_http_oauth2: Specify that 'contacts' items are emails in client registration Not enforced, but good for documentation. > Array of strings representing ways to contact people responsible for > this client, typically email addresses. "typically" isn't a great word in a specification, so one could persume this may be e.g. URLs like https://example.com/contact-us or so as well. diff -r 832c515b1650 -r d872a1cd8c1d mod_http_oauth2/mod_http_oauth2.lua --- a/mod_http_oauth2/mod_http_oauth2.lua Sat Apr 29 15:47:03 2023 +0200 +++ b/mod_http_oauth2/mod_http_oauth2.lua Sun Apr 30 15:20:05 2023 +0200 @@ -711,7 +711,7 @@ client_uri = { type = "string"; format = "uri"; luaPattern = "^https:" }; logo_uri = { type = "string"; format = "uri"; luaPattern = "^https:" }; scope = { type = "string" }; - contacts = { type = "array"; items = { type = "string" } }; + contacts = { type = "array"; items = { type = "string"; format = "email" } }; tos_uri = { type = "string"; format = "uri"; luaPattern = "^https:" }; policy_uri = { type = "string"; format = "uri"; luaPattern = "^https:" }; jwks_uri = { type = "string"; format = "uri"; luaPattern = "^https:" };