diff --git a/build b/build index c793025..301160a 100644 --- a/build +++ b/build @@ -1 +1 @@ -7 \ No newline at end of file +8 \ No newline at end of file diff --git a/src/AuthClient.cpp b/src/AuthClient.cpp index d35a461..6a20a90 100644 --- a/src/AuthClient.cpp +++ b/src/AuthClient.cpp @@ -1,6 +1,11 @@ // -// Created by stephane bourque on 2021-06-30. +// License type: BSD 3-Clause License +// License copy: https://github.com/Telecominfraproject/wlan-cloud-ucentralgw/blob/master/LICENSE // +// Created by Stephane Bourque on 2021-03-04. +// Arilia Wireless Inc. +// + #include #include "AuthClient.h" diff --git a/src/RESTAPI_handler.cpp b/src/RESTAPI_handler.cpp index da53671..ee56fdf 100644 --- a/src/RESTAPI_handler.cpp +++ b/src/RESTAPI_handler.cpp @@ -361,7 +361,6 @@ namespace OpenWifi { if (SessionToken_.empty()) { try { Poco::Net::OAuth20Credentials Auth(Request); - if (Auth.getScheme() == "Bearer") { SessionToken_ = Auth.getBearerToken(); } @@ -382,17 +381,6 @@ namespace OpenWifi { } } -/* - bool RESTAPIHandler::ValidateAPIKey(Poco::Net::HTTPServerRequest &Request, - Poco::Net::HTTPServerResponse &Response) { - auto Key = Request.get("X-API-KEY", ""); - - if (Key.empty()) - return false; - - return true; - } -*/ void RESTAPIHandler::ReturnObject(Poco::Net::HTTPServerRequest &Request, Poco::JSON::Object &Object, Poco::Net::HTTPServerResponse &Response) { PrepareResponse(Request, Response);