summaryrefslogtreecommitdiff
path: root/demo.sh
diff options
context:
space:
mode:
authorYves Fischer <yvesf-git@xapek.org>2016-12-17 15:50:27 +0100
committerYves Fischer <yvesf-git@xapek.org>2016-12-17 16:00:19 +0100
commit8ceac0236c555979a9172c69c1a9e895d7487d6f (patch)
tree390740422d514ac62bc572d61c64e7375f2d7a27 /demo.sh
parentf355162fde31a4c79b7e665b43cef2de3ba05cb5 (diff)
downloadauth-xmppmessage-8ceac0236c555979a9172c69c1a9e895d7487d6f.tar.gz
auth-xmppmessage-8ceac0236c555979a9172c69c1a9e895d7487d6f.zip
replace all with subdirectory rust/
Diffstat (limited to 'demo.sh')
-rwxr-xr-xdemo.sh22
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