From 944d2f7e1bf9870b3e6d544f24ecd443450a6fb7 Mon Sep 17 00:00:00 2001 From: equinox Date: Fri, 1 Apr 2011 07:00:48 +0200 Subject: php verify script --- ticket.py | 3 ++- verify.php | 25 +++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 verify.php diff --git a/ticket.py b/ticket.py index 5b9ac2e..c8875d1 100644 --- a/ticket.py +++ b/ticket.py @@ -18,8 +18,9 @@ def tgt_verify(site, user, ts, sig, maxage = None): return status if __name__ == '__main__': + import urllib sig = tgt_create('site', 'test') - print sig + print urllib.urlencode(sig) assert not tgt_verify(maxage = -9999, **sig) assert tgt_verify(maxage = 9999, **sig) diff --git a/verify.php b/verify.php new file mode 100644 index 0000000..797dae3 --- /dev/null +++ b/verify.php @@ -0,0 +1,25 @@ +