Added a check for characters which an API key cannot contain (#1227)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-11-24 17:20:13 +01:00
1 parent c72a1948b3
commit e5a7f5423f
40 files changed
+1179 -71

No files matched your search

@@ -26,6 +26,18 @@ public sealed class ToolSettingsFieldDefinition
public bool Secret { get; init; }
/// <summary>
/// Whether the field holds an API key, which is always a secret as well.
/// </summary>
/// <remarks>
/// An API key goes into an HTTP header, which carries nothing but ASCII. The settings dialog
/// therefore checks what the user enters there. Settings validation leaves the key alone on
/// purpose, since it decides whether the tool is offered at all: a key which was stored before,
/// or which the organization provides, would switch off the whole tool without a word. The
/// tool checks a stored key again before sending it.
/// </remarks>
public bool IsAPIKey { get; init; }
/// <summary>
/// Name of the group this field belongs to, or empty when it stands on its own.
/// </summary>