nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
26.87k stars 4.01k forks source link

Allow embedding shared videos only on specific website (or alternative protection) #37210

Open vladasko-g opened 1 year ago

vladasko-g commented 1 year ago

Right now I see no way to embed videos securely.

We are running a website where its content (videos) is reachable only after authentication. We would like to embed videos from NextCloud there, but then we need to make them public which would make them reachable to anyone and that's not good.

Maybe it is possible to create a feature to only allow videos accessible from certain domains (allowlist certain websites which can embed it) or provide some kind of inline URL authentication compatible with embedding. Password protection which we have now is not ok because it leads to an authorization page and won't work with embedded videos. Also, the security is questionable if we inline the protection in the URL.

These are just suggestions.

Here is the section of the file-sharing configuration, just to make it understandable: 111

The embedded video would be used similarly to <video src="https://nextcloud.something/something">

andersrodigrue commented 1 week ago

I’m facing a similar challenge with embedding videos securely. We also need to restrict access to content only after authentication, and making videos public is not an option for us either.

Your suggestions, like allowing videos to be embedded only from certain domains or having an inline URL authentication that works seamlessly with embedding, would be very helpful for my use case as well. I hope we can find a secure way to achieve this!