mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-30 14:12:07 +02:00
[Plugins] [Auth] [JWT] Add addtional JWT headers input (#247)
Co-authored-by: Gregory Schier <gschier1990@gmail.com>
This commit is contained in:
@@ -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")]
|
||||
|
||||
Reference in New Issue
Block a user