Repository navigation
fix(signaling): forward federation joinAuthParams to the signaling server - #7024
Merged
Merged
Conversation
Contributor
📱 QA build
The QA build installs alongside a released Nextcloud app, so you can keep Downloading the file requires a GitHub account, so open this link on the |
mahibi
force-pushed
the
joinAuthParams
branch
2 times, most recently
from
November 18, 2026 11:56
8b350e6 to
d573f5a
Compare
…rver The signaling settings of a federated room now include joinAuthParams, a JWT that is valid for one minute and signed by the own server. The own signaling server checks it before it connects to the remote signaling server (nextcloud/spreed#20254). Signaling servers that require it refuse federated joins without it. The token is forwarded in the "room" message as federation.auth with version "1.0", as the web and iOS clients do. It is left out when the server does not send it, so older servers keep working. Fixes #7021 Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
mahibi
force-pushed
the
joinAuthParams
branch
from
November 18, 2026 14:06
d573f5a to
cee2fd7
Compare
mahibi
marked this pull request as ready for review
November 18, 2026 14:06
rapterjet2004
approved these changes
Nov 18, 2026
Contributor
AndyScherzinger
approved these changes
Nov 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For federated conversations, the signaling settings now include
joinAuthParams: a JWT signed by the own server and valid for one minute. The own signaling server will use it to check that the own Nextcloud allowed the federated join before connecting to the remote signaling server. Once signaling servers enforce this, clients that don't forward the token can no longer join federated conversations.The token is forwarded in the
roommessage asfederation.authwith version1.0, like the web and iOS clients do:When the server does not send
joinAuthParams(servers without spreed#20254),authis left out, so older servers keep working. The capabilityfederation-signaling-authis not checked; the token is forwarded whenever the server sends it, same as web and iOS.Every join uses freshly fetched signaling settings (chat:
ChatActivity.setupWebsocket(), call:CallActivity.fetchSignalingSettings(), including after a websocket reconnect without resume), so the one-minute lifetime is not a problem.🧪 Tested
Two federated servers (nextcloud-docker-dev master + spreed#20254, signaling server 2.1.1) and a physical device:
roommessage containsfederation.authwith version1.0and the join JWT (iss= own server,sub= remote signaling server,nc= remote server,exp=iat+ 60), the join is accepted, and chat relay worksiat)roommessage is sent (unchanged behavior)federationblockauth, federated join still worksWebSocketConnectionHelperFederationJoinTest(parsing, forwarding, missing/empty token, non-federated join)Assisted-by: Claude Code:claude-opus-5-5
🏁 Checklist
/backport to stable-xx.x🤖 AI (if applicable)