In order to set HTTP2 authority in go grpc with a secure connection, the following function cant be used:
The above function only works with an insecure connection. The only way to pass the authority is to pass it with the following:
credentials.NewClientTLSFromCert(certpool, serverNameOverride)
Which is overriding the servername that could be used as an authority!
Could you tell me why the more conventional way which is directly adding the authority as an option would not work? this works for other languages such as python and java.
Thanks,
Iman