# guts-auth
Authorization and governance for Guts: Organizations, Teams, Permissions, and Webhooks.
## Overview
This crate provides:
- **Organizations** - Group management with roles
- **Teams** - Fine-grained access control
- **Permissions** - Read, Write, Admin hierarchy
- **Branch Protection** - Required reviews, status checks
- **Webhooks** - Event notifications
## Usage
```rust
use guts_auth::{Organization, Team, Permission, BranchProtection};
// Create an organization
let org = Organization::new("acme", "Acme Corp");
// Set up branch protection
let protection = BranchProtection::new("main")
.require_reviews(2)
.require_status_checks(vec!["ci/build"]);
```
## Permission Hierarchy
- `Read` - Clone, view code and issues
- `Write` - Push, create PRs, manage issues
- `Admin` - Repository settings, manage access
## Part of Guts
This crate is part of [Guts](https://github.com/AbdelStark/guts), a decentralized, censorship-resistant alternative to GitHub built on BFT consensus.
## License
MIT OR Apache-2.0