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" 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?) + } }