Authenticated HTTP API - first pass

This commit is contained in:
kexkey
2018-10-04 13:09:00 -04:00
parent 926f0a000e
commit e6edd5b0e6
11 changed files with 316 additions and 0 deletions

15
api_auth_docker/trace.sh Normal file
View File

@@ -0,0 +1,15 @@
#!/bin/sh
trace()
{
if [ -n "${TRACING}" ]; then
echo "[$(date +%Y-%m-%dT%H:%M:%S%z)] ${1}" > /dev/stderr
fi
}
trace_rc()
{
if [ -n "${TRACING}" ]; then
echo "[$(date +%Y-%m-%dT%H:%M:%S%z)] Last return code: ${1}" > /dev/stderr
fi
}