GithubHelp home page GithubHelp logo

Comments (6)

Kohze avatar Kohze commented on May 31, 2024

Just looked at the function, which itself is quite lightweight. Lets first check if its related to the code or to your credentials.
Try to login you via a "postman" https://www.postman.com/ request, looking at our code, it seems that its just a simple API call that seems to fail here.

o_auth_login_url <- paste0("https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifyAssertion?key=", project_api) o_auth_login_data <- httr::POST(url = o_auth_login_url, body = list("requestUri" = request_uri, "postBody" = post_body,

In case the postman API call works, but the package not, we do some bug fixing round.

from firedata.

Bmoser-boop avatar Bmoser-boop commented on May 31, 2024

from firedata.

Bmoser-boop avatar Bmoser-boop commented on May 31, 2024

from firedata.

Bmoser-boop avatar Bmoser-boop commented on May 31, 2024

from firedata.

paulsp94 avatar paulsp94 commented on May 31, 2024

The redirect URI in the request, http://localhost:1410/, does not match the ones authorized for the OAuth client.

The error means that you didn't register the http://localhost:1410/ URL as a valid redirect option, which is a security feature of OAuth providers.

One example, how to add a URL to e.g. Facebook can be found here:

https://stackoverflow.com/a/40174229

from firedata.

Bmoser-boop avatar Bmoser-boop commented on May 31, 2024

I was able to get it to work, my partner who is setting up our Firebase project did not create a Real Time Database for our Firebase project. We realized this was the problem after I found that I was able to add and remove users with no issue, but couldn't upload or download any files. I had failed to see that this package works best with the Real Time Database.

Additionally, I realized that an OAuth login was not necessary for what I was trying to do, since with the security settings on my project I could upload and download files without an OAuth login.

As a warning to anybody who is a beginner with Firebase and has this issue, I tried adding http://localhost:1410/ as a valid OAuth link but still received the same errors. If you're trying to upload/download files and getting similar errors as me, consider that the problem might be on the Firebase side rather than the R side.

from firedata.

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.