Framework update top allow insecure RESTAPI for ALB support.

This commit is contained in:
stephb9959
2022-03-22 22:30:04 -07:00
parent 80af312318
commit 7b767ae03f
2 changed files with 19 additions and 0 deletions

View File

@@ -66,14 +66,19 @@ namespace OpenWifi {
{
std::lock_guard Guard(Mutex_);
Expired = false;
std::cout << __LINE__ << std::endl;
try {
std::string CallToken;
std::cout << __LINE__ << 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;
}
@@ -92,6 +97,7 @@ namespace OpenWifi {
}
return false;
} catch(const Poco::Exception &E) {
std::cout << __LINE__ << std::endl;
Logger().log(E);
}
return false;