Rename the SAML2 sessions database to saml2_sessions
authorPatrick Uiterwijk <puiterwijk@redhat.com>
Mon, 31 Aug 2015 05:08:05 +0000 (07:08 +0200)
committerPatrick Uiterwijk <puiterwijk@redhat.com>
Mon, 31 Aug 2015 19:47:51 +0000 (21:47 +0200)
This makes it possible to have saml2 sessions and Ipsilon sessions
in the same database without any problems.

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
Reviewed-by: Rob Crittenden <rcritten@redhat.com>
ipsilon/util/data.py

index 200feb8..c0fe4ab 100644 (file)
@@ -586,7 +586,7 @@ class SAML2SessionStore(Store):
 
     def __init__(self, database_url):
         super(SAML2SessionStore, self).__init__(database_url=database_url)
 
     def __init__(self, database_url):
         super(SAML2SessionStore, self).__init__(database_url=database_url)
-        self.table = 'sessions'
+        self.table = 'saml2_sessions'
         # pylint: disable=protected-access
         table = SqlQuery(self._db, self.table, UNIQUE_DATA_COLUMNS)._table
         table.create(checkfirst=True)
         # pylint: disable=protected-access
         table = SqlQuery(self._db, self.table, UNIQUE_DATA_COLUMNS)._table
         table.create(checkfirst=True)