comparison mod_http_oauth2/mod_http_oauth2.lua @ 5455:80a81e7f3c4e

mod_http_oauth2: Require non-empty arrays in client registration Makes no sense to claim to support nothing.
author Kim Alvefur <zash@zash.se>
date Tue, 16 May 2023 21:09:38 +0200
parents 6970c73711c2
children 9008aea491bf
comparison
equal deleted inserted replaced
5454:6970c73711c2 5455:80a81e7f3c4e
760 enum = { "none"; "client_secret_post"; "client_secret_basic" }; 760 enum = { "none"; "client_secret_post"; "client_secret_basic" };
761 default = "client_secret_basic"; 761 default = "client_secret_basic";
762 }; 762 };
763 grant_types = { 763 grant_types = {
764 type = "array"; 764 type = "array";
765 minItems = 1;
765 items = { 766 items = {
766 type = "string"; 767 type = "string";
767 enum = { 768 enum = {
768 "authorization_code"; 769 "authorization_code";
769 "implicit"; 770 "implicit";
775 }; 776 };
776 }; 777 };
777 default = { "authorization_code" }; 778 default = { "authorization_code" };
778 }; 779 };
779 application_type = { type = "string"; enum = { "native"; "web" }; default = "web" }; 780 application_type = { type = "string"; enum = { "native"; "web" }; default = "web" };
780 response_types = { type = "array"; items = { type = "string"; enum = { "code"; "token" } }; default = { "code" } }; 781 response_types = { type = "array"; minItems = 1; items = { type = "string"; enum = { "code"; "token" } }; default = { "code" } };
781 client_name = { type = "string" }; 782 client_name = { type = "string" };
782 client_uri = { type = "string"; format = "uri"; luaPattern = "^https:" }; 783 client_uri = { type = "string"; format = "uri"; luaPattern = "^https:" };
783 logo_uri = { type = "string"; format = "uri"; luaPattern = "^https:" }; 784 logo_uri = { type = "string"; format = "uri"; luaPattern = "^https:" };
784 scope = { type = "string" }; 785 scope = { type = "string" };
785 contacts = { type = "array"; items = { type = "string"; format = "email" } }; 786 contacts = { type = "array"; minItems = 1; items = { type = "string"; format = "email" } };
786 tos_uri = { type = "string"; format = "uri"; luaPattern = "^https:" }; 787 tos_uri = { type = "string"; format = "uri"; luaPattern = "^https:" };
787 policy_uri = { type = "string"; format = "uri"; luaPattern = "^https:" }; 788 policy_uri = { type = "string"; format = "uri"; luaPattern = "^https:" };
788 jwks_uri = { type = "string"; format = "uri"; luaPattern = "^https:" }; 789 jwks_uri = { type = "string"; format = "uri"; luaPattern = "^https:" };
789 jwks = { type = "object"; description = "JSON Web Key Set, RFC 7517" }; 790 jwks = { type = "object"; description = "JSON Web Key Set, RFC 7517" };
790 software_id = { type = "string"; format = "uuid" }; 791 software_id = { type = "string"; format = "uuid" };