7 stable releases
Uses new Rust 2021
new 1.0.6 | Jun 22, 2022 |
---|---|
1.0.5 | Jun 21, 2022 |
1.0.3 | Apr 12, 2022 |
1.0.1 | Mar 23, 2022 |
1.0.0 | Feb 9, 2022 |
#96 in Authentication
91 downloads per month
5MB
11K
SLoC
ZITADEL for Rust

This repository contains the gRPC bindings for ZITADEL and other helpers to interact with the ZITADEL API.
With the help of the service account it is possible to access the ZITADEL API and use the management client to execute gRPC calls against the API.
Example
Fetch the first 1000 users in the organization of a service account:
use zitadel::credentials::ServiceAccount;
use zitadel::grpc::zitadel::management::v1::management_service_client::ManagementServiceClient;
#[tokio::main]
async fn main() {
let service_account = ServiceAccount::load_from_file("./my_json_key.json")?;
let client = ManagementServiceClient.connect("https://api.zitadel.ch");
let access_token = service_account.authenticate().await?;
let req = tonic::Request::new(ListUsersRequest {
query: Some(ListQuery {
offset: progressed as u64,
limit: 1000,
asc: true,
}),
sorting_column: 0,
queries: vec![],
});
req.metadata_mut()
.insert("authorization", format!("Bearer {}", access_token)
.parse()
.unwrap());
let response = client.list_users(req).await?;
Ok(());
}
License
Licensed under either of Apache License, Version 2.0 or MIT license at your option. Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the package by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.Dependencies
~14–26MB
~571K SLoC