Error while integerating onlyoffice

report a bug / Ask a how-to question

For bug reports, provide the steps to reproduce and if possible a minimal demo of the problem:
i was trying to intergerate the onlyoffice using docker so error faced is errorCode : -20
errorDescription : "The document security token is not correctly formed.
Please contact your Document server administrator "

please provide the insights regarding this.

Hello,
This issue is probably related to the malformed token. The token value needs to be generated according to the following steps:
In the local.json configuration file (located at /etc/onlyoffice/documentserver, inside the container for Docker), find:

"secret": {
  "inbox": {
    "string": "yoursecret"
  },
  "outbox": {
    "string": "yoursecret"
  },
  "session": {
    "string": "yoursecret"
  }
}

Then, you need to generate a token (Security | ONLYOFFICE), using the key from the configuration file as its signature (Signature | ONLYOFFICE).

The payload should contain the entire editor initialization configuration.

Finally, pass the generated token as a parameter in the editor initialization configuration (Browser | ONLYOFFICE): Config | ONLYOFFICE.