Mercurial > prosody-modules
diff mod_http_oauth2/mod_http_oauth2.lua @ 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 | 832c515b1650 |
children | f2363e6d9a64 |
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:" };