10 lines
366 B
Rust
10 lines
366 B
Rust
pub use iam_service_auth::{
|
|
get_tenant_context, resolve_tenant_ids_from_context, resource_for_tenant, AuthService,
|
|
TenantContext,
|
|
};
|
|
|
|
pub async fn connect_iam(endpoint: &str) -> anyhow::Result<AuthService> {
|
|
AuthService::new(endpoint).await.map_err(|error| {
|
|
anyhow::anyhow!("failed to connect to IAM server at {}: {}", endpoint, error)
|
|
})
|
|
}
|