[mod] rename:authelia-calls->arc

This commit is contained in:
roydfalk 2024-08-21 19:47:31 +02:00
parent 045330759b
commit 468ac9a23e
5 changed files with 267 additions and 247 deletions

View file

@ -1,29 +0,0 @@
- siehe `~/projekte/linke/sonstiges/authelia-callbacks`
- Espe macht HTTP-Request zu `callbacks.authelia.linke.sx` mit Nutzerliste als Rumpf (Authentifizierung?)
- submit
- timestamp
- userlist
- authhash (`sha256(timestamp+secret)`)
```
type type_data = Record<
string,
{
disabled : boolean;
displayname : string;
email : string;
groups : Array<string>;
password : string;
}
>;
type type_payload = {
timestamp : int;
authhash : string;
data : type_data;
}
```

34
readme.md Normal file
View file

@ -0,0 +1,34 @@
# ARC
## Beschreibung
- ARC = **A**uthelia **R**emote **C**ontrol
- Dienst zur Steuerung einer [Authelia](https://www.authelia.com/)-Instanz
## Erstellung
### Voraussetzungen
- GNU Make
- NodeJS
### Anweisungen
- `tools/build` ausführen
## Betrieb
### Voraussetzungen
- NodeJS
### Anweisungen
- ins Erzeugnis-Verzeichnis wechseln
- `./arc -h` ausführen
- für die meisten Anwendungsfälle ist es erforderlich eine Konfigurations-Datei anzulegen

View file

@ -170,6 +170,20 @@ async function main(
const conf : type_conf = await conf_get(args.conf_path);
// exec
if (args["help"]) {
process.stdout.write(
arg_handler.generate_help(
{
"programname": "arc",
"description": "Authelia Remote Control",
"executable": "arc",
}
)
+
"\n"
);
}
else {
const rest_subject : lib_plankton.rest.type_rest = lib_plankton.rest.make(
{
"title": "authelia-callbacks",
@ -402,6 +416,7 @@ async function main(
);
lib_plankton.server.start(server);
}
return Promise.resolve<void>(undefined);
}

View file

@ -12,7 +12,7 @@ def main():
"-o",
"--output-directory",
type = str,
default = "/tmp/authelia-calls",
default = "/tmp/arc",
metavar = "<output-directory>",
help = "output directory",
)

View file

@ -3,7 +3,7 @@
dir_tools := tools
dir_lib := lib
dir_source := source
dir_temp := /tmp/authelia-calls-temp
dir_temp := /tmp/arc-temp
dir_build := build
@ -19,18 +19,18 @@ cmd_tsc := ${dir_tools}/typescript/node_modules/.bin/tsc
## rules
.PHONY: _default
_default: ${dir_build}/authelia-calls
_default: ${dir_build}/arc
${dir_temp}/authelia-calls-unlinked.js: \
${dir_temp}/arc-unlinked.js: \
${dir_lib}/plankton/plankton.d.ts \
${dir_source}/main.ts
@ ${cmd_log} "compiling …"
@ ${cmd_tsc} --lib es2020 --strict $^ --outFile $@
${dir_build}/authelia-calls: \
${dir_build}/arc: \
${dir_source}/head.js \
${dir_lib}/plankton/plankton.js \
${dir_temp}/authelia-calls-unlinked.js
${dir_temp}/arc-unlinked.js
@ ${cmd_log} "linking …"
@ ${cmd_mkdir} $(dir $@)
@ ${cmd_cat} $^ > $@