Mercurial > prosody-modules
view mod_service_outage_status/mod_service_outage_status.lua @ 5378:6155c46d9eea
mod_http_oauth2: Record OAuth software id and version attached to tokens
Unsure if these are used anywhere, but `software_id` is supposedly more
unique than `client_uri` which can vary by registration or something?
Software versions can also be good to know e.g. in case there is a
security issue affecting certain versions that could warrant revocation
of tokens issued to it.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 27 Apr 2023 19:16:14 +0200 |
parents | 03044a6f5f4c |
children |
line wrap: on
line source
local dataforms = require "util.dataforms"; local form_layout = dataforms.new({ { type = "hidden"; var = "FORM_TYPE"; value = "urn:xmpp:sos:0" }; { type = "list-multi"; name = "addrs"; var = "external-status-addresses" }; }); local addresses = module:get_option_array("outage_status_urls"); module:add_extension(form_layout:form({ addrs = addresses }, "result"));