Skip to content
Snippets Groups Projects
Commit 807724d6 authored by ale's avatar ale
Browse files

Add Python test with expired token

parent 39eec7d2
Branches
No related tags found
No related merge requests found
......@@ -59,6 +59,12 @@ class VerifierTest(unittest.TestCase):
v = sso.Verifier(self.public, 'service/', 'domain', self.groups)
self.assertRaises(sso.Error, v.verify, signed)
def test_verify_fail_expired(self):
tkt = sso.Ticket('user', 'service/', 'domain', nonce='nonce', ttl=-1000)
signed = self._sign_token(tkt)
v = sso.Verifier(self.public, 'service/', 'domain')
self.assertRaises(sso.Error, v.verify, signed, 'nonce')
class KnownDataVerifierTest(unittest.TestCase):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment