From d2bad83bc4146f5ca440e4af0493cc5da54dfcdf Mon Sep 17 00:00:00 2001 From: Matheus Zaniolo Date: Tue, 5 May 2026 11:02:54 +0200 Subject: [PATCH 1/2] feat: Add get_password_complexity_policy --- src/v2/management/mod.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/v2/management/mod.rs b/src/v2/management/mod.rs index 762a1b6..8b141ce 100644 --- a/src/v2/management/mod.rs +++ b/src/v2/management/mod.rs @@ -562,4 +562,17 @@ impl Zitadel { org_id, )) } + + /// [Get Password Complexity Policy](https://zitadel.com/docs/reference/api/management/zitadel.management.v1.ManagementService.GetPasswordComplexityPolicy) + pub async fn get_password_complexity_policy( + &self, + org_id: Option, + ) -> Result { + let request = self + .client + .get(self.make_url("/policies/password/complexity")?) + .chain_opt(org_id, |req, org_id| req.header(HEADER_ZITADEL_ORGANIZATION_ID, org_id)) + .build()?; + Ok(self.send_request(request).await?) + } } From 11caed3f57ac3c49504752a94b58ac35c5e50020 Mon Sep 17 00:00:00 2001 From: Matheus Zaniolo Date: Tue, 5 May 2026 11:06:57 +0200 Subject: [PATCH 2/2] release: v0.12.1 --- CHANGELOG.md | 6 ++++++ Cargo.lock | 2 +- Cargo.toml | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 378397a..16b22a5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,12 @@ SPDX-License-Identifier: Apache-2.0 All notable changes to this project will be documented in this file. +## [0.12.1] - 2026-05-05 + +### Features + +- Add `get_password_complexity_policy` + ## [0.12.0] - 2026-04-23 ### Features diff --git a/Cargo.lock b/Cargo.lock index 7385da5..3d10f4a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -734,7 +734,7 @@ dependencies = [ [[package]] name = "famedly-zitadel-rust-client" -version = "0.12.0" +version = "0.12.1" dependencies = [ "anyhow", "anyhow_ext", diff --git a/Cargo.toml b/Cargo.toml index 4a4753e..8d3555c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,7 @@ [package] name = "famedly-zitadel-rust-client" description = "HTTP client for Zitadel IdP built by Famedly" -version = "0.12.0" +version = "0.12.1" authors = [] edition = "2024" resolver = "2"