[jitsi-dev] Jitsi-meet xmpp prebind authentication / authorization


#1

Dear Developers,

At current state:
a) Well installed jisti-meet opened by browser.
b) Browser requested username/password.
c) Required username/password form confirmed.
d) Connection successful established. Conference room opened.
    PS: jitsi-videobrige/jicofo/ejabberd worked like a charm.

e) After browser refreshed: "Ctrl+R or F5" - i have lost authorization and
    browser requested username/password again.

Please explain:

1. How i can use already existed XMPP: SID RID JID (pre-bind) authorization
    like at: https://github.com/jitsi/jitsi-meet/issues/1000 ?
2. How to jitsi-meet provided with authorized session/cookie/token <-> strophe
    mechanism. Please declare: class/method.
3. My general goal: should be used pre-existed (pre-bind) authorization
    saved on session/cookie. So client (by browser) should be loaded ready to use
    authorized jitsi-meet conference room into him browser window

···

--
Best Regards,
Dmitry


#2

Hi,

You can check https://github.com/jitsi/lib-jitsi-meet/blob/master/connection_optimization/external_connect.js
and https://github.com/jitsi/jitsi-meet/blob/master/connection_optimization/do_external_connect.js,
this calls a pre-bind service, which creates all the params you are
asking for and passes them back to meet and makes jitsi-meet to attach
to a pre-bind bosh connection.
What you want to do, I'm not sure that is currently possible, cause
when you navigate out of the page, meet destroys the bosh connection
and you cannot reuse those params. You need to take care and for that
part.
Hope this helps.

Regards
damencho

P.S. Please use the mailinglist for discussions, question and
problems, before opening issues. I will close that one, with a message
that discussion had moved here.

···

On Fri, Oct 14, 2016 at 12:47 AM, Coresh <1753595@gmail.com> wrote:

Dear Developers,

At current state:
a) Well installed jisti-meet opened by browser.
b) Browser requested username/password.
c) Required username/password form confirmed.
d) Connection successful established. Conference room opened.
   PS: jitsi-videobrige/jicofo/ejabberd worked like a charm.

e) After browser refreshed: "Ctrl+R or F5" - i have lost authorization and
   browser requested username/password again.

Please explain:

1. How i can use already existed XMPP: SID RID JID (pre-bind) authorization
   like at: https://github.com/jitsi/jitsi-meet/issues/1000 ?
2. How to jitsi-meet provided with authorized session/cookie/token <->
strophe
   mechanism. Please declare: class/method.
3. My general goal: should be used pre-existed (pre-bind) authorization
   saved on session/cookie. So client (by browser) should be loaded ready to
use
   authorized jitsi-meet conference room into him browser window

--
Best Regards,
Dmitry

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev


#3

Dear Damencho,

Thanks for your quick reply and properly direction

···

--

Best Regards,

Dmitry

On 10/14/2016 02:31 PM, Damian Minkov wrote:

Hi,

You can check https://github.com/jitsi/lib-jitsi-meet/blob/master/connection_optimization/external_connect.js
and https://github.com/jitsi/jitsi-meet/blob/master/connection_optimization/do_external_connect.js,
this calls a pre-bind service, which creates all the params you are
asking for and passes them back to meet and makes jitsi-meet to attach
to a pre-bind bosh connection.
What you want to do, I'm not sure that is currently possible, cause
when you navigate out of the page, meet destroys the bosh connection
and you cannot reuse those params. You need to take care and for that
part.
Hope this helps.

Regards
damencho

P.S. Please use the mailinglist for discussions, question and
problems, before opening issues. I will close that one, with a message
that discussion had moved here.

On Fri, Oct 14, 2016 at 12:47 AM, Coresh <1753595@gmail.com> wrote:

Dear Developers,

At current state:
a) Well installed jisti-meet opened by browser.
b) Browser requested username/password.
c) Required username/password form confirmed.
d) Connection successful established. Conference room opened.
    PS: jitsi-videobrige/jicofo/ejabberd worked like a charm.

