Example #1
0
 def __init__(self):
     #this may be called more than once,
     #skip doing internal init again:
     if not hasattr(self, "exit_code"):
         self.defaults_init()
     ServerInfoMixin.__init__(self)
     FilePrintMixin.__init__(self)
     self._init_done = False
Example #2
0
 def __init__(self):
     #this may be called more than once,
     #skip doing internal init again:
     if not hasattr(self, "exit_code"):
         self.defaults_init()
     ServerInfoMixin.__init__(self)
     FilePrintMixin.__init__(self)
     self._init_done = False
     #insert in order:
     dcm = OrderedDict()
     dcm["uri"]      = self.process_challenge_uri
     dcm["file"]     = self.process_challenge_file
     dcm["env"]      = self.process_challenge_env
     dcm["kerberos"] = self.process_challenge_kerberos
     dcm["gss"]      = self.process_challenge_gss
     dcm["u2f"]      = self.process_challenge_u2f
     dcm["prompt"]   = self.process_challenge_prompt
     self.default_challenge_methods = dcm