[Libreoffice-commits] online.git: loolwsd/LOOLWSD.cpp

Ashod Nakashian ashod.nakashian at collabora.co.uk
Mon Apr 4 04:04:36 UTC 2016


 loolwsd/LOOLWSD.cpp |   25 -------------------------
 1 file changed, 25 deletions(-)

New commits:
commit 21cdf9d503e267d6dd6c91076fd7c595b4c3d7ca
Author: Ashod Nakashian <ashod.nakashian at 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 <ashnakash at gmail.com>
    Tested-by: Ashod Nakashian <ashnakash at 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] == '/')


More information about the Libreoffice-commits mailing list