Framework update top allow insecure RESTAPI for ALB support.

This commit is contained in:
stephb9959
2022-03-22 23:21:29 -07:00
parent 3754da24a1
commit e629220094

View File

@@ -66,23 +66,18 @@ namespace OpenWifi {
{
std::lock_guard Guard(Mutex_);
Expired = false;
std::cout << __LINE__ << std::endl;
try {
std::string CallToken;
std::cout << __LINE__ << std::endl;
for(const auto &k:Request) {
std::cout << " K:" << k.first << " V:" << k.second << std::endl;
}
Poco::Net::OAuth20Credentials Auth(Request);
if (Auth.getScheme() == "Bearer") {
std::cout << __LINE__ << std::endl;
CallToken = Auth.getBearerToken();
}
std::cout << __LINE__ << std::endl;
if(CallToken.empty()) {
std::cout << __LINE__ << std::endl;
return false;
}
@@ -101,7 +96,6 @@ namespace OpenWifi {
}
return false;
} catch(const Poco::Exception &E) {
std::cout << __LINE__ << std::endl;
Logger().log(E);
}
return false;