igniterealtime / openfire-ofmeet-plugin

Provides an HTTP Online Meeting solution for Openfire using Jitsi Meet.
Apache License 2.0
47 stars 44 forks source link

How to auto authenticate openfire meetings? #100

Open aaykmr opened 5 years ago

aaykmr commented 5 years ago

I am using Openfire Meetings plugin, and the video call opens up from my webapp when the user clicks a link. On clicking the link Jitsi again asks for username and password. I want to automatically authenticate the users as they are already logged in to the webapp. I have the credentials but can't find a way to auto authenticate Jitsi.

I have tried:

1) Anonymous login: Not desirable, because then anyone who is not a part of our app can use the service.

2) Sending keys in the url.

3) Using jwt: Didn't work but I'd like some help on this.

4) Debugging the source code on Chrome, code is complex so couldn't find much.

ageekhere commented 4 years ago

would be nice if it could remember the login details, so you only have to do it once.

naive924 commented 4 years ago

Hi,

It may be because secret is null when new FocusComponent is used. If this secret is prosody, set as follows. see https://github.com/jitsi/jitsi-meet/blob/master/doc/manual-install.md

prosodyctl register focus auth.jitsi.example.com SECRET

Is openfire-ofmeet-plugin doing the same process as "prosodyctl register focus"?


deleolajide commented 4 years ago

The only method I know of is what I use in Pade. Store in localStorage at window.load

localStorage.setItem("xmpp_username_override", "user@domain" );
localStorage.setItem("xmpp_password_override", "pa$$word");

and remove at window.unload events

localStorage.removeItem("xmpp_username_override");
localStorage.removeItem("xmpp_password_override");
naive924 commented 4 years ago

There is such a method, I will try it!

naive924 commented 4 years ago

In this way, the username password query is gone. Thank you!

localStorage.setItem("xmpp_username_override", "user@domain" );
localStorage.setItem("xmpp_password_override", "pa$$word");

As with jitsi meet, we would be happy if we could make the configuration without default authentication.

Looking here (https://github.com/jitsi/jitsi-meet/blob/master/doc/manual-install.md#configure-prosody), Adding an XMPP main domain with "anonymous" seemed to have no default authentication. (I don't know how to do that ...)

deleolajide commented 4 years ago

Go here in openfire - https://server:9090/reg-settings.jsp

image

naive924 commented 4 years ago

Wonderful! ! Anonymous Login is done. I like openfire-ofmeet-plugin because it runs on Windows ! !

Thank you in the future.

deleolajide commented 4 years ago

Openfire Meeting now supports Windows SSO using NTLM See https://github.com/igniterealtime/openfire-pade-plugin/issues/47