setVapiConfig('oa', $_SESSION['S_USERID']);
}
// Get static asset locations.
$staticAssetService = new StaticAssetService($awsConfig);
$suiteManifestData = $staticAssetService->loadStaticAssetsManifestJson(
'orchard-suite-oa-applications'
);
$logger = Zend_Registry::get('applicationLoggerOA');
$userContext = AccountContext::fromLegacy((string)$_SESSION['S_USERID'], 'oa');
$featuresServiceClient = new FeatureService($logger);
$userId = $_SESSION['S_USERID'];
$features = $featuresServiceClient->getAllFeatures($userContext);
// Grab the GRASS session.
$grassAuth = new GrassAuth(new OwsGrass(logger: $logger));
$grassSession = $grassAuth->fetchGrassToken()->getJSTokenManagerServiceFormat(
OwsGrass::OA_REFRESH_URI,
OwsGrass::PROXY_PATH
);
$graphqlUrl = '/grass/graphql-router/graphql';
?>