Ejemplo n.º 1
0
 def __init__(self, auth_handler_list, acr):
     """
     Constructor.
     :param auth_handler_list: An ordered list of authentication classes (implementations of UserAuthnMethod).
     """
     _UserAuthnMethod.__init__(self, "")
     self.auth_handler_list = auth_handler_list
     #Amount of authentications that has to be performed.
     self.steps = len(auth_handler_list) - 1
     #Must be updated on the side.
     self.ophandler = None
     self.acr = acr
Ejemplo n.º 2
0
 def __init__(self, auth_handler_list, acr):
     """
     Constructor.
     :param auth_handler_list: An ordered list of authentication classes (implementations of UserAuthnMethod).
     """
     _UserAuthnMethod.__init__(self, "")
     self.auth_handler_list = auth_handler_list
     #Amount of authentications that has to be performed.
     self.steps = len(auth_handler_list) - 1
     #Must be updated on the side.
     self.ophandler = None
     self.acr = acr
Ejemplo n.º 3
0
 def __init__(self, srv, redirect_url, return_to):
     """
     Constructor for the class.
     :param srv: Provider for the oic server. If None then it is set by the baseclass. (oic.oic.provider.Provider)
     :param redirect_url: URL that matches the method in the SpHandler class that performs authentication against
                          an IdP.
     :param return_to: The URL to return to after a successful authentication. Generally the OP servers
                       authorization endpoint.
     """
     _UserAuthnMethod.__init__(self, srv)
     self.redirect_url = redirect_url
     self.return_to = return_to
     self.acr = None
Ejemplo n.º 4
0
 def __init__(self, srv, redirect_url, return_to):
     """
     Constructor for the class.
     :param srv: Provider for the oic server. If None then it is set by the baseclass. (oic.oic.provider.Provider)
     :param redirect_url: URL that matches the method in the SpHandler class that performs authentication against
                          an IdP.
     :param return_to: The URL to return to after a successful authentication. Generally the OP servers
                       authorization endpoint.
     """
     _UserAuthnMethod.__init__(self, srv)
     self.redirect_url = redirect_url
     self.return_to = return_to
     self.acr = None
Ejemplo n.º 5
0
 def __init__(self, srv, cas_server, service_url, return_to, acr,
              extra_validation=None):
     """
     Constructor for the class.
     :param srv: Usually none, but otherwise the oic server.
     :param cas_server: Base URL to the cas server.
     :param service_url: BASE url to the service that will use CAS. In
     this case the oic server's verify URL.
     :param return_to: The URL to return to after a successful
     authentication.
     """
     _UserAuthnMethod.__init__(self, srv, authn_helper=CasAuthentication(cas_server, service_url,
                                                                         extra_validation=None,
                                                                         cookie_dict=None,
                                                                         cookie_object=None))
     self.acr = acr
     self.return_to = return_to