loolwsd/LOOLWSD.cpp | 25 ------------------------- 1 file changed, 25 deletions(-)
New commits: commit 21cdf9d503e267d6dd6c91076fd7c595b4c3d7ca Author: Ashod Nakashian <ashod.nakash...@collabora.co.uk> Date: Sat Apr 2 17:32:01 2016 -0400 loolwsd: removed unused authentication function for now Change-Id: I8c57adecab03eb186aeacea365f092a71e2e097d Reviewed-on: https://gerrit.libreoffice.org/23779 Reviewed-by: Ashod Nakashian <ashnak...@gmail.com> Tested-by: Ashod Nakashian <ashnak...@gmail.com> diff --git a/loolwsd/LOOLWSD.cpp b/loolwsd/LOOLWSD.cpp index 033c2ec..538ff82 100644 --- a/loolwsd/LOOLWSD.cpp +++ b/loolwsd/LOOLWSD.cpp @@ -381,35 +381,10 @@ private: } } - bool authenticate(HTTPServerRequest& request, HTTPServerResponse& response, const std::string& id) - { - (void)response; - Log::info("Authenticating Get request processor for session [" + id + "]."); - std::string token; - for (auto& pair : URI(request.getURI()).getQueryParameters()) - { - if (pair.first == "token") - { - token = pair.second; - break; - } - } - - //TODO: - //AuthAgent.verify(token); - return true; - } - void handleGetRequest(HTTPServerRequest& request, HTTPServerResponse& response, const std::string& id) { Log::info("Starting GET request handler for session [" + id + "]."); - //TODO: Authenticate the caller. - // authenticate(request, response); - // NameValueCollection cookies; - // request.getCookies(cookies); - // Log::info("Cookie: " + cookies.get("PHPSESSID", "")); - // Remove the leading '/' in the GET URL. std::string uri = request.getURI(); if (uri.size() > 0 && uri[0] == '/') _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits