Code Monkey home page Code Monkey logo

Comments (9)

TheMythologist avatar TheMythologist commented on July 23, 2024

I am also getting the exact same error, is there any fix/workaround for this issue?

from onlyoffice-mattermost.

SubhashPatel avatar SubhashPatel commented on July 23, 2024

I have not got a solution yet.

from onlyoffice-mattermost.

TheMythologist avatar TheMythologist commented on July 23, 2024

I found the issue - JWT_HEADER must be set to a value that is not Authorization, as stated here:

  • JWT Header: If JWT protection is enabled, it is necessary to specify a custom header name since the Mattermost security policy blocks external 'Authorization' Headers. This header should be specified in the ONLYOFFICE Docs signature settings as well (further information can be found here).

Reference: https://github.com/ONLYOFFICE/onlyoffice-mattermost?tab=readme-ov-file#plugin-settings

Ensure that this value is not Authorization, and that it is the same for both the OnlyOffice Mattermost plugin settings and the OnlyOffice documentserver settings.

from onlyoffice-mattermost.

SubhashPatel avatar SubhashPatel commented on July 23, 2024

@TheMythologist what do I need to change in my plugin settings? current settings I have attached in my questions.
Can you guide me?

from onlyoffice-mattermost.

TheMythologist avatar TheMythologist commented on July 23, 2024

On your OnlyOffice document server, what it is the JWT_HEADER settings used to? It needs to be set to AuthorizationJWT, as shown from your screenshot.

from onlyoffice-mattermost.

SubhashPatel avatar SubhashPatel commented on July 23, 2024

below is my onlyoffice local.json file

{ "services": { "CoAuthoring": { "sql": { "type": "postgres", "dbHost": "localhost", "dbPort": "5432", "dbName": "onlyoffice", "dbUser": "onlyoffice", "dbPass": "onlyoffice" }, "token": { "enable": { "request": { "inbox": true, "outbox": true }, "browser": true }, "inbox": { "header": "Authorization", "inBody": false }, "outbox": { "header": "Authorization", "inBody": false } }, "secret": { "inbox": { "string": "qIGHV0xa8o1MTPSgOTFJusf8pFTmixgn" }, "outbox": { "string": "qIGHV0xa8o1MTPSgOTFJusf8pFTmixgn" }, "session": { "string": "qIGHV0xa8o1MTPSgOTFJusf8pFTmixgn" } } } }, "rabbitmq": { "url": "amqp://guest:guest@localhost" }, "storage": { "fs": { "secretString": "94EoQuvEZvrlWo61vhTl" } } }

from onlyoffice-mattermost.

TheMythologist avatar TheMythologist commented on July 23, 2024

Are you using Docker to run your OnlyOffice document server? I'm afraid I'm not too sure on how to configure JWT_HEADER using the configuration json files. For me, I ran OnlyOffice document server via Docker, so I just have to specify JWT_HEADER=<custom_jwt_header> in my environment.

https://helpcenter.onlyoffice.com/installation/docs-enterprise-install-docker.aspx

from onlyoffice-mattermost.

SubhashPatel avatar SubhashPatel commented on July 23, 2024

@TheMythologist thanks it is working

from onlyoffice-mattermost.

SubhashPatel avatar SubhashPatel commented on July 23, 2024

we have passed parameter JWT_HEADER=AuthorizationJWT and restarted onlyoffice docker and solved issues.

from onlyoffice-mattermost.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.