Use OpenReports with OpenPlatform
Add OpenReports to a Total.js OpenPlatform instance, so that its users sign in there.
OpenReports can run as an app inside Total.js OpenPlatform. OpenPlatform then signs people in, and OpenReports gets their permissions from it.

Connect the two apps
- In OpenReports, open Configuration. The OpenPlatform part shows a link that ends in
/openplatform.json. Copy it. - In OpenPlatform, import the app with that link and copy the request token and the response token it gives you.
- 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:
| Permission | What it opens |
|---|---|
| Reports | The Reports screen. |
| Views | The Views screen. |
| Setup | The Configuration screen. |
| All reports | Every report, not only the reports the user created. |
| One per category | The 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.