Home
last modified time | relevance | path

Searched refs:auth_ctx (Results 1 – 3 of 3) sorted by relevance

/external/grpc-grpc/test/cpp/end2end/
Dtest_service_impl.cc56 std::shared_ptr<const AuthContext> auth_ctx = context->auth_context(); in CheckServerAuthContext() local
58 auth_ctx->FindPropertyValues("transport_security_type"); in CheckServerAuthContext()
62 EXPECT_TRUE(auth_ctx->GetPeerIdentityPropertyName().empty()); in CheckServerAuthContext()
63 EXPECT_TRUE(auth_ctx->GetPeerIdentity().empty()); in CheckServerAuthContext()
64 EXPECT_FALSE(auth_ctx->IsPeerAuthenticated()); in CheckServerAuthContext()
66 auto identity = auth_ctx->GetPeerIdentity(); in CheckServerAuthContext()
67 EXPECT_TRUE(auth_ctx->IsPeerAuthenticated()); in CheckServerAuthContext()
Dend2end_test.cc1741 std::shared_ptr<const AuthContext> auth_ctx = context.auth_context(); in TEST_P() local
1743 auth_ctx->FindPropertyValues("transport_security_type"); in TEST_P()
1748 auth_ctx->GetPeerIdentityPropertyName()); in TEST_P()
1749 EXPECT_EQ(4u, auth_ctx->GetPeerIdentity().size()); in TEST_P()
1750 EXPECT_EQ("*.test.google.fr", ToString(auth_ctx->GetPeerIdentity()[0])); in TEST_P()
1752 ToString(auth_ctx->GetPeerIdentity()[1])); in TEST_P()
1753 EXPECT_EQ("*.test.youtube.com", ToString(auth_ctx->GetPeerIdentity()[2])); in TEST_P()
1754 EXPECT_EQ("192.168.1.3", ToString(auth_ctx->GetPeerIdentity()[3])); in TEST_P()
/external/grpc-grpc/src/python/grpcio_tests/tests/unit/
D_auth_context_test.py137 auth_ctx = auth_data[_AUTH_CTX]
140 self.assertSequenceEqual([b'ssl'], auth_ctx['transport_security_type'])
142 auth_ctx['x509_common_name'])