comparison mod_adhoc_oauth2_client/mod_adhoc_oauth2_client.lua @ 4267:43284437c5ed

mod_adhoc_oauth2_client: Advertise URI fields with XEP-0122
author Kim Alvefur <zash@zash.se>
date Sun, 22 Nov 2020 16:54:50 +0100
parents b43c6d614d22
children 871d140d61bb
comparison
equal deleted inserted replaced
4266:b43c6d614d22 4267:43284437c5ed
14 local new_client = dataforms.new({ 14 local new_client = dataforms.new({
15 title = "Create OAuth2 client"; 15 title = "Create OAuth2 client";
16 {var = "FORM_TYPE"; type = "hidden"; value = "urn:uuid:ff0d55ed-2187-4ee0-820a-ab633a911c14#create"}; 16 {var = "FORM_TYPE"; type = "hidden"; value = "urn:uuid:ff0d55ed-2187-4ee0-820a-ab633a911c14#create"};
17 {name = "name"; type = "text-single"; label = "Client name"; required = true}; 17 {name = "name"; type = "text-single"; label = "Client name"; required = true};
18 {name = "description"; type = "text-multi"; label = "Description"}; 18 {name = "description"; type = "text-multi"; label = "Description"};
19 {name = "info_url"; type = "text-single"; label = "Informative URL"; desc = "Link to information about your client"}; 19 {name = "info_url"; type = "text-single"; label = "Informative URL"; desc = "Link to information about your client"; datatype = "xs:anyURI"};
20 {name = "redirect_uri"; type = "text-single"; label = "Redirection URI"; desc = "Where to redirect the user after authorizing."; required = true}; 20 {
21 name = "redirect_uri";
22 type = "text-single";
23 label = "Redirection URI";
24 desc = "Where to redirect the user after authorizing.";
25 datatype = "xs:anyURI";
26 required = true;
27 };
21 }) 28 })
22 29
23 local client_created = dataforms.new({ 30 local client_created = dataforms.new({
24 title = "New OAuth2 client created"; 31 title = "New OAuth2 client created";
25 instructions = "Save these details, they will not be shown again"; 32 instructions = "Save these details, they will not be shown again";