MantisBase v0.4.9
Loading...
Searching...
No Matches
access_rules.cpp File Reference
#include "../../../include/mantisbase/core/models/access_rules.h"
#include "mantisbase/core/exceptions.h"
#include "mantisbase/core/expr_evaluator.h"
#include "mantisbase/core/http.h"
#include <algorithm>
#include <cctype>
#include <regex>
#include <sstream>
#include <vector>
Include dependency graph for access_rules.cpp:

Namespaces

namespace  mb

Functions

MANTISBASE_API bool mb::isGuestAuth (const nlohmann::json &auth)
MANTISBASE_API bool mb::isAdminAuth (const nlohmann::json &auth)
MANTISBASE_API bool mb::isUserAuth (const nlohmann::json &auth)
MANTISBASE_API nlohmann::json mb::buildAccessExprVars (const MbRequest &req, const nlohmann::json &auth)
MANTISBASE_API nlohmann::json mb::buildAccessExprVars (const nlohmann::json &auth, const std::string &remote_addr, int remote_port, const std::string &local_addr, int local_port, const nlohmann::json &body=nlohmann::json::object())
MANTISBASE_API MbAccessEvalResult mb::evaluateAccessRule (const MbAccessRule &rule, const MbAccessEvalContext &ctx)
MANTISBASE_API std::pair< int, std::string > mb::accessEvalHttpError (MbAccessEvalResult result, const MbAccessRule &rule=MbAccessRule{})