diff options
Diffstat (limited to 'src/saml2/mongo_store.py')
-rw-r--r-- | src/saml2/mongo_store.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saml2/mongo_store.py b/src/saml2/mongo_store.py index 4c0599e9..451442fb 100644 --- a/src/saml2/mongo_store.py +++ b/src/saml2/mongo_store.py @@ -99,7 +99,7 @@ class SessionStorageMDB: logger.debug("remove authn about: %s", name_id) key = sha1(code_binary(name_id)).hexdigest() for item in self.assertion.find({"name_id_key": key}): - self.assertion.remove(item["_id"]) + self.assertion.delete_one(item["_id"]) def get_authn_statements(self, name_id, session_index=None, requested_context=None): """ |