def __init__( self, username_query_key, mako_template, template_lookup, pwd=None, password_query_key=None, yubikey_db=None, yubikey_server=None, yubikey_otp_key=None, cookie_dict=None, cookie_object=None, ): """ """ Authenticate.__init__(self, cookie_dict, cookie_object) self.username_query_key = username_query_key self.password_query_key = password_query_key self.yubikey_db = yubikey_db self.yubikey_server = yubikey_server self.yubikey_otp_key = yubikey_otp_key self.mako_template = mako_template self.template_lookup = template_lookup self.passwd = pwd self.yubikey_validator = None if self.yubikey_server is not None: self.yubikey_validator = YubikeyValidation(self.yubikey_server)
def __init__(self, cas_server, service_url, extra_validation=None, cookie_dict=None, cookie_object=None): """ """ Authenticate.__init__(self, cookie_dict, cookie_object) self.cas_server = cas_server self.service_url = service_url self.extra_validation = extra_validation