We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 652e49e + 563ce90 commit 8441294Copy full SHA for 8441294
src/saml2/server.py
@@ -21,6 +21,7 @@
21
import logging
22
import os
23
24
+import importlib
25
import shelve
26
import threading
27
@@ -144,7 +145,12 @@ def init_config(self, stype="idp"):
144
145
146
self.ident = IdentMDB(database=addr, collection="ident")
147
- if typ == "mongodb":
148
+ elif typ == "identdb":
149
+ mod, clas = addr.rsplit('.', 1)
150
+ mod = importlib.import_module(mod)
151
+ self.ident = getattr(mod, clas)()
152
+
153
+ if typ == "mongodb" or typ == "identdb":
154
pass
155
elif idb is not None:
156
self.ident = IdentDB(idb)
0 commit comments