diff options
-rw-r--r-- | http/http_connection.hpp | 8 | ||||
-rw-r--r-- | include/authentication.hpp (renamed from include/authorization.hpp) | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/http/http_connection.hpp b/http/http_connection.hpp index 339294ce55..564593c081 100644 --- a/http/http_connection.hpp +++ b/http/http_connection.hpp @@ -1,7 +1,7 @@ #pragma once #include "bmcweb_config.h" -#include "authorization.hpp" +#include "authentication.hpp" #include "http_response.hpp" #include "http_utility.hpp" #include "logging.hpp" @@ -356,7 +356,7 @@ class Connection : return; } #ifndef BMCWEB_INSECURE_DISABLE_AUTHENTICATION - if (!crow::authorization::isOnAllowlist(req->url, req->method()) && + if (!crow::authentication::isOnAllowlist(req->url, req->method()) && thisReq.session == nullptr) { BMCWEB_LOG_WARNING << "Authentication failed"; @@ -435,7 +435,7 @@ class Connection : addSecurityHeaders(*req, res); - crow::authorization::cleanupTempSession(*req); + crow::authentication::cleanupTempSession(*req); if (!isAlive()) { @@ -577,7 +577,7 @@ class Connection : sessionIsFromTransport = false; #ifndef BMCWEB_INSECURE_DISABLE_AUTHENTICATION boost::beast::http::verb method = parser->get().method(); - userSession = crow::authorization::authenticate( + userSession = crow::authentication::authenticate( ip, res, method, parser->get().base(), userSession); bool loggedIn = userSession != nullptr; diff --git a/include/authorization.hpp b/include/authentication.hpp index d50695b1a8..3c1ca484d9 100644 --- a/include/authorization.hpp +++ b/include/authentication.hpp @@ -18,7 +18,7 @@ namespace crow { -namespace authorization +namespace authentication { static void cleanupTempSession(Request& req) @@ -311,5 +311,5 @@ static std::shared_ptr<persistent_data::UserSession> return nullptr; } -} // namespace authorization +} // namespace authentication } // namespace crow |