Переглянути джерело

Removes obsolete config.token.

Token is passed as parameter when creating JitsiConnection and we no longer use it from the options passed to the connection.
tags/v0.0.2
damencho 8 роки тому
джерело
коміт
d9eabf74ba
2 змінених файлів з 3 додано та 3 видалено
  1. 2
    2
      doc/tokens.md
  2. 1
    1
      modules/xmpp/xmpp.js

+ 2
- 2
doc/tokens.md Переглянути файл

46
 
46
 
47
 In order to start jitsi-meet conference with token you need to specify the token as URL param:
47
 In order to start jitsi-meet conference with token you need to specify the token as URL param:
48
 ```
48
 ```
49
-https://example.com/angrywhalesgrowhigh#config.token="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWV9.TJVA95OrM7E2cBab30RMHrHDcEfxjoYZgeFONFh7HgQ"
49
+https://example.com/angrywhalesgrowhigh?jwt="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWV9.TJVA95OrM7E2cBab30RMHrHDcEfxjoYZgeFONFh7HgQ"
50
 ```
50
 ```
51
 At current level of integration every user that joins the conference has to provide the token and not just the one who
51
 At current level of integration every user that joins the conference has to provide the token and not just the one who
52
 creates the room. It should be possible to change that by using second anonymous domain, but that hasn't been tested
52
 creates the room. It should be possible to change that by using second anonymous domain, but that hasn't been tested
109
     									   -- generator and the plugin
109
     									   -- generator and the plugin
110
 ```
110
 ```
111
 
111
 
112
-\3. Enable token verification plugin in your MUC component config section:
112
+\3. Enable room name token verification plugin in your MUC component config section:
113
 
113
 
114
 ```lua
114
 ```lua
115
 Component "conference.jitmeet.example.com" "muc"
115
 Component "conference.jitmeet.example.com" "muc"

+ 1
- 1
modules/xmpp/xmpp.js Переглянути файл

297
 
297
 
298
             if (this.options.hosts.anonymousdomain
298
             if (this.options.hosts.anonymousdomain
299
                     && (window.location.search.indexOf('login=true') !== -1
299
                     && (window.location.search.indexOf('login=true') !== -1
300
-                        || this.options.token)) {
300
+                        || this.token)) {
301
                 configDomain = this.options.hosts.domain;
301
                 configDomain = this.options.hosts.domain;
302
             }
302
             }
303
 
303
 

Завантаження…
Відмінити
Зберегти