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>
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 @@
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>