Mercurial > prosody-modules
comparison mod_http_oauth2/mod_http_oauth2.lua @ 5356:959dc350f2ad
mod_http_oauth2: Declare https as required of URIs in schema
If util.jsonschema happens to gain support for 'pattern' (regular
expression validation) then this would be picked up. Until then,
declarative annotations are nice.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 22 Apr 2023 14:06:41 +0200 |
parents | 41a418ebc60b |
children | eda3b078ba2c |
comparison
equal
deleted
inserted
replaced
5355:41a418ebc60b | 5356:959dc350f2ad |
---|---|
656 }; | 656 }; |
657 }; | 657 }; |
658 }; | 658 }; |
659 response_types = { type = "array"; items = { type = "string"; enum = { "code"; "token" } } }; | 659 response_types = { type = "array"; items = { type = "string"; enum = { "code"; "token" } } }; |
660 client_name = { type = "string" }; | 660 client_name = { type = "string" }; |
661 client_uri = { type = "string"; format = "uri" }; | 661 client_uri = { type = "string"; format = "uri"; pattern = "^https:" }; |
662 logo_uri = { type = "string"; format = "uri" }; | 662 logo_uri = { type = "string"; format = "uri"; pattern = "^https:" }; |
663 scope = { type = "string" }; | 663 scope = { type = "string" }; |
664 contacts = { type = "array"; items = { type = "string" } }; | 664 contacts = { type = "array"; items = { type = "string" } }; |
665 tos_uri = { type = "string"; format = "uri" }; | 665 tos_uri = { type = "string"; format = "uri"; pattern = "^https:" }; |
666 policy_uri = { type = "string"; format = "uri" }; | 666 policy_uri = { type = "string"; format = "uri"; pattern = "^https:" }; |
667 jwks_uri = { type = "string"; format = "uri" }; | 667 jwks_uri = { type = "string"; format = "uri"; pattern = "^https:" }; |
668 jwks = { type = "object"; description = "JSON Web Key Set, RFC 7517" }; | 668 jwks = { type = "object"; description = "JSON Web Key Set, RFC 7517" }; |
669 software_id = { type = "string"; format = "uuid" }; | 669 software_id = { type = "string"; format = "uuid" }; |
670 software_version = { type = "string" }; | 670 software_version = { type = "string" }; |
671 }; | 671 }; |
672 -- Localized versions of descriptive properties and URIs | 672 -- Localized versions of descriptive properties and URIs |