You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, thanks so much for your work on these awesome packages! Really useful for me!
I've still been trying to figure out the problems from #426 because I need to obtain google analytics data for an R package I'm working on. So I've been trying to construct this package's auth steps myself with no avail.
In the Auth consent page I received these error messages:
Access blocked: Default GCP project for googleAnalyticsR’s request is invalid
You can’t sign in because Default GCP project for googleAnalyticsR sent an invalid request. You can try again later, or contact the [developer](https://accounts.google.com/) about this issue. [Learn more about this error](https://support.google.com/accounts/answer/12379384)
If you are a developer of Default GCP project for googleAnalyticsR, see [error details](https://accounts.google.com/).
Error 400: invalid_request
The out-of-band (OOB) flow has been blocked in order to keep users secure. Follow the Out-of-Band (OOB) flow migration guide linked in the developer docs below to migrate your app to an alternative method.
Request details: redirect_uri=urn:ietf:wg:oauth:2.0:oob
Expected output
I expected I would be able to authenticate the package as described in the tutorial.
Actual output
Before you run your code, please run: options(googleAuthR.verbose=2) and copy-paste the console output here.
Check it doesn't include any sensitive info like auth tokens or accountIds - you can usually just edit those out manually and replace with say XXX
As suggested in the bug report, I ran options(googleAuthR.verbose=2) but nothing happened.
I also tried in this cloud session to use the development version by running:
I think this is maybe the issue but I am very new to all these Google API and OAuth things so I am not sure.
What is OOB?
OAuth [out-of-band (OOB)](https://developers.google.com/identity/protocols/oauth2/native-app#manual-copypaste), also referred to as the manual copy/paste option, is a legacy flow developed to support native clients which do not have a redirect URI to accept the credentials after a user approves an OAuth consent request. The OOB flow poses a remote phishing risk and clients must migrate to an alternative method to protect against this vulnerability.
The OOB flow is being deprecated for all client types i.e. Web applications, Android, iOS, Universal Windows Platform (UWP), Chrome apps, TVs & limited-input devices, Desktop apps.
Hi @cansavvy! Sorry for the delay on getting a response to you. Since some time has already passed, I'm just checking quickly first, is this still unresolved? Happy to help you out if you still need support on this.
No worries. I ended up just making my own package to handle Google Analytics and authentication for me (along with other things) I was hoping to use this package to handle it for me but couldn't get that to work. https://www.metricminer.org/
What goes wrong
First of all, thanks so much for your work on these awesome packages! Really useful for me!
I've still been trying to figure out the problems from #426 because I need to obtain google analytics data for an R package I'm working on. So I've been trying to construct this package's auth steps myself with no avail.
To test if this was a me problem I followed the tutorial in RStudio (now Posit) Cloud that is linked here https://code.markedmondson.me/googleAnalyticsR/articles/setup.html#quickstart-rstudio-cloud-project
Steps to reproduce the problem
I followed the steps in the tutorial and ran:
In the Auth consent page I received these error messages:
Expected output
I expected I would be able to authenticate the package as described in the tutorial.
Actual output
As suggested in the bug report, I ran
options(googleAuthR.verbose=2)
but nothing happened.I also tried in this cloud session to use the development version by running:
I then restarted the R session and tried again.
But I still got the same results as above.
sessionInfo()
The text was updated successfully, but these errors were encountered: