I want to host some files (images/videos etc) into the amazon s3 service. I need to ensure two things:
1. Restrict unauthorized access to the files ( Can I use OAuth to achieve the authentication?)
2. How can I make sure that the file can be downloaded only once? This is to ensure that the user does not bookmark the url and download multiple times, he can download the file only through the application.
There's really no way to limit the number of downloads of an S3 resource. If you want to do that, then you'd need to only permit access via some sort of user-designed application and have that application enforce the restriction.
An IDE is no substitute for an Intelligent Developer.