# bucketwarden-auth

[![License: Apache-2.0](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](../../Cargo.toml)
[![Rust crate](https://img.shields.io/badge/rust-crate-orange.svg)](Cargo.toml)
[![SSOT governed](https://img.shields.io/badge/SSOT-governed-2f6f4e.svg)](../../.ssot/registry.json)

`bucketwarden-auth` owns local identity, tenants, access keys, role assumption, temporary session credentials, login attempts, and external identity provider support models.

## Install

```toml
bucketwarden-auth = { path = "../bucketwarden-auth" }
```

## Usage

```rust
let store = bucketwarden_auth::AuthStore::default();
let tenant = bucketwarden_auth::DEFAULT_TENANT_ID;
```

## Crate Links

- Used by [`bucketwarden-server`](../bucketwarden-server/README.md) and [`bucketwarden-cli`](../bucketwarden-cli/README.md).
- Uses [`bucketwarden-s3`](../bucketwarden-s3/README.md) for S3-scoped identity and action concepts.

## Author

Jacob Stewart `<jacob@swarmauri.com>`
