Comments (6)
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.
from firedata.
from firedata.
from firedata.
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.
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)
- adding auth with JWT via R
- Adding secure user logins
- Interested in status of this project HOT 2
- documentation HOT 1
- Cannot access data that requires authentication with idToken HOT 5
- Access data without Firebase Database HOT 3
- upload response error HOT 1
- Invalid Description File : R installation. Did anyone succeed in installing R package?
- Change random token when upload data to firebase HOT 3
- Error during installation: Error in parse(con, keep.source = FALSE, srcfile = NULL) HOT 4
- Is there any ways to aquire Authentication data in firebase? HOT 1
- Available for r 3.4.4? HOT 1
- No data appears in Firebase HOT 2
- Not able to authenticate using project-api HOT 1
- Only able to upload numeric values?
- functions response [1] "main/" HOT 1
- Different classes on Realtime Database HOT 3
- auth() calls wrong var for project API string HOT 1
- Google FireStore upload HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from firedata.