14 lines
382 B
Rust
14 lines
382 B
Rust
use iam_client::IamClientBuilder;
|
|
use photocloud_client_common::AuthConfig;
|
|
|
|
#[tokio::main]
|
|
async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|
// Build IAM client with optional bearer auth.
|
|
let client = IamClientBuilder::new("https://127.0.0.1:2443")
|
|
.auth(AuthConfig::None)
|
|
.build()
|
|
.await?;
|
|
|
|
println!("IAM client ready");
|
|
Ok(())
|
|
}
|