- 1. A secret variable containing the token {truncateRev(value, 5, '*****')}
- will be stored at
- {path}. You can refer to this variable anywhere this token
- is required.
-
-
- 2. A resource with a unique token field will be stored at {path}
- and refer to the secret variable {path} as its token (using
- variable templating
- `$var:${path}`). You can refer to this resource anywhere
- this token is required. A script can use the resource type
- {resource_type} as a type parameter to restrict the kind of
- tokens it accepts to this api.
-
+ 1. A secret variable containing the {apiTokenApps[resource_type]?.key ?? 'token'}{truncateRev(value, 5, '*****')}
+ will be stored a
+ {path}.
+
+
+ 2. The resource containing that token will be stored at the same path{path}. The Variable and Resource will be "linked together", they will be deleted and renamed
+ together.
+
+ {/if}
{/if}
{#if step > 1 && !no_back}
diff --git a/frontend/src/lib/components/ArgInput.svelte b/frontend/src/lib/components/ArgInput.svelte
index 9b20f2e6e2..65556ae98b 100644
--- a/frontend/src/lib/components/ArgInput.svelte
+++ b/frontend/src/lib/components/ArgInput.svelte
@@ -15,6 +15,7 @@
import SimpleEditor from './SimpleEditor.svelte'
import autosize from 'svelte-autosize'
import Toggle from './Toggle.svelte'
+ import Password from './Password.svelte'
export let label: string = ''
export let value: any
@@ -39,6 +40,7 @@
export let properties: { [name: string]: SchemaProperty } | undefined = undefined
export let autofocus = false
export let compact = false
+ export let password = false
let seeEditable: boolean = enum_ != undefined || pattern != undefined
const dispatch = createEventDispatcher()
@@ -336,24 +338,28 @@
: undefined}
/>
{:else if inputCat == 'string'}
-