Retrieve a global configuration setting¶
This operation performs a direct, single-setting lookup against the Environment API's global-setting route, bypassing the shared cache entirely. The library relies on it mainly to bootstrap the LDAP and domain values it needs before it can even attempt a developer-machine authorization check, at a point where the normal cache may not yet be populated.
| Field | Value |
|---|---|
| Operation ID | OP-ENV-004 |
| Trigger | Internal code requests a bootstrap global setting |
| Inputs | configKey |
| Outputs | Global setting value or null |
| Primary components | EnvironmentServiceBase.GetGlobalConfigSetting |
| Entry point | SAIF.Framework.Security.EnvironmentApi\Services.Common\EnvironmentServiceBase.cs |
Steps¶
- Build
/v2/setting/{ApplicationId}/global/{configKey}/valueusing the current application identifier (BR-002). - Download the JSON response with a transient
WebClientcreated for this single call. - Deserialize the payload into one
ConfigSettingobject. - Return
setting.ConfigValue.Valuewhen a setting was returned; otherwise returnnullrather than throwing. - Let HTTP, serialization, or environment-variable exceptions bubble to the caller — none are handled locally.
Process flow¶
The following diagram visualizes this operation's control flow.
flowchart TD
Start([Caller requests global setting]) --> Url[Build global-setting URL]
Url --> Download[Download JSON payload]
Download --> Deserialize[Deserialize ConfigSetting]
Deserialize --> Found{Setting returned?}
Found -->|Yes| Value([Return ConfigValue.Value])
Found -->|No| Null([Return null])
Failure and edge-case behavior¶
- This method bypasses the shared settings cache entirely, so it never benefits from — or contributes to — the throttled refresh used elsewhere in the library.
- A caller receives
nullwhen the API returns no setting object, rather than an exception. - No exception handling occurs locally; HTTP, serialization, and configuration errors reach the caller unchanged.
Related documentation¶
Sources¶
- SAIF.Framework.Security.EnvironmentApi\Services.Common\EnvironmentServiceBase.cs