Comparison

plugins/mod_tokenauth.lua @ 13000:c7253174503e

mod_tokenauth: Fix storage API mistake in revocation
author Kim Alvefur <zash@zash.se>
date Tue, 28 Mar 2023 00:30:18 +0200
parent 12999:c87ac7d1967f
child 13003:34ed17ef1c1a
comparison
equal deleted inserted replaced
12999:c87ac7d1967f 13000:c7253174503e
224 return nil, "invalid-token-format"; 224 return nil, "invalid-token-format";
225 end 225 end
226 if token_host ~= module.host then 226 if token_host ~= module.host then
227 return nil, "invalid-host"; 227 return nil, "invalid-host";
228 end 228 end
229 return token_store:set(token_user, token_id, nil); 229 return token_store:set_key(token_user, token_id, nil);
230 end 230 end
231 231
232 function sasl_handler(auth_provider, purpose, extra) 232 function sasl_handler(auth_provider, purpose, extra)
233 return function (sasl, token, realm, _authzid) 233 return function (sasl, token, realm, _authzid)
234 local token_info, err = get_token_info(token); 234 local token_info, err = get_token_info(token);