casbin-cpp
An authorization library that supports access control models like ACL, RBAC, ABAC in C/C++
File Explorer
Download Latest Version (.zip)- portfile.cmake
- vcpkg.json
- benchmark.yml
- ci.yml
- memcheck.yml
- python_binding.yml
- release.yml
- semantic.yml
- casbin-logo.png
- testini.ini
- config.cpp
- default_effector.cpp
- parser_exception.cpp
- allFF.cpp
- CIDRMask.cpp
- dtoi.cpp
- equal.cpp
- IP.cpp
- IPNet.cpp
- IPv4.cpp
- parseCIDR.cpp
- parseIP.cpp
- parseIPv4.cpp
- parseIPv6.cpp
- Print.cpp
- xtoi.cpp
- assertion.cpp
- evaluator.cpp
- function.cpp
- model.cpp
- policy_collection.cpp
- batch_file_adapter.cpp
- batch_file_adapter.h
- file_adapter.cpp
- file_adapter.h
- filtered_file_adapter.cpp
- filtered_file_adapter.h
- adapter.cpp
- adapter.h
- batch_adapter.h
- default_watcher.cpp
- default_watcher.h
- default_watcher_ex.cpp
- default_watcher_ex.h
- filtered_adapter.h
- persist.h
- string_adapter.cpp
- string_adapter.h
- watcher.h
- watcher_ex.h
- watcher_update.h
- default_role_manager.cpp
- array_equals.cpp
- array_remove_duplicates.cpp
- array_to_string.cpp
- built_in_functions.cpp
- ends_with.cpp
- escape_assertion.cpp
- eval.cpp
- find_all_occurences.cpp
- is_instance_of.cpp
- join.cpp
- join_slice.cpp
- remove_comments.cpp
- set_subtract.cpp
- split.cpp
- ticker.cpp
- trim.cpp
- .clang-format
- CMakeLists.txt
- enforcer.cpp
- enforcer_cached.cpp
- enforcer_synced.cpp
- internal_api.cpp
- logger.cpp
- management_api.cpp
- pch.cpp
- rbac_api.cpp
- rbac_api_with_domains.cpp
- selected_policies.cpp
- Findbenchmark.cmake
- FindExtPackages.cmake
- Findgoogletest.cmake
- Findjson.cmake
- Findpybind11.cmake
- casbinConfig.cmake.in
- error_model.conf
- error_policy.csv
- rbac_with_pattern_large_scale_model.conf
- rbac_with_pattern_large_scale_policy.csv
- abac_model.conf
- abac_rule_model.conf
- abac_rule_policy.csv
- basic_inverse_policy.csv
- basic_model.conf
- basic_model_without_spaces.conf
- basic_policy.csv
- basic_with_root_model.conf
- basic_without_resources_model.conf
- basic_without_resources_policy.csv
- basic_without_users_model.conf
- basic_without_users_policy.csv
- comment_model.conf
- glob_model.conf
- glob_policy.csv
- ipmatch_model.conf
- ipmatch_policy.csv
- keymatch2_model.conf
- keymatch2_policy.csv
- keymatch_custom_model.conf
- keymatch_model.conf
- keymatch_policy.csv
- priority_indeterminate_policy.csv
- priority_model.conf
- priority_policy.csv
- rbac_model.conf
- rbac_model_in_multi_line.conf
- rbac_model_matcher_using_in_op.conf
- rbac_policy.csv
- rbac_with_all_pattern_model.conf
- rbac_with_all_pattern_policy.csv
- rbac_with_deny_model.conf
- rbac_with_deny_policy.csv
- rbac_with_domain_pattern_model.conf
- rbac_with_domain_pattern_policy.csv
- rbac_with_domains_model.conf
- rbac_with_domains_policy.csv
- rbac_with_hierarchy_policy.csv
- rbac_with_hierarchy_with_domains_policy.csv
- rbac_with_not_deny_model.conf
- rbac_with_pattern_model.conf
- rbac_with_pattern_policy.csv
- rbac_with_resource_roles_model.conf
- rbac_with_resource_roles_policy.csv
- testini.ini
- config.h
- config_interface.h
- default_effector.h
- effect.h
- effector.h
- error.h
- casbin_adapter_exception.h
- casbin_enforcer_exception.h
- casbin_rbac_exception.h
- exception.h
- illegal_argument_exception.h
- io_exception.h
- missing_required_sections.h
- unsupported_operation_exception.h
- exprtk.hpp
- parser_exception.h
- allFF.h
- byte.h
- CIDR.h
- CIDRMask.h
- dtoi.h
- equal.h
- IP.h
- IPMask.h
- IPNet.h
- IPv4.h
- parseCIDR.h
- parseIP.h
- parseIPv4.h
- parseIPv6.h
- Print.h
- xtoi.h
- default_logger.h
- log_util.h
- Logger.h
- assertion.h
- evaluator.h
- exprtk_config.h
- function.h
- model.h
- policy_collection.hpp
- batch_file_adapter.h
- file_adapter.h
- filtered_file_adapter.h
- adapter.h
- batch_adapter.h
- default_watcher.h
- default_watcher_ex.h
- filtered_adapter.h
- persist.h
- string_adapter.h
- watcher.h
- watcher_ex.h
- watcher_update.h
- default_role_manager.h
- rbac.h
- role_manager.h
- built_in_functions.h
- ticker.h
- util.h
- casbin.h
- casbin_types.h
- data_types.h
- enforcer.h
- enforcer_cached.h
- enforcer_interface.h
- enforcer_synced.h
- pch.h
- selected_policies.h
- main.cpp
- py_adapter.cpp
- py_cached_enforcer.cpp
- py_casbin.h
- py_config.cpp
- py_enforcer.cpp
- py_model.cpp
- py_synced_enforcer.cpp
- config_path.py
- pycasbin_test_suite.py
- test_adapter.py
- test_cached_enforcer.py
- test_config.py
- test_enforcer.py
- test_model.py
- test_synced_enforcer.py
- CMakeLists.txt
- README.md
- CMakeLists.txt
- config_path.h
- enforcer_cached_b.cpp
- enforcer_cached_b_inten.cpp
- main.cpp
- management_api_b.cpp
- management_api_b_inten.cpp
- model_b.cpp
- model_b_inten.cpp
- role_manager_b.cpp
- role_manager_b_inten.cpp
- built_in_functions_test.cpp
- CMakeLists.txt
- config_path.h
- config_test.cpp
- enforcer_cached_test.cpp
- enforcer_synced_test.cpp
- enforcer_test.cpp
- management_api_test.cpp
- model_enforcer_test.cpp
- model_test.cpp
- rbac_api_test.cpp
- rbac_api_with_domains_test.cpp
- role_manager_test.cpp
- util_test.cpp
- .clang-format
- .gitignore
- CMakeLists.txt
- CONTRIBUTING.md
- LICENSE
- MANIFEST.in
- README.md
- setup.py
# Installation Guide
1. Get the code
git clone https://github.com/apache/casbin-cpp
Downloads the entire project code from GitHub to your computer.
cd casbin-cpp
Moves into the project folder you just downloaded.
2. CMake
Medium RecommendedPrerequisites
cmake ..
Analyzes the source code and generates build configuration files (must be run inside the build folder).
cmake --build . --config Release
Type this command into your terminal and run it.
cmake --build . --config Release --target install
Type this command into your terminal and run it.
cmake --build .
Type this command into your terminal and run it.
cmake --build . --target install
Type this command into your terminal and run it.
Check that an executable was created inside the build folder, then run it directly (e.g. ./build/app_name).
Pulled directly from this repo's README.
3. Python
EasyPrerequisites
pip install .
Installs the package published on PyPI directly β no need to clone the source.
python <μ€νν νμΌλͺ
>.py # READMEμμ μ νν μ€ν νμΌλͺ
μ νμΈνμΈμ
Runs the Python script (or module).
If it runs without errors and prints output in the terminal, it worked.
// repository documentation
Was this content helpful?
(0 ratings)
