Skip to content

Commit 334003f

Browse files
author
Lenardt Gerhardts
committed
Fixxed oidc_skip_endpoints not being optional
1 parent c90133f commit 334003f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/app_config.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,8 @@ pub struct AppConfig {
229229
#[serde(default = "default_oidc_scopes")]
230230
pub oidc_scopes: String,
231231

232+
/// Defines a list of Endpoints which should be skipped by oidc Authorization
233+
#[serde(default = "default_oidc_skip_endpoints")]
232234
pub oidc_skip_endpoints: Vec<String>,
233235

234236
/// A domain name to use for the HTTPS server. If this is set, the server will perform all the necessary
@@ -576,6 +578,10 @@ fn default_oidc_scopes() -> String {
576578
"openid email profile".to_string()
577579
}
578580

581+
fn default_oidc_skip_endpoints() -> Vec<String> {
582+
Vec::new()
583+
}
584+
579585
#[derive(Debug, Deserialize, Serialize, PartialEq, Clone, Copy, Eq, Default)]
580586
#[serde(rename_all = "lowercase")]
581587
pub enum DevOrProd {

0 commit comments

Comments
 (0)