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)
def remote_login(self, username): """ Start of username/password login. """ c = challenge() return c, _PortalAuthVerifier(self.portal, self.broker, username, c)