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@172.25.161.211:8080/xwiki/bin/download/OnlyOffice/wordtest/WebHome/empty.docx?rev=1.1'
        },
        editorConfig: {
            callbackUrl: 'http://172.25.161.211/example/track?filename=${DOC_NAME}&useraddress=172.30.7.4',
            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:

https://store.xwiki.com/xwiki/bin/view/Extension/OnlyOfficeConnectorApplication

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