Mercurial > prosody-modules
changeset 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 |
files | mod_adhoc_oauth2_client/mod_adhoc_oauth2_client.lua |
diffstat | 1 files changed, 9 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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({