VertiGIS Studio Reporting SDK - Portal Token getting dropped
We built a widget for Experience Builder using the VertiGIS Studio Client for JavaScript. The widget generates a secured report for selected records. It is working great in the Experience Builder for Developers environment, but when we package (download) the app and deploy it to a web server, the packaged app is dropping the token from the request for the portal item, so we are getting "You do not have permissions to access this resource or perform this operation." errors in the console for the request to the portal item.
The token is present in the initial call to:
run(reportAppId, {
portalUrl: <url>,
token: reportToken,
parameters: {
FeatureIds: reportFeatIds
}
}
But within the VertiGIS reporting client JavaScript library, the process, at:
// Fetch the portal item
const portalItemInfo = await getPortalItemInfo(
itemId,
portalUrl,
options.token
);
... the options.token value is null for some reason.
Any help would be greatly appreciated.
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
0 Kommentare