文件名称:allow-me:具有基于json的策略定义的授权库
文件大小:21KB
文件格式:ZIP
更新时间:2024-06-18 09:51:44
Rust
允许我 具有基于 json 的策略定义的授权库。 在简单的Identity (I), Operation (O), Resource (R)模型中定义您的授权规则。 根据您的政策规则评估请求。 入门 [ dependencies ] allow-me = " 0.1 " 示例用法 JSON 定义 一个简单的策略示例,包含一个语句和一个针对该策略评估的请求。 let json = r#"{ "statements": [ { "effect": "allow", "identities": [ "actor_a" ], "operations": [
【文件预览】:
allow-me-master
----Cargo.toml(728B)
----.github()
--------workflows()
----THIRDPARTYNOTICES(1KB)
----src()
--------validator.rs(2KB)
--------matcher.rs(1KB)
--------core()
--------errors.rs(556B)
--------lib.rs(2KB)
--------substituter.rs(8KB)
----rust-toolchain(7B)
----examples()
--------customizations.rs(3KB)
--------order.rs(1KB)
--------vars.rs(1KB)
--------json.rs(866B)
----LICENSE(1KB)
----README.md(6KB)
----.gitignore(142B)