mod_rest, mod_http_oauth2: Switch from mod_authtokens to mod_tokenauth per Prosody bf81523e2ff4
--- a/mod_http_oauth2/mod_http_oauth2.lua Wed Feb 26 22:30:50 2020 +0100
+++ b/mod_http_oauth2/mod_http_oauth2.lua Wed Feb 26 22:48:10 2020 +0000
@@ -4,7 +4,7 @@
local usermanager = require "core.usermanager";
local errors = require "util.error";
-local tokens = module:depends("authtokens");
+local tokens = module:depends("tokenauth");
local function oauth_error(err_name, err_desc)
return errors.new({
--- a/mod_rest/mod_rest.lua Wed Feb 26 22:30:50 2020 +0100
+++ b/mod_rest/mod_rest.lua Wed Feb 26 22:48:10 2020 +0000
@@ -17,7 +17,7 @@
local jsonmap = module:require"jsonmap";
-local tokens = module:depends("authtokens");
+local tokens = module:depends("tokenauth");
local auth_mechanisms = module:get_option_set("rest_auth_mechanisms", { "Basic", "Bearer" });