Spanish Total.js
English
Documentation For AI agents
Contents

Use OpenReports with OpenPlatform

Add OpenReports to a Total.js OpenPlatform instance, so that its users sign in there.

.md GitHub
On this page

OpenReports can run as an app inside Total.js OpenPlatform. OpenPlatform then signs people in, and OpenReports gets their permissions from it.

The OpenPlatform part of Configuration with the import link and the two token fields

Connect the two apps

  1. In OpenReports, open Configuration. The OpenPlatform part shows a link that ends in /openplatform.json. Copy it.
  2. In OpenPlatform, import the app with that link and copy the request token and the response token it gives you.
  3. Back in Configuration, enter them in Request token and Response token, then select SUBMIT.

As the warning on the screen says, you are logged out when the tokens are saved. From then on, OpenReports answers 401: Unauthorized when you open its address directly. Open it from OpenPlatform instead.

Permissions

OpenReports offers these permissions to OpenPlatform:

PermissionWhat it opens
ReportsThe Reports screen.
ViewsThe Views screen.
SetupThe Configuration screen.
All reportsEvery report, not only the reports the user created.
One per categoryThe reports of that category, for example Sales.

Go back to working without OpenPlatform

1. Stop OpenReports.

2. Open databases/memorize_data.json and empty the two tokens:

"op_reqtoken": "",
"op_restoken": "",

3. Start OpenReports again. It opens without sign-in.

Made in Europe