Remove expired SAML2 sessions
authorRob Crittenden <rcritten@redhat.com>
Mon, 20 Apr 2015 20:44:41 +0000 (16:44 -0400)
committerPatrick Uiterwijk <puiterwijk@redhat.com>
Mon, 11 May 2015 22:39:28 +0000 (00:39 +0200)
commit6437f6c9385e5e59cb21de7a3addedd904ee2825
tree206545171b8863848c7bf6d8dc343de485192441
parent085327baa87a990d0d986861a23305dc03530d71
Remove expired SAML2 sessions

Run a cherrypy background task to sift through the sessions
database and find expired entries and remove them.

From my testing if a previous execution of the background task
is still executing when the next one is scheduled to run, it will
skip it. In other words, you can't end up with multiple expirations
running at the same time.

Signed-off-by: Rob Crittenden <rcritten@redhat.com>
Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
ipsilon/providers/saml2/sessions.py
ipsilon/providers/saml2idp.py