Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
Populate the token cache
Sam Whited3128628d091f
diff --git a/prosody-plugins/mod_auth_token.lua b/prosody-plugins/mod_auth_token.luaindex 4aa14d1378..b43f45d4aa 100644--- a/prosody-plugins/mod_auth_token.lua+++ b/prosody-plugins/mod_auth_token.lua@@ -94,12 +94,15 @@ function get_public_key(keyId)local wait, done = async.waiter();local function cb(content_, code_, response_, request_)content, code = content_, code_;+ if code == 200 or code == 204 then+ cache:set(keyId, content);+ enddone();endmodule:log("debug", "Fetching public key from: "..asapKeyServer..keyId);- -- We hash the key ID to work around some legacy behavior in the original- -- deployment and make deployment easier. It also helps prevent directory+ -- We hash the key ID to work around some legacy behavior and make+ -- deployment easier. It also helps prevent directory-- traversal attacks (although path cleaning could have done this too).local request = http.request(asapKeyServer..sha256(keyId)..'.pem', {headers = http_headers or {},