diff options
Diffstat (limited to 'include/sessions.hpp')
-rw-r--r-- | include/sessions.hpp | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/include/sessions.hpp b/include/sessions.hpp index 1eace0ddad..85d8ecc635 100644 --- a/include/sessions.hpp +++ b/include/sessions.hpp @@ -142,11 +142,35 @@ struct UserSession struct AuthConfigMethods { +#ifdef BMCWEB_ENABLE_BASIC_AUTHENTICATION + bool basic = true; +#else + bool basic = false; +#endif + +#ifdef BMCWEB_ENABLE_SESSION_AUTHENTICATION + bool sessionToken = true; +#else + bool sessionToken = false; +#endif + +#ifdef BMCWEB_ENABLE_XTOKEN_AUTHENTICATION bool xtoken = true; +#else + bool xtoken = false; +#endif + +#ifdef BMCWEB_ENABLE_COOKIE_AUTHENTICATION bool cookie = true; - bool sessionToken = true; - bool basic = true; +#else + bool cookie = false; +#endif + +#ifdef BMCWEB_ENABLE_MUTUAL_TLS_AUTHENTICATION + bool tls = true; +#else bool tls = false; +#endif void fromJson(const nlohmann::json& j) { |