dinesh
December 12, 2019, 6:40am
1
How to access AWS S3 objects using Auth0?
I checked Build Serverless Applications Using Token-Based Authentication with AWS API Gateway and Lambda but it uses delegation which is deprecated, is there any alternative way to access s3?
Our requirement:
Users login to our site using Auth0, we want to provide these users access to our data present in S3 bucket.
1 Like
Hey there @dinesh !
Let me reach out to our docs and engineering team to let the first know to update the docs and the second to know how to achieve what you want. I’ll get back to you soon!
dinesh
December 12, 2019, 9:10am
4
yep, waiting for the docs.
Sure! Let me get back to you once I have any info!
Hi,
One way you can do it …
You can create an API Gateway Proxy to your S3 bucket. There is a guide here
Then you can put a custom authorizer on your API gatway that validates a bearer token issued via Auth0 in your login flow.
I have implemented this and it works well.
Can provide Cloud Formation script for the proxy configuration and TS code for the custom authorizer if helpfui
3 Likes
Woah! Thanks a lot for sharing that knowledge here @brotheredward !