1
0
mirror of https://github.com/falk-werner/webfuse synced 2024-09-29 15:00:44 +00:00
falk-werner_webfuse/example/authenticator/simple/authenticator.sh

14 lines
260 B
Bash
Executable File

#!/usr/bin/bash
AUTH_TOKEN="$1"
if [[ "$AUTH_TOKEN" == "simple_token" ]]
then
echo "$(date): webfuse: auth granted: $AUTH_TOKEN" >> /tmp/webfuse_auth.log
else
echo "$(date): webfuse: auth denied: $AUTH_TOKEN" >> /tmp/webfuse_auth.log
exit 1
fi