Beispiel #1
0
 def get_sp_handlers(self) -> Iterable[SPHandler]:
     """Get the SPHandler for each service provider defined.
     """
     for config in self.get_service_providers():
         cls = import_string(config['CLASS'])
         options = config.get('OPTIONS', {})
         yield cls(self, **options)
Beispiel #2
0
 def make_idp_handler(self, config) -> IdPHandler:
     """Construct an :class:`IdPHandler` from a config dict from
     :meth:`get_identity_providers`.
     """
     cls = import_string(config['CLASS'])
     options = config.get('OPTIONS', {})
     return cls(self, **options)
Beispiel #3
0
 def make_idp_handler(self, config) -> IdPHandler:
     cls = import_string(config['CLASS'])
     options = config.get('OPTIONS', {})
     return cls(self, **options)