mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-04-07 14:06:11 +08:00
fix(nodejs): skip wopi verification when proof key is missing in discovery
This commit is contained in:
@ -25,6 +25,10 @@ exports.isValidToken = async (req, res, next) => {
|
|||||||
try {
|
try {
|
||||||
req.DocManager = new DocManager(req, res);
|
req.DocManager = new DocManager(req, res);
|
||||||
const proofKey = await utils.getProofKey(req.DocManager);
|
const proofKey = await utils.getProofKey(req.DocManager);
|
||||||
|
if (!proofKey) {
|
||||||
|
next();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const isValid = wopiValidator.check(
|
const isValid = wopiValidator.check(
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user