To make media sharing work, it's necessary to expose subscriptions to private channels.
This is not ideal (e.g. exposing followers of the private channel breast-cancer-support@example.com).
But the media server needs to know if you follow something before being able to issue a download token. Also for remote media servers.
Would the following work as a potential solution:
juliet@capulet.lit wants media item azab-romeo-hot-hot-hot-cdcd from romeo@montague.lit
- her bc-app requests a token from
media.montague.lit
media.montague.lit generates a token and sends a copy of the token to juliet@capulet.lit and buddycloud.montague.lit
buddycloud.montague.lit discards this token if juliet@capulet.lit isn't a follower of romeo.montague.lit
- juliet tries to download from
api.capulet.lit/media-proxy/romeo@montague.lit/media/azab-romeo-hot-hot-hot-cdcd by presenting the token.
media.capulet.lit now checks that there is a matching token on buddycloud.capulet.lit
- if the token is still wasn't discarded by the buddycloud-server, the download proceeds.
I'm sure I've missed something?
To make media sharing work, it's necessary to expose subscriptions to private channels.
This is not ideal (e.g. exposing followers of the private channel
breast-cancer-support@example.com).But the media server needs to know if you follow something before being able to issue a download token. Also for remote media servers.
Would the following work as a potential solution:
juliet@capulet.litwants media itemazab-romeo-hot-hot-hot-cdcdfromromeo@montague.litmedia.montague.litmedia.montague.litgenerates a token and sends a copy of the token tojuliet@capulet.litandbuddycloud.montague.litbuddycloud.montague.litdiscards this token ifjuliet@capulet.litisn't a follower ofromeo.montague.litapi.capulet.lit/media-proxy/romeo@montague.lit/media/azab-romeo-hot-hot-hot-cdcdby presenting the token.media.capulet.litnow checks that there is a matching token onbuddycloud.capulet.litI'm sure I've missed something?