# HG changeset patch # User Kim Alvefur # Date 1606060490 -3600 # Node ID 43284437c5ed3bc6b6e0d515d3d3335944bdfb05 # Parent b43c6d614d22a3c7401b63db4637e281e8fa9edf mod_adhoc_oauth2_client: Advertise URI fields with XEP-0122 diff -r b43c6d614d22 -r 43284437c5ed mod_adhoc_oauth2_client/mod_adhoc_oauth2_client.lua --- a/mod_adhoc_oauth2_client/mod_adhoc_oauth2_client.lua Sun Nov 22 16:17:24 2020 +0100 +++ b/mod_adhoc_oauth2_client/mod_adhoc_oauth2_client.lua Sun Nov 22 16:54:50 2020 +0100 @@ -16,8 +16,15 @@ {var = "FORM_TYPE"; type = "hidden"; value = "urn:uuid:ff0d55ed-2187-4ee0-820a-ab633a911c14#create"}; {name = "name"; type = "text-single"; label = "Client name"; required = true}; {name = "description"; type = "text-multi"; label = "Description"}; - {name = "info_url"; type = "text-single"; label = "Informative URL"; desc = "Link to information about your client"}; - {name = "redirect_uri"; type = "text-single"; label = "Redirection URI"; desc = "Where to redirect the user after authorizing."; required = true}; + {name = "info_url"; type = "text-single"; label = "Informative URL"; desc = "Link to information about your client"; datatype = "xs:anyURI"}; + { + name = "redirect_uri"; + type = "text-single"; + label = "Redirection URI"; + desc = "Where to redirect the user after authorizing."; + datatype = "xs:anyURI"; + required = true; + }; }) local client_created = dataforms.new({