diff options
Diffstat (limited to 'demo.sh')
-rwxr-xr-x | demo.sh | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/demo.sh b/demo.sh deleted file mode 100755 index 67cb4dc..0000000 --- a/demo.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh -# Usage: -# - No arguments: Request a token -# - With arguments: Verify a token -export IP=1.2.3.4 -export URI=/test -export HTTP_HOST=www.example.com; -export CONTEXT="validsec=60;secret=asdsad;users=yvesf@xapek.org,marc@xapek.org;jid=___;jid_pw=___" -export SKIP_XMPP=1 - -if [ -z "$1" ]; then # request token - ( - echo "yvesf@xapek.org" - echo "" - ) | ./login.py -else # verify token - ( - echo "yvesf@xapek.org" - echo "$1" - ) | ./login.py - echo "Result $?" -fi |