예제 #1
0
 def __init__(self,
              idphandler,
              cas_server,
              service_url,
              extra_validation=None):
     IdPAuthentication.__init__(self, idphandler)
     self._user_info = None
     self.auth_helper = CasAuthentication(
         cas_server,
         service_url,
         extra_validation,
         cookie_dict=None,
         cookie_object=idphandler.idp_server)
예제 #2
0
    def __init__(self, idphandler, passwd, password=True, yubikey=False):
        IdPAuthentication.__init__(self, idphandler)
        self.passwd = passwd
        self._user_info = None
        yubikey_db = None
        yubikey_server = None
        yubikey_otp_parameter = None
        mako_file = "idplogin_password.mako"
        password_parameter = None
        if password:
            password_parameter = "password"
        if yubikey:
            yubikey_db = idphandler.yubikey_db
            yubikey_server = idphandler.yubikey_server
            yubikey_otp_parameter = "otp"
            #mako_file = "yubikeylogin.mako"
            mako_file = "idplogin_yubikey.mako"
        if yubikey and password:
            mako_file = "idplogin_password_yubikey.mako"

        self.auth_helper = DirgUsernamePasswordYubikeyMako("login", mako_file, self.idphandler.template_lookup,
                                                           passwd, password_parameter, yubikey_db, yubikey_server,
                                                           yubikey_otp_parameter)
예제 #3
0
    def __init__(self, idphandler, passwd, password=True, yubikey=False):
        IdPAuthentication.__init__(self, idphandler)
        self.passwd = passwd
        self._user_info = None
        yubikey_db = None
        yubikey_server = None
        yubikey_otp_parameter = None
        mako_file = "idplogin_password.mako"
        password_parameter = None
        if password:
            password_parameter = "password"
        if yubikey:
            yubikey_db = idphandler.yubikey_db
            yubikey_server = idphandler.yubikey_server
            yubikey_otp_parameter = "otp"
            #mako_file = "yubikeylogin.mako"
            mako_file = "idplogin_yubikey.mako"
        if yubikey and password:
            mako_file = "idplogin_password_yubikey.mako"

        self.auth_helper = DirgUsernamePasswordYubikeyMako(
            "login", mako_file, self.idphandler.template_lookup, passwd,
            password_parameter, yubikey_db, yubikey_server,
            yubikey_otp_parameter)
예제 #4
0
파일: cas.py 프로젝트: its-dirg/IdProxy
 def __init__(self, idphandler, cas_server, service_url, extra_validation=None):
     IdPAuthentication.__init__(self, idphandler)
     self._user_info = None
     self.auth_helper = CasAuthentication(cas_server, service_url, extra_validation,
                                          cookie_dict=None, cookie_object=idphandler.idp_server)
예제 #5
0
파일: sp.py 프로젝트: rhoerbe/IdProxy
 def __init__(self, idphandler, sphandler):
     IdPAuthentication.__init__(self, idphandler)
     self.sphandler = sphandler
     self._user_info = None
예제 #6
0
 def __init__(self, idphandler, auth_list, user_info=None):
     IdPAuthentication.__init__(self, idphandler)
     self.auth_list = auth_list
     self.auth_list_lengt = len(auth_list)
     self._user_info = user_info
예제 #7
0
파일: sp.py 프로젝트: biancini/IdProxy
 def __init__(self, idphandler, sphandler):
     IdPAuthentication.__init__(self, idphandler)
     self.sphandler = sphandler
예제 #8
0
파일: sp.py 프로젝트: simudream/IdProxy
 def __init__(self, idphandler, sphandler):
     IdPAuthentication.__init__(self, idphandler)
     self.sphandler = sphandler
     self._user_info = None