From 8408d1f23b67f7b457e7167941044da417a1fc7c Mon Sep 17 00:00:00 2001 From: George Shaw Date: Tue, 31 Oct 2017 18:05:48 -0500 Subject: [PATCH 1/2] created session handler, session testing, implemented sessions to keep track of user authentication in the backend and implemented user logout api --- document_roots/webhost/api_testing.html | 15 +++++ pkg/api/api_handler.go | 2 + pkg/api/user.go | 29 ++++++++++ pkg/networking/session_store.go | 77 +++++++++++++++++++++++++ pkg/networking/session_store_test.go | 51 ++++++++++++++++ pkg/webhost/check_auth.go | 15 +++++ pkg/webhost/webhost.go | 12 +++- 7 files changed, 198 insertions(+), 3 deletions(-) create mode 100644 pkg/networking/session_store.go create mode 100644 pkg/networking/session_store_test.go create mode 100644 pkg/webhost/check_auth.go diff --git a/document_roots/webhost/api_testing.html b/document_roots/webhost/api_testing.html index a3278a7..6058327 100644 --- a/document_roots/webhost/api_testing.html +++ b/document_roots/webhost/api_testing.html @@ -51,6 +51,21 @@ +
+ + + + + + + + + + + +
gPanel Logout
+
+