Rocket.chat.reactnative: [BUG] JITSI access token not generated from mobile when making calls.

Created on 7 Dec 2020  路  6Comments  路  Source: RocketChat/Rocket.Chat.ReactNative

Description:

When JWT auth is enabled in JITSI call settings of Rocket chat server, and user tries to call from android to iOS user .
The iOS user is prompted with username \ password screen to join the call.

Environment Information:

  • Rocket.Chat Server Version: 3.9.0
  • Rocket.Chat App Version: 4.12.1
  • Device Name: iPhone 11
  • OS Version: 14.2

Steps to reproduce:

  1. Rocket chat server -> Adminstration -> Video Conference -> JITSI -> Enable JWT auth
  2. Keep the iOS device in background mode.
  3. Call from Android device to iOS device.
  4. Call started notification received in iOS device.
  5. Click notification to join the call.
  6. Now we get username/password alert screen inside JITSI meet.

Expected behavior:


User should not be prompted with credentials to join JITSI calls, when JWT token in enabled and configured in server.

Actual behavior:


User is prompted with credentials to join JITSI calls, when JWT token in enabled and configured in server.

Additional context:

methodCallWrapper is undefined.

Unable to generate jwt token

Most helpful comment

Hey @toshanmugaraj, can you open a PR fixing the problem?
It's just this import line
https://github.com/RocketChat/Rocket.Chat.ReactNative/blob/develop/app/sagas/deepLinking.js#L18
We shouldn't import callJitsi directly from /lib/methods.
We should use RocketChat.callJitsi here
https://github.com/RocketChat/Rocket.Chat.ReactNative/blob/develop/app/sagas/deepLinking.js#L57

All 6 comments

Hey @toshanmugaraj, can you open a PR fixing the problem?
It's just this import line
https://github.com/RocketChat/Rocket.Chat.ReactNative/blob/develop/app/sagas/deepLinking.js#L18
We shouldn't import callJitsi directly from /lib/methods.
We should use RocketChat.callJitsi here
https://github.com/RocketChat/Rocket.Chat.ReactNative/blob/develop/app/sagas/deepLinking.js#L57

Can i work on this? @toshanmugaraj @djorkaeffalexandre ?

@sumukhah go ahead

Yeah, I saw when I tap push notification about call started I was join to call as guest, without JWT authentication.

@djorkaeffalexandre @sumukhah Have tested the fix now JWT based authentication is working !!

@diegolmello

Was this page helpful?
0 / 5 - 0 ratings

Related issues

diegolmello picture diegolmello  路  5Comments

ggazzo picture ggazzo  路  6Comments

LeeThompson picture LeeThompson  路  4Comments

HamzaKhait picture HamzaKhait  路  4Comments

cygnusm picture cygnusm  路  4Comments