Comparison

mod_http_oauth2/mod_http_oauth2.lua @ 5237:3354f943c1fa

mod_http_oauth2: Require URL to client informational page in registration Since it's used without fallback in the template, seems someone expected this to always be there, and we might as well.
author Kim Alvefur <zash@zash.se>
date Sat, 11 Mar 2023 21:13:00 +0100
parent 5236:ff8623e2f9d9
child 5239:8620a635106e
comparison
equal deleted inserted replaced
5236:ff8623e2f9d9 5237:3354f943c1fa
550 return 200; 550 return 200;
551 end 551 end
552 552
553 local registration_schema = { 553 local registration_schema = {
554 type = "object"; 554 type = "object";
555 required = { "client_name"; "redirect_uris" }; 555 required = {
556 -- These are shown to users in the template
557 "client_name";
558 "client_uri";
559 -- We need at least one redirect URI for things to work
560 "redirect_uris";
561 };
556 properties = { 562 properties = {
557 redirect_uris = { type = "array"; minLength = 1; items = { type = "string"; format = "uri" } }; 563 redirect_uris = { type = "array"; minLength = 1; items = { type = "string"; format = "uri" } };
558 token_endpoint_auth_method = { type = "string"; enum = { "none"; "client_secret_post"; "client_secret_basic" } }; 564 token_endpoint_auth_method = { type = "string"; enum = { "none"; "client_secret_post"; "client_secret_basic" } };
559 grant_types = { 565 grant_types = {
560 type = "array"; 566 type = "array";