-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add JWT authorization support to Rocket.Chat.ReactNative clients. #1356
Comments
Hi, I have the same problem with iOS app. Your Rocket.Chat Experimental app version: 1.20.1.12049 I am already sent an issue to the old app (RocketChat/Rocket.Chat.iOS#2780). |
In a word, yes. The old apps will never have this and are not being updated - see https://rocket.chat/2019/10/11/moving-mobile-apps-to-react/ It will be done when it is done. Of course your PRs with your code to assist are welcome, or you can contribute via: https://github.com/RocketChat/Rocket.Chat#donate Otherwise you will have to wait patiently and hope that the devs add this. |
Little update on that issue.
I think main thing here is option allow_empty_token = true which gives Rocket.Chat.ReactNative Clients ability to connect with JWT authorization enabled. |
Setting allow_empty_token = true on Jitsi will have the drawback of allowing unauthenticated guest to join and, worse, creating rooms. Basically people from the App (which supposedly have the token) and guests are treated in the same way. |
It is not quite true. As I said with virtual host guest.meet.jitsi all fine. All in my post, read carefully. |
Thanks, you're right, my mistake. I have only a question about this: since we're configuring different virtual hosts (eg. meet.jitsi and guest.meet.jitsi in this case), rocketchat, when creating the videoconference, gives a link only for the main virtualhost (eg. meet.jitsi/RoomName) do we have to change the link (eg. to guest.meet.jitsi/RoomName) before sharing it with guests? |
We did not changed any Rocket.Chat links. Just enabled allow_empty_token = true in guest.meet.jitsi virtualhost. |
Thanks for your reply, I also replicated your configurations in my environment. the guest virtualhost: VirtualHost "guest.video.xxxxx.it" using the same app_id and app_secret as the authenticated host. Also added, inside the config file: the parameter for the guest domain It works but now every anonymous user can create rooms and get the moderators right. |
Hey @ankar84, can you reach me on |
I tested #1746 in my environment and can tell that it works great.
And all tests was successful! |
@djorkaeffalexandre |
@ankar84 can you open an issue about that? This is weird because we call the same function of the call on RoomActions View. |
@djorkaeffalexandre 4.6.1 still has that bug, checked moment ago. |
@ankar84 I'm doing some refactoring on RoomInfo view to implement livechat Info and Actions, I'll take a moment to check if it was fixed with these refactor! |
this is still a problem, just updatet to 3.2.2 and newest Android App (4.6.4.2118) |
Hey @gr0ebi, can you please test our latest beta? v4.7. It seems to be fixed. |
@djorkaeffalexandre thanks a lot for your fast reply, i will check when I'm at home! |
@djorkaeffalexandre |
@gr0ebi I'm happy to hear this. :) |
I don't know, but for me Jitsi with jwt authorization works since early 4.6 and works great, thanks to @djorkaeffalexandre |
@gr0ebi If you can wait, we're going to release 4.7 officially next week. |
@ankar84 i have the exact same issue as u showed in your GIF |
After implementing [NEW] Jitsi meet room access via a token #12259 we can successfully connect securly from Windows desktop clients to Jitsi calls. User with meet link but without valid JWT-token cannot connect to Jitsi Meet call. That user get logon form, that do not accept any data.
But with JWT authentication turned on we have a problem with Rocket.Chat mobile applications (Rocket.Chat React Native).
It seems like mobile app do not send JWT token to Jitsi and while connecting to Jitsi Meet call mobile client user get the same logon\password form, that do not accept any data.
In Jitsi logs we see in that moment:
So, please add JWT authorization support to Rocket.Chat.ReactNative clients.
Thanks!
The text was updated successfully, but these errors were encountered: