# HG changeset patch # User Matthew Wild # Date 1582757290 0 # Node ID 80dffbbd056b44492fba2340f0ebfc521199ad7c # Parent f5caacd475c44a30a766d3a32aa6cb6c18f5b47e mod_rest, mod_http_oauth2: Switch from mod_authtokens to mod_tokenauth per Prosody bf81523e2ff4 diff -r f5caacd475c4 -r 80dffbbd056b mod_http_oauth2/mod_http_oauth2.lua --- 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({ diff -r f5caacd475c4 -r 80dffbbd056b mod_rest/mod_rest.lua --- 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" });