Skip to content

PluginToolSecrets

Static class in Oadm.Sdk.Plugins · Oadm.Sdk.dll

The secrets of a plugin tool’s change (PluginToolSecret) as the host passes them.

public static class PluginToolSecrets
static IReadOnlyDictionary<string, string> Of(string? payloadJson)

The secret values of a payload by name; empty for a preview, all of the preview’s for a run, the one value being checked when the host asks the preview method whether an entered value fits (answer a field error at secrets.<name>).

const string Property = "secrets_needed"

The property of a preview’s answer that names the secrets the run needs (a list of PluginToolSecret); the host takes it out.

const string ValuesProperty = "secrets"

The property of the payload that holds the values by name: all of them for the run, one when the host checks a value the person entered.