OpenBMC:BmcWeb login创建session
OpenBMC:BmcWeb login认证-CSDN博客
完成用户的认证后,还需要为该用户创建session,从而为后续的rest api访问铺平道路
inline void handleLogin(const crow::Request& req,const std::shared_ptr<bmcweb::AsyncResp>& asyncResp)
{...auto session =persistent_data::SessionStore::getInstance().generateUserSession(username, req.ipAddress, std::nullopt,persistent_data::SessionType::Session,isConfigureSelfOnly);