From 01b3cc143fcad974b4fcad429936ee430f0d0c84 Mon Sep 17 00:00:00 2001 From: emrah Date: Thu, 17 Oct 2024 12:48:15 +0300 Subject: [PATCH] refactor(auth_hybrid_matrix_token): sync with https://github.com/jitsi/jitsi-meet/commit/a50d6dc0f4133740b7e87f43aabf918558a3d73e --- .../mod_auth_hybrid_matrix_token.lua | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/auth_hybrid_matrix_token/mod_auth_hybrid_matrix_token.lua b/auth_hybrid_matrix_token/mod_auth_hybrid_matrix_token.lua index a512e0b..fecf3ac 100644 --- a/auth_hybrid_matrix_token/mod_auth_hybrid_matrix_token.lua +++ b/auth_hybrid_matrix_token/mod_auth_hybrid_matrix_token.lua @@ -81,6 +81,7 @@ function init_session(event) -- in either case set auth_token in the session session.auth_token = token + session.user_agent_header = request.headers['user_agent'] end module:hook_global("bosh-session", init_session) @@ -222,11 +223,12 @@ local function matrix_handler(session, payload) if res == false then module:log( "warn", - "Error verifying token err:%s, reason:%s tenant:%s room:%s", + "Error verifying token err:%s, reason:%s tenant:%s room:%s, agent:%s", error, reason, session.jitsi_web_query_prefix, - session.jitsi_web_query_room + session.jitsi_web_query_room, + session.user_agent_header ) session.auth_token = nil measure_verify_fail(1) @@ -282,11 +284,12 @@ local function token_handler(session) if res == false then module:log( "warn", - "Error verifying token err:%s, reason:%s tenant:%s room:%s", + "Error verifying token err:%s, reason:%s tenant:%s room:%s, agent:%s", error, reason, session.jitsi_web_query_prefix, - session.jitsi_web_query_room + session.jitsi_web_query_room, + session.user_agent_header ) session.auth_token = nil measure_verify_fail(1)