DocumentServer icon indicating copy to clipboard operation
DocumentServer copied to clipboard

onlyOffice token is incorrect

Open mrgu6 opened this issue 1 year ago • 3 comments

This issue is unique.

  • [X] I have used the search tool and did not find an issue describing my bug.

Operating System of DocumentServer

Windows Server, Docker

Version information

latest

Expected Behavior

I think starting the Docker setting - e JWT-SECRET=my_jwt_secret, and then setting the token=my_jwt_secret on the customer service end can edit the file

Actual Behavior

I set - e JWT-SECRET=my_jwt_secret for Docker, and then set token=my_jwt_secret on the customer service end,token prompts that the format of the document security token is incorrect

Reproduction Steps

  1. docker run -i -t -d -p 80:80 --restart=always -e JWT_ENABLED=true onlyoffice/documentserver
  2. docker exec e27d87ae331c /var/www/onlyoffice/documentserver/npm/json -f /etc/onlyoffice/documentserver/local.json 'services.CoAuthoring.secret.session.string'
  3. set Vue3.0 config.token = token

Additional information

No response

mrgu6 avatar May 28 '24 13:05 mrgu6

@mrgu6 to integrate docs, do you use your Vue document manager or are you based on https://api.onlyoffice.com/editors/vue

askonev avatar May 29 '24 09:05 askonev

yes, "@onlyoffice/document-editor-vue": "^1.4.0"

ghost avatar May 29 '24 13:05 ghost

@mrgu6 The component itself should not affect the token in any way. You may be specifying the token incorrectly

"...and then set token=my_jwt_secret in customer support and"

it is necessary to generate a token using JWT-SECRET

https://api.onlyoffice.com/editors/config/#token

askonev avatar May 30 '24 14:05 askonev