Example #1
0
 def setUp(self):
     # PB server creates a challenge
     self.challenge = tpb.challenge()
     # and a challenger to send to the client
     self.challenger = tpb._PortalAuthChallenger(
         FakePortalWrapperPlaintext(),
         'username', self.challenge)
Example #2
0
 def remote_login(self, username):
     """
     Start of username/password login.
     """
     c = challenge()
     return c, _PortalAuthVerifier(self.portal, self.broker, username, c)
Example #3
0
File: pb.py Project: ktosiu/jasmin
 def remote_login(self, username):
     """
     Start of username/password login.
     """
     c = challenge()
     return c, _PortalAuthVerifier(self.portal, self.broker, username, c)