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