feat(server): implement HTTP auth and page management functionality
- Introduced new HTTP authentication and page management APIs, allowing for the creation, retrieval, updating, and deletion of HTTP auth profiles and pages. - Added validation for auth and page fields to ensure proper configuration and error handling. - Implemented a mechanism for resolving auth credentials from various sources, including inline definitions, KV store, and secrets. - Enhanced workflow validation to include checks for HTTP triggers, ensuring proper auth and response configurations. - Updated the web interface to include new routes for managing HTTP auth profiles and pages, improving user experience and accessibility.
This commit is contained in:
@@ -76,7 +76,22 @@ export function workflowToFlowchart(parsed) {
|
||||
triggers.forEach((t, i) => {
|
||||
const id = `t${i}`;
|
||||
lines.push(` ${id}(["${mermaidLabel(triggerLabel(t))}"])`);
|
||||
triggerIds.push(id);
|
||||
let outbound = id;
|
||||
if (t?.auth != null && t.auth !== false) {
|
||||
const authId = `${id}auth`;
|
||||
const label =
|
||||
typeof t.auth === "string"
|
||||
? `auth ${t.auth}`
|
||||
: typeof t.auth === "object" && t.auth?.name
|
||||
? `auth ${t.auth.name}`
|
||||
: typeof t.auth === "object" && t.auth?.type
|
||||
? `auth ${t.auth.type}`
|
||||
: "auth";
|
||||
lines.push(` ${authId}(["${mermaidLabel(label)}"])`);
|
||||
lines.push(` ${id} --> ${authId}`);
|
||||
outbound = authId;
|
||||
}
|
||||
triggerIds.push(outbound);
|
||||
});
|
||||
|
||||
const scripts = Array.isArray(parsed.scripts) ? parsed.scripts : [];
|
||||
|
||||
Reference in New Issue
Block a user