Version 7.0 token usage issues

Hello,
Our team installed onlyoffice docs version 7.0 on Centos 8.4 system (without using docker), trying to use the token function but there is a problem with the work.
First, set up the local.json file according to the documentation and restart the onlyoffice docs service.
Secondly, after running the provided demo(JAVA Spring Example), he did not successfully open the page as expected. An error message was issued:

“The document security token is not correctly formed.Please contact your Document Server administrator.Press “OK” to return to document list.”
(Because of the limitation of the link for new users,Completed in comments!)

Next, after querying the document, I found: Invalid token , the operation according to the document still does not work properly. The team did not give up and continued to look for a solution, and found the post: How does the JWT works? After processing according to the reply scheme, it still does not work properly! Hereby Come and find help! Looking forward to your help. Thank you!
(Because of the limitation of the link for new users,Completed in comments!)

Additional Information:
1.The generated JSON data and token are placed in the share link:https://disk.yandex.com/d/9AwgcfS2hK0xtQ
2.Error Screenshot:error
3.local.json Adjusted file: https://disk.yandex.com/d/v0mw486K3ADWQQ

Hi, token generated by your application is signed by secret “123456789”, and in local.json secret is “secret”. JWT secret must be the same on both sides.
Also you have enabled "inBody": true in local.json which means you have to pass JWT in the request body:
https://api.onlyoffice.com/editors/signature/body

Thanks for your reply, thank you

did’ you solve the problem ? i has same problem :rofl: doucument server local.json and my callback server use same secrt , use demo(JAVA Spring Example) ,always notice: token is not correcty formed.

Hello @votouch
Please provide us with your local.jason and application.properties files. Also please reproduce the issue and provide us with whole Document server logs folder.

hi ,bro ,every thing is ok,the problem has detail.

1 Like