-
Notifications
You must be signed in to change notification settings - Fork 113
Description
Hi,
I am trying to create an MQTT connection to a proxy server using the ProxyStrategy with configured Digest proxy with client authentication, but I always get the following error: AWS_ERROR_HTTP_PROXY_CONNECT_FAILED. For my first try I tried to use the code from the sample from here.
Aws::Crt::Http::HttpProxyStrategyBasicAuthConfig basicAuthConfig;
basicAuthConfig.ConnectionType = Aws::Crt::Http::AwsHttpProxyConnectionType::Tunneling;
basicAuthConfig.Username = proxyUserName.c_str();
basicAuthConfig.Password = proxyPassword.c_str();
proxyOptions.ProxyStrategy =
Aws::Crt::Http::HttpProxyStrategy::CreateBasicHttpProxyStrategy(basicAuthConfig, Aws::Crt::g_allocator);
proxyOptions.AuthType = Aws::Crt::Http::AwsHttpProxyAuthenticationType::Basic;Because as opposed to HttpProxyStrategyAdaptiveConfig it has username and password members, so it can be set. On the other hand I tried to use the HttpProxyStrategyAdaptiveConfig too, but I do not know how to set the proxy username and password and unfortunately I did not find anything useful to figure it out. I have the same issue with NTLM proxy too where authentication is necessary, but I do not have any idea how can I pass them. I welcome any hint or help here, thanks in advance.