Empty user object from authorization header in GET request from Only Office

Integration questions/issues
Post Reply
winklehner
Posts: 3
Joined: Thu Sep 06, 2018 11:55 am

Empty user object from authorization header in GET request from Only Office

Post by winklehner » Thu Jun 13, 2019 1:02 pm

On POST requests OnlyOffice sends the user in the callback object. Unfortunately when decoding the callback handler from the authorization header in GET
requests this data is missing, only the url is available.

How can we access the data provided to the editor under the 'user' object when receiving GET requests from OnlyOffice?

const editor = new DocsAPI.DocEditor('placeholder', {
'document': {
'fileType': data.filetype,
'key': data.key,
'title': data.title,
'url': this.config.apiEndpoint + 'dss/' + docId
}
, 'editorConfig': {
'user': {
'id': user.id,
'name': user.firstName + ' ' + user.lastName
},...

Maxim
Posts: 2017
Joined: Tue Oct 11, 2016 2:34 pm

Re: Empty user object from authorization header in GET request from Only Office

Post by Maxim » Sun Aug 04, 2019 3:31 pm

Hello winklehner!
Is this issue still actual for you now?

Post Reply