Giter VIP home page Giter VIP logo

Comments (2)

benjreinhart avatar benjreinhart commented on June 25, 2024

Hey @Johnafriedman,

This library works by generating the AWS signature needed to make the request. Assuming that

  1. your accessKey & secretKey are correct
  2. your IAM policy is correct

Then this library should generate the correct signature needed to make the request to AWS.

Unfortunately, it's really hard to tell what the error is when there is an access denied error given that something in the generated policy is off, but since it's a cryptographic signature, there is no way to tell (that I know of) which piece in the signature generation is incorrect besides eyeballing the source code over and over again looking for discrepancies between the code here and AWS docs on how to generate a signature.

There have been multiple mentions in other issues about generating policies on the server and I believe some others have forked this library to support server generated policies. I'm still waiting for PRs from anyone who has worked on improving this experience. However, I would want the existing repo to work as is, with additional functionality allowing users to opt in to server generated policies. I unfortunately don't do as much RN development at the moment, so I don't have as much incentive as I used to to spend my free time on this.

TLDR; I'm not sure I can help you debug your access denied issue. No one else has filed issues about AWS responding with access denied and it is still working in my production app, so it leads me to believe something with your particular credentials is causing problems rather than a bug in this library.

from react-native-aws3.

dsernst avatar dsernst commented on June 25, 2024

I was curious about this too, so I looked into the forks to see if I could find what you were referring to. Here are two that seem to support attaching pre-created policies:

from react-native-aws3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.