Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to integrate amazon s3 oauth 2.0

Is there any Oauth 2.0 authentication integration for amazon s3 ? like dropbox ?dropbox oauth2.0 integration

If not, is there any other protocol amazon s3 supports?

like image 505
Hari Krishnan Avatar asked Oct 20 '22 19:10

Hari Krishnan


1 Answers

This may not be exactly what you're after and it requires a separate App, but since there's no activity on this I thought it's worth mentioning...

You can sign an S3 request to temporarily allow an anonymous user to access a secure file in S3.

You can secure your App with OAuth2 then the App can generate a secure temporary link which allows the user to download a piece of content directly from S3.

Official documentation: http://s3.amazonaws.com/doc/s3-developer-guide/RESTAuthentication.html

Sample in PHP: https://css-tricks.com/snippets/php/generate-expiring-amazon-s3-link/

Another similar method using cloudfront: http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html#private-content-overview

like image 143
python1981 Avatar answered Oct 23 '22 13:10

python1981