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 e17116200fd..cff80001d12 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 @@ -69,7 +69,7 @@ class grpc_alts_channel_security_connector final grpc_core::RefCountedPtr channel_creds, grpc_core::RefCountedPtr request_metadata_creds, const char* target_name) - : grpc_channel_security_connector(/*url_scheme=*/nullptr, + : grpc_channel_security_connector(GRPC_ALTS_URL_SCHEME, std::move(channel_creds), std::move(request_metadata_creds)), target_name_(gpr_strdup(target_name)) {} @@ -129,7 +129,7 @@ class grpc_alts_server_security_connector final public: grpc_alts_server_security_connector( grpc_core::RefCountedPtr server_creds) - : grpc_server_security_connector(/*url_scheme=*/nullptr, + : grpc_server_security_connector(GRPC_ALTS_URL_SCHEME, std::move(server_creds)) {} ~grpc_alts_server_security_connector() override = default; diff --git a/src/core/lib/security/security_connector/alts/alts_security_connector.h b/src/core/lib/security/security_connector/alts/alts_security_connector.h index b68a4e97781..10c3fe93646 100644 --- a/src/core/lib/security/security_connector/alts/alts_security_connector.h +++ b/src/core/lib/security/security_connector/alts/alts_security_connector.h @@ -25,6 +25,7 @@ #include "src/core/lib/security/credentials/alts/grpc_alts_credentials_options.h" #define GRPC_ALTS_TRANSPORT_SECURITY_TYPE "alts" +#define GRPC_ALTS_URL_SCHEME "https" /** * This method creates an ALTS channel security connector.