-
Notifications
You must be signed in to change notification settings - Fork 439
Description
In the C++ SDK, unless the AuthorityOption is set by the user, we default that value to the global endpoint. This was implemented before locational endpoints became widely used. It seems that this is probably not the best choice going forward.
Users are setting the EndpointOption to the locational value and expecting it to "just work" and it hasn't unless the lesser known AuthorityOption was also set to the hostname used in the EndpointOption.
The AuthorityOption should default to the EndpointOption hostname when the user sets the EndpointOption, simplifying configuration for when the user wants to use a locational endpoint. This would limit the use cases where the AuthorityOption needs to be set by the user to situations where they are connecting to an EAP or beta service.