The Athenz UI fails with ReferenceError: setOktaCookieinClients is not defined when rendering any page.
In src/server/clients.js, the middleware function references setOktaCookieinClients on line 107:
cloud_sso: CLIENTS.cloud_sso(req, setOktaCookieinClients(req)),
This function is never defined in the open-source codebase. It appears to be part of an internal Okta integration that was not included in the public release.
The callCloudSSO config flag in default-config.js (default: true) only guards the usage of the cloud_sso client in api.js, not its initialization in the middleware. So even with callCloudSSO: false, the middleware still crashes.
Workaround: Add a stub function in clients.js:
function setOktaCookieinClients(req) {
return setCookieinClients(req);
}
Expected fix: Either include the function definition, guard the cloud_sso client initialization with callCloudSSO, or default callCloudSSO to false.
Version: v1.12.36
The Athenz UI fails with
ReferenceError: setOktaCookieinClients is not definedwhen rendering any page.In
src/server/clients.js, the middleware function referencessetOktaCookieinClientson line 107:This function is never defined in the open-source codebase. It appears to be part of an internal Okta integration that was not included in the public release.
The
callCloudSSOconfig flag indefault-config.js(default:true) only guards the usage of thecloud_ssoclient inapi.js, not its initialization in the middleware. So even withcallCloudSSO: false, the middleware still crashes.Workaround: Add a stub function in
clients.js:Expected fix: Either include the function definition, guard the
cloud_ssoclient initialization withcallCloudSSO, or defaultcallCloudSSOtofalse.Version: v1.12.36