use-authz 0.0.1

Authorization metadata primitives for RustUse
Documentation
  • Coverage
  • 47.92%
    23 out of 48 items documented1 out of 30 items with examples
  • Size
  • Source code size: 9.79 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.29 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2s Average build duration of successful builds.
  • all releases: 2s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Documentation
  • RustUse/use-security
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-authz

Authorization, permissions, roles, scopes, claims, and access-control primitives for RustUse.

Experimental

use-authz is experimental while the use-security workspace remains below 0.3.0. Expect small API adjustments during the first release wave.

Example

use use_authz::{AccessDecision, PermissionName, PolicyEffect};

let permission = PermissionName::new("document:read")?;

assert_eq!(permission.as_str(), "document:read");
assert_eq!(AccessDecision::Allow.as_str(), "allow");
assert_eq!(PolicyEffect::Deny.to_string(), "deny");
# Ok::<(), use_authz::AuthzNameError>(())

Scope

  • Authorization model, decision, and policy-effect labels.
  • Validated permission, role, scope, claim, subject, resource, and action names.
  • ASCII-safe metadata primitives for local application code.

Non-goals

  • Policy engines.
  • Real access decisions.
  • Role storage, identity providers, or authorization servers.

License

Licensed under either of the following, at your option:

  • Apache License, Version 2.0
  • MIT license