Bläddra i källkod

Merge pull request #4308 from jitsi/prosody-token-allow-asap-server-override

allows override of asap key server in token utility
master
Aaron van Meerten 6 år sedan
förälder
incheckning
07b7f03aa7
Inget konto är kopplat till bidragsgivarens mejladress
1 ändrade filer med 4 tillägg och 1 borttagningar
  1. 4
    1
      resources/prosody-plugins/token/util.lib.lua

+ 4
- 1
resources/prosody-plugins/token/util.lib.lua Visa fil

100
     return self
100
     return self
101
 end
101
 end
102
 
102
 
103
+function Util:set_asap_key_server(asapKeyServer)
104
+    self.asapKeyServer = asapKeyServer
105
+end
106
+
103
 --- Returns the public key by keyID
107
 --- Returns the public key by keyID
104
 -- @param keyId the key ID to request
108
 -- @param keyId the key ID to request
105
 -- @return the public key (the content of requested resource) or nil
109
 -- @return the public key (the content of requested resource) or nil
239
 -- @param session the current session
243
 -- @param session the current session
240
 -- @return false and error
244
 -- @return false and error
241
 function Util:process_and_verify_token(session)
245
 function Util:process_and_verify_token(session)
242
-
243
     if session.auth_token == nil then
246
     if session.auth_token == nil then
244
         if self.allowEmptyToken then
247
         if self.allowEmptyToken then
245
             return true;
248
             return true;

Laddar…
Avbryt
Spara