comparison mod_rest/mod_rest.lua @ 3915:80dffbbd056b

mod_rest, mod_http_oauth2: Switch from mod_authtokens to mod_tokenauth per Prosody bf81523e2ff4
author Matthew Wild <mwild1@gmail.com>
date Wed, 26 Feb 2020 22:48:10 +0000
parents 064c32a5be7c
children 88d0f7438f0e
comparison
equal deleted inserted replaced
3914:f5caacd475c4 3915:80dffbbd056b
15 local um = require "core.usermanager"; 15 local um = require "core.usermanager";
16 local xml = require "util.xml"; 16 local xml = require "util.xml";
17 17
18 local jsonmap = module:require"jsonmap"; 18 local jsonmap = module:require"jsonmap";
19 19
20 local tokens = module:depends("authtokens"); 20 local tokens = module:depends("tokenauth");
21 21
22 local auth_mechanisms = module:get_option_set("rest_auth_mechanisms", { "Basic", "Bearer" }); 22 local auth_mechanisms = module:get_option_set("rest_auth_mechanisms", { "Basic", "Bearer" });
23 23
24 local www_authenticate_header; 24 local www_authenticate_header;
25 do 25 do