File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 24
24
import shelve
25
25
26
26
from saml2 .eptid import EptidShelve , Eptid
27
- from saml2 .mongo_store import IdentMDB , SessionStorageMDB , EptidMDB
28
27
from saml2 .sdb import SessionStorage
29
28
from saml2 .schema import soapenv
30
29
@@ -89,6 +88,7 @@ def choose_session_storage(self):
89
88
else : # Should be tuple
90
89
typ , data = _spec
91
90
if typ .lower () == "mongodb" :
91
+ from saml2 .mongo_store import SessionStorageMDB
92
92
return SessionStorageMDB (database = data , collection = "session" )
93
93
94
94
raise NotImplementedError ("No such storage type implemented" )
@@ -121,6 +121,7 @@ def init_config(self, stype="idp"):
121
121
elif typ == "dict" : # in-memory dictionary
122
122
idb = {}
123
123
elif typ == "mongodb" :
124
+ from saml2 .mongo_store import IdentMDB
124
125
self .ident = IdentMDB (database = addr , collection = "ident" )
125
126
126
127
if typ == "mongodb" :
@@ -143,6 +144,7 @@ def init_config(self, stype="idp"):
143
144
if typ == "shelve" :
144
145
self .eptid = EptidShelve (secret , addr )
145
146
elif typ == "mongodb" :
147
+ from saml2 .mongo_store import EptidMDB
146
148
self .eptid = EptidMDB (secret , database = addr ,
147
149
collection = "eptid" )
148
150
else :
You can’t perform that action at this time.
0 commit comments