summaryrefslogtreecommitdiff
path: root/include/login_routes.hpp
diff options
context:
space:
mode:
authorSunitha Harish <sunharis@in.ibm.com>2020-10-30 10:37:30 +0300
committerEd Tanous <ed@tanous.net>2020-11-10 19:30:11 +0300
commitc0ea7ae1c502fa2c67b0a58aee05b75581dafa7a (patch)
tree812b2d37bb153377a5897b434ddef7fc8137d7e9 /include/login_routes.hpp
parenta0744d38e93863ce3fb4bef2d4c70f9e9f640840 (diff)
downloadbmcweb-c0ea7ae1c502fa2c67b0a58aee05b75581dafa7a.tar.xz
Redfish Session : Support ClientOriginIPAddress
This commit implements the ClientOriginIPAddress property on the session resource. The IP address is persisted across the reboot Tested by: 1. Create session POST https://${bmc}/redfish/v1/SessionService/Sessions -d '{"UserName":<>, "Password":<>}' 2. Check the session gets updated with the ClientOriginIPAddress GET https://${bmc}/redfish/v1/SessionService/Sessions/<id> 3. Redfish validator passed 4. Create session and reboot the BMC to ensure the IP address is persisted 5. Tested the basic auth populates the clientIp at req Signed-off-by: Sunitha Harish <sunharis@in.ibm.com> Change-Id: Iaa60d0657c991bde4bcf6c86819055c71c92e421
Diffstat (limited to 'include/login_routes.hpp')
-rw-r--r--include/login_routes.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/login_routes.hpp b/include/login_routes.hpp
index 1f7b35a3b4..6879de0d47 100644
--- a/include/login_routes.hpp
+++ b/include/login_routes.hpp
@@ -141,7 +141,7 @@ inline void requestRoutes(App& app)
.generateUserSession(
username,
persistent_data::PersistenceType::TIMEOUT,
- isConfigureSelfOnly);
+ isConfigureSelfOnly, req.ipAddress.to_string());
if (looksLikePhosphorRest)
{