summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKowalski, Kamil <kamil.kowalski@intel.com>2018-01-31 13:24:59 +0100
committerEd Tanous <ed.tanous@intel.com>2018-02-05 15:40:03 -0800
commit2b7981f6e53f76c662d427ced8bd9cffc5dde695 (patch)
tree22412d4e43c4a963e01067487c6f9d1175d5409e /src
parent109799e512a6abcad3303dffa0505fcf2a521a1a (diff)
downloadbmcweb-2b7981f6e53f76c662d427ced8bd9cffc5dde695.tar.gz
bmcweb-2b7981f6e53f76c662d427ced8bd9cffc5dde695.zip
Session and SessionCollection
New Redfish-Core nodes added (removed from redfish_v1.hpp) - Session and SessionCollection. Tested manually on x86 VM and Wolfpass Platform. Behavior almost identical to what was before - differences: - SessionCollection - now only returns TIMEOUT presistence sessions, not SINGLE - Aquiring sessions from session storage now applies timeouts Change-Id: I68bf4fa7fa1c8371216a7d4daa30bbfb653cfa72 Signed-off-by: Kowalski, Kamil <kamil.kowalski@intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/webserver_main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/webserver_main.cpp b/src/webserver_main.cpp
index 834a5df..f504cc7 100644
--- a/src/webserver_main.cpp
+++ b/src/webserver_main.cpp
@@ -12,10 +12,10 @@
#include <webassets.hpp>
#include <memory>
#include <string>
+#include "redfish.hpp"
#include <crow/app.h>
#include <boost/asio.hpp>
#include <systemd/sd-daemon.h>
-#include "redfish.hpp"
constexpr int defaultPort = 18080;
@@ -41,6 +41,8 @@ void setup_socket(crow::Crow<Middlewares...>& app) {
int main(int argc, char** argv) {
auto io = std::make_shared<boost::asio::io_service>();
+ crow::PersistentData::session_store =
+ std::make_shared<crow::PersistentData::SessionStore>();
crow::App<crow::PersistentData::Middleware,
crow::TokenAuthorization::Middleware,
crow::SecurityHeadersMiddleware>
OpenPOWER on IntegriCloud