Changeset

5389:d872a1cd8c1d

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.
author Kim Alvefur <zash@zash.se>
date Sun, 30 Apr 2023 15:20:05 +0200
parents 5388:832c515b1650
children 5390:f2363e6d9a64
files mod_http_oauth2/mod_http_oauth2.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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:" };