comparison mod_http_oauth2/mod_http_oauth2.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 8ac5d9933106
children dea6bea2ddd3
comparison
equal deleted inserted replaced
3914:f5caacd475c4 3915:80dffbbd056b
2 local jid = require "util.jid"; 2 local jid = require "util.jid";
3 local json = require "util.json"; 3 local json = require "util.json";
4 local usermanager = require "core.usermanager"; 4 local usermanager = require "core.usermanager";
5 local errors = require "util.error"; 5 local errors = require "util.error";
6 6
7 local tokens = module:depends("authtokens"); 7 local tokens = module:depends("tokenauth");
8 8
9 local function oauth_error(err_name, err_desc) 9 local function oauth_error(err_name, err_desc)
10 return errors.new({ 10 return errors.new({
11 type = "modify"; 11 type = "modify";
12 condition = "bad-request"; 12 condition = "bad-request";