mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
17 lines
304 B
Lua
17 lines
304 B
Lua
-- Load libraries
|
|
json = require "json"
|
|
lualdap = require "lualdap"
|
|
math = require "math"
|
|
|
|
-- Set random key
|
|
math.randomseed(os.time())
|
|
srvkey = math.random(1111111, 9999999)
|
|
|
|
-- Shared table
|
|
tokens = {}
|
|
cache = {}
|
|
login = {}
|
|
logout = {}
|
|
|
|
-- Path of the configuration
|
|
conf_path = '/etc/ssowat/conf.json'
|