diff --git a/BUILD b/BUILD index 48ac13c6329..edcbbf8580b 100644 --- a/BUILD +++ b/BUILD @@ -3160,7 +3160,6 @@ grpc_cc_library( external_deps = [ "absl/status", "absl/strings", - "absl/strings:str_format", "absl/types:optional", ], language = "c++", diff --git a/src/core/lib/security/security_connector/alts/alts_security_connector.cc b/src/core/lib/security/security_connector/alts/alts_security_connector.cc index f5fbde2842b..5f6c7a738d8 100644 --- a/src/core/lib/security/security_connector/alts/alts_security_connector.cc +++ b/src/core/lib/security/security_connector/alts/alts_security_connector.cc @@ -23,11 +23,9 @@ #include #include -#include #include #include "absl/status/status.h" -#include "absl/strings/str_format.h" #include "absl/strings/string_view.h" #include "absl/types/optional.h" @@ -132,12 +130,7 @@ class grpc_alts_channel_security_connector final } grpc_core::ArenaPromise CheckCallHost( - absl::string_view host, grpc_auth_context*) override { - if (host.empty() || host != target_name_) { - return grpc_core::Immediate(absl::UnauthenticatedError(absl::StrFormat( - "ALTS call host [%s] does not match target name [%s].", host, - target_name_))); - } + absl::string_view, grpc_auth_context*) override { return grpc_core::ImmediateOkStatus(); }