#grpc-client #grpc #oidc #client #api-client

zitadel

An implementation of ZITADEL API access and authentication in Rust

133 stable releases

new 5.3.2 Nov 13, 2024
5.0.0 Aug 29, 2024
4.4.0 Aug 26, 2024
4.3.5 May 2, 2024
1.0.1 Mar 23, 2022

#46 in Authentication

Download history 265/week @ 2024-07-28 187/week @ 2024-08-04 292/week @ 2024-08-11 428/week @ 2024-08-18 975/week @ 2024-08-25 711/week @ 2024-09-01 827/week @ 2024-09-08 1615/week @ 2024-09-15 1721/week @ 2024-09-22 762/week @ 2024-09-29 1206/week @ 2024-10-06 483/week @ 2024-10-13 1299/week @ 2024-10-20 924/week @ 2024-10-27 1942/week @ 2024-11-03 1535/week @ 2024-11-10

5,735 downloads per month

MIT/Apache

2MB
49K SLoC

ZITADEL for Rust   Crates.io docs.rs Crates.io Crates.io

This repository contains the gRPC service clients and helpers/credentials/other utilities for ZITADEL.

The following features are present:

  • API clients for communication with the ZITADEL API (calling gRPC methods)
  • Credentials support for the API clients (access token and service account interceptors)
  • OIDC Introspection support for rocket
  • OIDC Introspection support for axum

Example

There exist a few examples in the examples directory. Go there to see the library in action, or head over to the documentation to see the full API documentation.

Development

After you clone the repository, you need "just" to run certain tasks. Generating the gRPC clients is done via just generate-grpc or just (as it is configured to be the default action for just).

For the generation to complete successfully, you need to have "buf" and the required proto plugins installed.

Required tooling:

  • just
  • buf
  • protoc
  • protoc-gen-prost: cargo install protoc-gen-prost
  • protoc-gen-tonic: cargo install protoc-gen-tonic
  • protoc-gen-prost-crate: cargo install protoc-gen-prost-crate

Installing the tools is also partially available via just install-tools.

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

~0–39MB
~631K SLoC