e) After browser refreshed: "Ctrl+R or F5" - i have lost authorization and
    browser requested username/password again.

Please explain:

1. How i can use already existed XMPP: SID RID JID (pre-bind) authorization
    like at: https://github.com/jitsi/jitsi-meet/issues/1000 ?
2. How to jitsi-meet provided with authorized session/cookie/token <->
strophe
    mechanism. Please declare: class/method.
3. My general goal: should be used pre-existed (pre-bind) authorization
    saved on session/cookie. So client (by browser) should be loaded ready to
use
    authorized jitsi-meet conference room into him browser window

--
Best Regards,
Dmitry

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev


#4

So, instead of:

<head>
...
<script src="//libs/external_connect.js?v=1"></script>
<script src="//connection_optimization/do_external_connect.js?v=1"></script>
...
</head>

I was added the result of that scripts execution
(window.XMPPAttachInfo):

<script type="text/javascript">
var c=[];

// real jid (pre-binded by server side back-end software):
c['jid']='general@zcrmtdiocrijtu.ddns.net/myroom';

// real sid (pre-binded by server side back-end software):
c['sid']='293346382151decf3cfa4e29703a1221531d6f68';

// real rid (pre-binded by server side back-end software):
c['rid']='1617181569';

// window.APP.connect.handler();

window.XMPPAttachInfo={
status:"success",
data:c
};
</script>

As a result i have strange behave:

1. Loaded only small video widow with "me" tag.
2. Large video not auto opened.
3. Large window opened only after clicking on
    small video window with "me" tag.
4. Strophe xmpp chat not worked into chat window.

Details (full HD: 1080p i have opened only by firefox,

not by chrome/chromium( :

https://www.youtube.com/watch?v=o8zrr5wombg&feature=youtu.be

How i can make:

1. Auto opened large video window, like window
    opened on:
    https://meet.jit.si after entering random conference name
2. Strophe xmpp chat widow should be connected and worked

Thanks for Your quick reply

···

--
Best Regards,
Dmitry

On 10/14/2016 02:31 PM, Damian Minkov wrote:

Hi,

You can check https://github.com/jitsi/lib-jitsi-meet/blob/master/connection_optimization/external_connect.js
and https://github.com/jitsi/jitsi-meet/blob/master/connection_optimization/do_external_connect.js,
this calls a pre-bind service, which creates all the params you are
asking for and passes them back to meet and makes jitsi-meet to attach
to a pre-bind bosh connection.
What you want to do, I'm not sure that is currently possible, cause
when you navigate out of the page, meet destroys the bosh connection
and you cannot reuse those params. You need to take care and for that
part.
Hope this helps.

Regards
damencho

P.S. Please use the mailinglist for discussions, question and
problems, before opening issues. I will close that one, with a message
that discussion had moved here.

On Fri, Oct 14, 2016 at 12:47 AM, Coresh <1753595@gmail.com> wrote:

Dear Developers,

At current state:
a) Well installed jisti-meet opened by browser.
b) Browser requested username/password.
c) Required username/password form confirmed.
d) Connection successful established. Conference room opened.
    PS: jitsi-videobrige/jicofo/ejabberd worked like a charm.

e) After browser refreshed: "Ctrl+R or F5" - i have lost authorization and
    browser requested username/password again.

Please explain:

1. How i can use already existed XMPP: SID RID JID (pre-bind) authorization
    like at: https://github.com/jitsi/jitsi-meet/issues/1000 ?
2. How to jitsi-meet provided with authorized session/cookie/token <->
strophe
    mechanism. Please declare: class/method.
3. My general goal: should be used pre-existed (pre-bind) authorization
    saved on session/cookie. So client (by browser) should be loaded ready to
use
    authorized jitsi-meet conference room into him browser window

--
Best Regards,
Dmitry

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev