(node-red-node-google) Something went wrong in the authentication process. Please try again.
Hi -
When using the node-red-node google calendar node, I am having trouble completing the "Authenticate with Google" step. I get the following message when I try to authenticate:
"Something went wrong in the authentication process. Please try again."
I am running node-red on a raspberry pi and accessing it via a web browser on my desktop pc (windows).
The hosts file of my desktop pc has the following entry: [raspi IP] node-red.example.com
I am able to access the pi's node-red web page via: http://node-red.example.com:1880 from my desktop pc OK.
I have installed node-red-node-google on the pi's node-red and set up a web application via google's developers console (along with the redirect URI (http://node-red.example.com:1880/google-credentials/auth/callback). I cut and pasted the client ID and client secret into the node-red google credentials node.
When I try to "Authenticate with Google", I am able to step through the following steps: "Choose an Account" I select my google email account - then: Clicking "ALLOW" on the "example.com wants to screen" delivers me to the following screen:
"Something went wrong in the authentication process. Please try again."
For now, I just want to access my google calendar and see upcoming events. What APIs to enable is a little confusing. Various blog entries that I have found suggest that I need the following 3 APIs - although I would thought that I only needed "Google Calendar". I have the following 3 google API's enabled:
Google Calendar API Google Maps Directions API Google+ API
I don't know where to look for info on what went wrong.
Thanks in advance for any help.
-Bob
Same issue
tomjmul - I was able to get this working after building the nodejs quickstart example: https://developers.google.com/google-apps/calendar/quickstart/nodejs
Here's a video that shows all of the steps for building the nodejs quickstart: https://www.youtube.com/watch?v=9LSEHrCgxOE
Once I had the nodejs quickstart example working, my node-red stuff was working as well. Seems like there might be some missing pieces in the node-red-node-google authentication process.
Good luck - let me know how it works out for you.
-Bob
Any more detail on this ? Are we missing something ? Or is it config or something that needs to be turned on at the google end ? (api keys etc ?)
Dave - I'm not entirely sure. All I can say is that once I created the Google quickstart.js example and executed it, all was now working with the node-red stuff.
To recap:
When I try to "Authenticate with Google", I am able to step through the following steps: "Choose an Account" I select my google email account - then: Clicking "ALLOW" on the "example.com wants to screen" delivers me to the following screen:
"Something went wrong in the authentication process. Please try again."
Then after some searching on developers.google.com, I decided to try the quickstart example described here: https://developers.google.com/google-apps/calendar/quickstart/nodejs
When I first ran the quickstart example, it prompted me to authorize access (just like the "Authenticate with Google" step above). I clicked accept and received a code which I pasted into the command line prompt generated by the quickstart example. Once I did that, the quickstart example worked as well as the node-red-node-google node.
It has to have something to do with the code that you receive when you first "Authenticate with Google". With quickstart - I received the code and with the node-red-node-google node, it just hung and delivered the "Something went wrong in the authentication process. Please try again." message after a few moments.
I suspect that for everyone who has already authenticated with Google, the node-red-node-google node will work just fine. For everyone else, it will fail.
I hope this helps. Let me know if I can assist.
-Bob
+1
I think I found the problem. When you create the Oauth credentials you need to select others. Then you get the id and secret. That worked for me
Unfortunately the flow at Google has significantly change and the tutorial is basically not working anymore.