# Example 5: Auth & RBAC

Protect agents with authentication and role-based permissions.

```python title="examples/bookstore/05_auth_rbac.py"
--8<-- "examples/bookstore/05_auth_rbac.py"
```

## Run It

```bash
PYTHONPATH=examples/bookstore uv run python examples/bookstore/05_auth_rbac.py
```
