Comparison

mod_http_oauth2/mod_http_oauth2.lua @ 5501:57ce8c4017e7

mod_http_oauth2: Sort imports Piped through `sort -k5` thus sorting by module name. Sort order makes it easy to know where to insert new imports.
author Kim Alvefur <zash@zash.se>
date Thu, 01 Jun 2023 16:37:03 +0200
parent 5495:7998b49d6512
child 5502:fd4d89a5b8db
comparison
equal deleted inserted replaced
5500:8d3e7b201ba4 5501:57ce8c4017e7
1 local usermanager = require "core.usermanager";
2 local url = require "socket.url";
3 local array = require "util.array";
4 local cache = require "util.cache";
5 local encodings = require "util.encodings";
6 local errors = require "util.error";
1 local hashes = require "util.hashes"; 7 local hashes = require "util.hashes";
2 local cache = require "util.cache";
3 local http = require "util.http"; 8 local http = require "util.http";
9 local id = require "util.id";
10 local it = require "util.iterators";
4 local jid = require "util.jid"; 11 local jid = require "util.jid";
5 local json = require "util.json"; 12 local json = require "util.json";
6 local usermanager = require "core.usermanager"; 13 local schema = require "util.jsonschema";
7 local errors = require "util.error"; 14 local jwt = require "util.jwt";
8 local url = require "socket.url"; 15 local random = require "util.random";
9 local id = require "util.id"; 16 local set = require "util.set";
10 local encodings = require "util.encodings"; 17 local st = require "util.stanza";
18
11 local base64 = encodings.base64; 19 local base64 = encodings.base64;
12 local random = require "util.random";
13 local schema = require "util.jsonschema";
14 local set = require "util.set";
15 local jwt = require"util.jwt";
16 local it = require "util.iterators";
17 local array = require "util.array";
18 local st = require "util.stanza";
19 20
20 local function b64url(s) 21 local function b64url(s)
21 return (base64.encode(s):gsub("[+/=]", { ["+"] = "-", ["/"] = "_", ["="] = "" })) 22 return (base64.encode(s):gsub("[+/=]", { ["+"] = "-", ["/"] = "_", ["="] = "" }))
22 end 23 end
23 24