Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(15)  |  Call(15)  |  Derive(0)  |  Import(0)

src/c/r/crtauth-HEAD/test/roundtrip_test.py   crtauth(Download)
    def test_create_challenge(self):
        auth_server = server.AuthServer("gurka", DummyKeyProvider(),
                                        "server_name")
        s = auth_server.create_challenge("noa")
        cb = ssh.base64url_decode(s)
    def test_authentication_roundtrip(self):
        auth_server = server.AuthServer("server_secret", DummyKeyProvider(),
                                        "server_name")
        challenge = auth_server.create_challenge("test")
        response = server.create_response(challenge, "server_name",
    def test_authentication_roundtrip_mitm1(self):
        auth_server = server.AuthServer("server_secret", DummyKeyProvider(),
                                        "server_name")
        challenge = auth_server.create_challenge("test")
        try:
    def test_authentication_roundtrip_mitm2(self):
        auth_server_a = server.AuthServer("server_secret", DummyKeyProvider(),
                                          "server_name")
        challenge = auth_server_a.create_challenge("test")
        response = server.create_response(challenge, "server_name",
                                          ssh.SingleKeySigner(test_priv_key))
        auth_server_b = server.AuthServer("server_secret", DummyKeyProvider(),