comparison mod_http_oauth2/mod_http_oauth2.lua @ 5236:ff8623e2f9d9

mod_http_oauth2: Reorder client metadata validation schema Having 'type' first seems right
author Kim Alvefur <zash@zash.se>
date Sat, 11 Mar 2023 21:11:50 +0100
parents bef543068077
children 3354f943c1fa
comparison
equal deleted inserted replaced
5235:d0d251abf595 5236:ff8623e2f9d9
553 local registration_schema = { 553 local registration_schema = {
554 type = "object"; 554 type = "object";
555 required = { "client_name"; "redirect_uris" }; 555 required = { "client_name"; "redirect_uris" };
556 properties = { 556 properties = {
557 redirect_uris = { type = "array"; minLength = 1; items = { type = "string"; format = "uri" } }; 557 redirect_uris = { type = "array"; minLength = 1; items = { type = "string"; format = "uri" } };
558 token_endpoint_auth_method = { enum = { "none"; "client_secret_post"; "client_secret_basic" }; type = "string" }; 558 token_endpoint_auth_method = { type = "string"; enum = { "none"; "client_secret_post"; "client_secret_basic" } };
559 grant_types = { 559 grant_types = {
560 type = "array";
560 items = { 561 items = {
562 type = "string";
561 enum = { 563 enum = {
562 "authorization_code"; 564 "authorization_code";
563 "implicit"; 565 "implicit";
564 "password"; 566 "password";
565 "client_credentials"; 567 "client_credentials";
566 "refresh_token"; 568 "refresh_token";
567 "urn:ietf:params:oauth:grant-type:jwt-bearer"; 569 "urn:ietf:params:oauth:grant-type:jwt-bearer";
568 "urn:ietf:params:oauth:grant-type:saml2-bearer"; 570 "urn:ietf:params:oauth:grant-type:saml2-bearer";
569 }; 571 };
570 type = "string";
571 }; 572 };
572 type = "array"; 573 };
573 }; 574 response_types = { type = "array"; items = { type = "string"; enum = { "code"; "token" } } };
574 response_types = { items = { enum = { "code"; "token" }; type = "string" }; type = "array" };
575 client_name = { type = "string" }; 575 client_name = { type = "string" };
576 client_uri = { type = "string"; format = "uri" }; 576 client_uri = { type = "string"; format = "uri" };
577 logo_uri = { type = "string"; format = "uri" }; 577 logo_uri = { type = "string"; format = "uri" };
578 scope = { type = "string" }; 578 scope = { type = "string" };
579 contacts = { items = { type = "string" }; type = "array" }; 579 contacts = { type = "array"; items = { type = "string" } };
580 tos_uri = { type = "string" }; 580 tos_uri = { type = "string" };
581 policy_uri = { type = "string"; format = "uri" }; 581 policy_uri = { type = "string"; format = "uri" };
582 jwks_uri = { type = "string"; format = "uri" }; 582 jwks_uri = { type = "string"; format = "uri" };
583 jwks = { type = "object"; description = "JSON Web Key Set, RFC 7517" }; 583 jwks = { type = "object"; description = "JSON Web Key Set, RFC 7517" };
584 software_id = { type = "string"; format = "uuid" }; 584 software_id = { type = "string"; format = "uuid" };