fix: add missing grant_types field to instance config OAuth structs (#8175)

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Ruben Fiszel
2026-03-02 07:30:36 +00:00
committed by GitHub
parent c70307d3f2
commit fca94f88dd
@@ -420,6 +420,8 @@ pub struct OAuthClient {
pub login_config: Option<OAuthConfig>,
#[serde(skip_serializing_if = "Option::is_none")]
pub share_with_workspaces: Option<bool>,
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub grant_types: Vec<String>,
}
/// OAuth provider endpoint configuration.
@@ -438,6 +440,8 @@ pub struct OAuthConfig {
pub extra_params_callback: Option<BTreeMap<String, String>>,
#[serde(skip_serializing_if = "Option::is_none")]
pub req_body_auth: Option<bool>,
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub grant_types: Vec<String>,
}
// ---------------------------------------------------------------------------
@@ -2235,6 +2239,7 @@ mod tests {
connect_config: None,
login_config: None,
share_with_workspaces: None,
grant_types: vec![],
},
);
m