[Plugins] [Auth] [JWT] Add addtional JWT headers input (#247)

Co-authored-by: Gregory Schier <gschier1990@gmail.com>
This commit is contained in:
moshyfawn
2026-01-09 19:16:08 -05:00
committed by GitHub
parent 47c5ef1464
commit 4c8f768624
7 changed files with 222 additions and 61 deletions

View File

@@ -48,11 +48,7 @@ impl PluginContext {
}
pub fn new(label: Option<String>, workspace_id: Option<String>) -> Self {
Self {
label,
workspace_id,
id: generate_prefixed_id("pctx"),
}
Self { label, workspace_id, id: generate_prefixed_id("pctx") }
}
}
@@ -842,6 +838,7 @@ pub enum FormInput {
HStack(FormInputHStack),
Banner(FormInputBanner),
Markdown(FormInputMarkdown),
KeyValue(FormInputKeyValue),
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, TS)]
@@ -1095,6 +1092,14 @@ pub struct FormInputMarkdown {
pub hidden: Option<bool>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, TS)]
#[serde(default, rename_all = "camelCase")]
#[ts(export, export_to = "gen_events.ts")]
pub struct FormInputKeyValue {
#[serde(flatten)]
pub base: FormInputBase,
}
#[derive(Debug, Clone, Serialize, Deserialize, TS)]
#[serde(rename_all = "snake_case", tag = "type")]
#[ts(export, export_to = "gen_events.ts")]