Skip to content

Commit cc05630

Browse files
sbernauerdervoeti
andauthored
feat: Derive strum::AsRefStr for ClientAuthenticationMethod (#1197)
* feat: Derive `strum::AsRefStr` for `ClientAuthenticationMethod` * changelog * chore: cargo update --------- Co-authored-by: dervoeti <lukas.krug@stackable.tech>
1 parent 95490f2 commit cc05630

3 files changed

Lines changed: 58 additions & 45 deletions

File tree

Cargo.lock

Lines changed: 50 additions & 45 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/stackable-operator/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44

55
## [Unreleased]
66

7+
### Added
8+
9+
- Derive `strum::AsRefStr` for `ClientAuthenticationMethod` ([#1197]).
10+
11+
[#1197]: https://github.com/stackabletech/operator-rs/pull/1197
12+
713
## [0.110.0] - 2026-04-10
814

915
### Added

crates/stackable-operator/src/crd/authentication/oidc/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,10 @@ pub mod versioned {
109109
PartialEq,
110110
PartialOrd,
111111
Serialize,
112+
strum::AsRefStr,
112113
)]
113114
#[serde(rename_all = "snake_case")]
115+
#[strum(serialize_all = "snake_case")]
114116
pub enum ClientAuthenticationMethod {
115117
/// Authenticate using HTTP Basic authentication with client_id and client_secret.
116118
/// This is the default method according to the OIDC spec.

0 commit comments

Comments
 (0)