diff options
author | Sunitha Harish <sunharis@in.ibm.com> | 2020-10-30 10:37:30 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2020-11-10 19:30:11 +0300 |
commit | c0ea7ae1c502fa2c67b0a58aee05b75581dafa7a (patch) | |
tree | 812b2d37bb153377a5897b434ddef7fc8137d7e9 /include/persistent_data.hpp | |
parent | a0744d38e93863ce3fb4bef2d4c70f9e9f640840 (diff) | |
download | bmcweb-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/persistent_data.hpp')
-rw-r--r-- | include/persistent_data.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/persistent_data.hpp b/include/persistent_data.hpp index 19c424a202..0ff0c7e1df 100644 --- a/include/persistent_data.hpp +++ b/include/persistent_data.hpp @@ -193,6 +193,7 @@ class ConfigFile {"session_token", p.second->sessionToken}, {"username", p.second->username}, {"csrf_token", p.second->csrfToken}, + {"client_ip", p.second->clientIp}, #ifdef BMCWEB_ENABLE_IBM_MANAGEMENT_CONSOLE {"client_id", p.second->clientId}, #endif |