omni::telemetry::kTelemetryAuthTokenTypeLeaf

Defined in omni/structuredlog/Telemetry.h

constexpr const char *const omni::telemetry::kTelemetryAuthTokenTypeLeaf = "authTokenType"

This setting is an optional member of the kTransmitterSetting object.

This specifies the expected type of the authentication token. This can be any of “auto”, “jwt”, or “api-key”. By default this is set to “auto” and will attempt to detect the type of authentication token based on where the kTelemetryAuthTokenUrlSettingLeaf setting points. If the value points to a URL, a JWT will be assumed. If the value points to a file on disk or directly contains the token itself, a long-lived API key will be assumed. If an alternate storage method is needed but the assumed type doesn’t match the actual token type, this setting can be used to override the auto detection. The default value is “auto”. This setting will be ignored if kTelemetryAuthenticateSettingLeaf is set to false.