WIP: Attempt at adding header auth. Ignore Settings #981

This commit is contained in:
Todd E Johnson
2023-11-17 00:00:48 -06:00
parent 4813d49e42
commit 4aa34f66dc
6 changed files with 141 additions and 10 deletions

5
services/get-user.js Normal file
View File

@@ -0,0 +1,5 @@
module.exports = (req) => {
const userHeader = "Remote-User";
console.log("Running Server Side", req.headers[userHeader.toLowerCase()]); // eslint-disable-line no-console
return { "success": true, "user": req.headers[userHeader.toLowerCase()] };
};