ONLYOFFICE 7.0: online forms, password protection in sheets, collaboration improvements and much more
ONLYOFFICE 7.0 released

How to config auth when setup document editor

hi, onlyoffice community, I am trying to integrate xwiki with onlyoffice doc.

config = {
        document: {
            fileType: 'docx',
            key: 'empty.docx',
            title: 'empty.docx',
            url: 'http://admin:#Fgglgy0223@'
        editorConfig: {
            callbackUrl: '${DOC_NAME}&useraddress=',
            customization: {
                autosave: false,
                chat: false,
                comments: false,
                forcesave: true
            lang: 'zh',
            location: 'cn'
        height: '600px',
        documentType: 'word'
    var docEditor = new DocsAPI.DocEditor('onlyoffice-container', config)

the problem is I want the document editing service download attachment file directly from xwiki, but the attachment url need http basic auth, I tried embed username and password in url, but faild, I also find there is no option to specify auth headers.

please help

Hello Fanguogang.

Please note that we didn’t create XWiki connector:

It was a developer team from XWiki.

As for auth access, please note that editors must have anonymous access to download files from the storage. Otherwise, please use JWT.

I find cookie is copied, so my problem is fixed, thanks.

1 Like