We are using Resource Owner Credentials
to get access tokens using our internal OAuth Svr
. Everything is working if the the url does not include any https in it, but the moment I include https in it everything fails.
We deployed all our sites with https
:
Following a very simple code which fails. I don't any clues why I am getting exception if I include https
in it.
try
{
http_client api(U("https://172.27.12.207/AuthSvr"), m_http_config);
ucout << "Requesting account information:" << std::endl;
ucout << "Information: " << api.request(methods::GET, U("identity/.well-known/openid-configuration")).get().extract_json().get() << std::endl;
//TestRestAPI().wait();
}
catch (...)
{
ucout << "Unknown Error";
}
EDIT
I handled exception to catch web::http::http_exception
and I am seeing error:
WinHttpSendRequest: 12175: A security error occurred