I am having issues with Google Oauth2

Hello everyone,

I am having some issues with Google Oauth2, i am following the Docs Tutorial (Using OAuth2 Connector with Google). It was all working fine but when i arrive at the part that i have to save my server action, and click the Open In Browser button it doens't work well. I don't know if the link that is in the tutorial is still active but when i paste it on my browser it shows me the error: "error": "invalid_request",
"error_description": "Invalid Credentials".

When it's supposed to show the log in google accounts it shows me an error.

Any help?

Thanks everyone,
Rodrigo

(docs prints)


(error print)

Without seing what exactly is in OAuth2 action - it's hard to understand what's wrong.

I've done exactly what's on tutorial.


Actually i've done something different and now it shows me other message:

Is your oauth connector correctly configured under globals?

Are the redirect_uri correctly setted on your app under google console?

Hello Franse, thanks for your response...

I think so, i've done everything like the tutorial.


Hello everyone, how are you all?

I am writing this topic because i have a few questions/problems with the Oauth.

I've followed both facebook and google tutorials that are on wappler docs. However in both tutorials i get stuck in the same part. When i try to save my server action, and click the Open In Browser button it shows me an error in both platforms. Can somebody help me? I guess the problem is in the link that i put on the platforms (http://localhost:3000/login) wich is the link that the tutorial tells me to.

Any help?

Thanks for all,
Rodrigo


Perhaps the issue is you are calling it from localhost which is not a secure URL as it is HTTP not HTTPS.

Have you tried deploying to staging/ production server and seeing if error goes.

Alternatively you could use ngrok to allocate a secure https url as per below post.

It worked, thanks Hyperbytes.

Have a nice day!

1 Like