cs3org / wopiserver

A vendor-neutral application gateway compatible with the WOPI specifications.
Apache License 2.0
55 stars 26 forks source link

Ensure the `UserId` WOPI property is consistent #48

Closed glpatcern closed 3 years ago

glpatcern commented 3 years ago

According to the WOPI documentation, the userid property in CheckFileInfo must be consistent over time, therefore we cannot use the Reva token for it as that's a session-based "identifier".

This patch creates a userid that is unique and consistent. It's also reasonably short, therefore it should work with OnlyOffice as well. To be noted that the current CERNBox production, based on xrootd, does not suffer from this because we use uid:gid for that purpose.