Skip to content

Commit

Permalink
refactor(auth_hybrid_matrix_token): sync with jitsi/jitsi-meet@a50d6dc
Browse files Browse the repository at this point in the history
  • Loading branch information
emrahcom committed Oct 17, 2024
1 parent 11ea9d2 commit 01b3cc1
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions auth_hybrid_matrix_token/mod_auth_hybrid_matrix_token.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 01b3cc1

Please sign in to comment.