From 0ac0bd93aef7449d455cb0641d0766304a6ad676 Mon Sep 17 00:00:00 2001 From: Ginger Date: Fri, 10 Jul 2026 21:26:55 -0400 Subject: [PATCH] fix: Default deserialize for `compatibility_mode` --- changelog.d/+6d0bc844.bugfix.md | 1 + src/core/config/mod.rs | 1 + 2 files changed, 2 insertions(+) create mode 100644 changelog.d/+6d0bc844.bugfix.md diff --git a/changelog.d/+6d0bc844.bugfix.md b/changelog.d/+6d0bc844.bugfix.md new file mode 100644 index 000000000..e33bededb --- /dev/null +++ b/changelog.d/+6d0bc844.bugfix.md @@ -0,0 +1 @@ +Fixed `global.oauth.compatibility_mode` being required, despite being ignored, when the `[global.oauth.oidc]` config section is provided. diff --git a/src/core/config/mod.rs b/src/core/config/mod.rs index cc2189a42..bee20103b 100644 --- a/src/core/config/mod.rs +++ b/src/core/config/mod.rs @@ -2442,6 +2442,7 @@ pub struct OauthConfig { /// legacy authentication will be unable to log in. /// /// default: "hybrid" + #[serde(default)] compatibility_mode: OAuthMode, /// display: hidden