-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Closed
Labels
Description
In our company we use extensively NextCloud as our cloud service and Rocket.Chat to communicate with each other. Sometimes there is need to share some file on chat and what we do is copy link to cloud and paste in chat, but it isn't pretty solution, as Rocket doesn't know what is behind login-wall.
Ways of integration:
- Create NextCloud app, so that Rocket is available directly from NextCloud – will be relatively easy, as it can be just iframe as it's done ex. in Collabora app.
- Auto login. We currently use LDAP for auth, so there is no problem for us in terms of authentication source (it could be done just like in RainLoop webmail app, which has option to automatically login with NextCloud credentials), but I believe that some installations don't involve LDAP, so it would be nice to have support for NextCloud's auth source. Good thing is that NextCloud has some nice APIs, so it will be just matter of GET request and parsing XML, as described here: https://docs.nextcloud.com/server/12/developer_manual/client_apis/OCS/index.html
- WebDAV file sharing integration, to allow for easy file sharing on chat. It could be great integration on its own, not necessarily directly connected to NextCloud, but to WebDAV in general. The way I see it is that Rocket fetches file info with PROPFIND request and generates or fetches thumbnail from WebDAV server. The thumbnail part may be a little bit tricky, but I think that there will be no problem with NextCloud in this matter, as thumbnails can be generated by NextCloud itself and then available via some GET request (just created issue for this: File preview WebDAV API nextcloud/server#6176).
- NextCloud as Rocket's file storage. At this point we'll already have WebDAV auth support, so it would be just a matter of selecting some shared folder without permission to delete and change.
- NextCloud as attachment source. It would be nice to be able to browse NextCloud and add files directly from there to Rocket conversation. Could be done by sending file unique URL to chat, the format is:
{NextCloud server}/index.php/f/{fileid}, wherefileidcan be fetched from WebDAV with PROPFIND oc:fileid. - NextCloud notifications about Rocket messages. That's not crucial, but would be nice to have as an option. I'm not yet sure how it could be done, but it can definitely be done.
So please tell me what do you think about all of this. To be honest I'm not too much of Node programmer, so I cannot help on the Rocket side, but I have some PHP background so I could write and maintain NextCloud app.
Reactions are currently unavailable