I'm want to play videos to users of my site who have a login. The videos are stored on S3 and I'm about to make some changes to serve them through Cloudfront. The videos are publicly available now, but I'd like to restrict access so that users need to log in to my website to view the videos in an HTML5 video player. I also need to limit access to certain folders in S3 based on the company of the user.
The main thing that has me wondering how to do this is the per folder access. I'm not sure if this will be relevant but, the video url's are pulled into the page via an ajax request then the HTML5 video player get's created by javascript, so the whole page isn't generated at once on the server. If the user remains on the page, they can ajax refresh the video list.
I'm looking at Authentication Requests and at Query Strings at the moment as well as this tutorial on folder access, but it's very old.
Am I looking in the right direction to try and do what I'm after? I'm new to AWS and would like some tips on the direction to look in.
The website is on an ec2 and is written in Django.
Aucun commentaire:
Enregistrer un commentaire