Deleting ticket after successful validation.
authordeyk <deyk@crossway.org>
Mon, 16 Apr 2012 18:04:22 +0000 (11:04 -0700)
committerdeyk <deyk@crossway.org>
Mon, 16 Apr 2012 18:04:22 +0000 (11:04 -0700)
cas_provider/views.py

index a0847b9..bd9797c 100644 (file)
@@ -247,6 +247,7 @@ def ticket_validate(service, ticket_string, pgtUrl):
                     pgt = None
 
     user = ticket.user
+    ticket.delete()
     return _cas2_sucess_response(user, pgtIouId, proxies)