Compare commits

...

1 Commits

Author SHA1 Message Date
Ginger a46ab092e6 fix: Trim whitespace from OIDC client secret file 2026-07-11 15:45:01 -04:00
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
Whitespace will now automatically be trimmed from the start and end of the `global.oauth.oidc.client_secret_file`.
+1
View File
@@ -151,6 +151,7 @@ fn build(args: crate::Args<'_>) -> Result<Arc<Self>> {
config: config.clone(),
client_secret: if let Some(client_secret_file) = &config.client_secret_file {
std::fs::read_to_string(client_secret_file)
.map(|client_secret| client_secret.trim().to_owned())
.map(ClientSecret::new)
.map_err(|err| err!("Failed to read OIDC client secret file: {err}"))?
} else if let Some(client_secret) = &config.client_secret {