SSOAuthSettingsinterface
Settings for injecting the io.Connect SSO login information into the headers of the OpenTelemetry export requests.
The login is asked for on every export (and cached for a while - see authInfoCacheMs), so
it doesn't have to be there when io.Insights is initialized, and a refreshed token is picked
up. Exports that happen before anybody has logged in go out without it, unless waitForLogin
is set.
In io.Connect Desktop the login of the platform is used: by the platform itself, and by the
applications that are allowed to have it (allowAuthInfo set to true in the application
definition) - the rest export without it. It isn't available to Node.js applications. The
io.Connect Gateway gets the login as it is when the gateway is started, which is usually
before anybody has logged in.
Only applies to the OTLP exporters io.Insights creates itself (from url), and to custom
ones that are created from the exporter settings they are handed.
Properties (8)
| Property | Type | Default | Required | Description |
|---|---|---|---|---|
| authInfoCacheMs⚓︎ | number | 30000 | x | For how long the login is reused before it is asked for again, in milliseconds. In an application of io.Connect Desktop asking means a round trip to the platform. |
| authInfoTimeoutMs⚓︎ | number | 5000 | x | How long to wait for the login to be provided, in milliseconds. A login that doesn't come
in time is treated like one that isn't available: the export goes out without it, and the
login isn't asked for again until |
| enabled⚓︎ | boolean | false | x | If |
| getAuthInfo⚓︎ | () => SSOAuthInfo | null | undefined | Promise<SSOAuthInfo | null | undefined> | x | x | Provides the login. By default the login of io.Connect Desktop is used, when running in it
( |
| useAuthHeader⚓︎ | boolean | false | x | If |
| useRawToken⚓︎ | boolean | true | x | If |
| waitForLogin⚓︎ | boolean | false | x | If The wait is part of the export, so it counts against the export timeout of the batch
processors ( |
| waitForLoginTimeoutMs⚓︎ | number | 5000 | x | How long an export waits for the login when |